
/* AFT Directory Styles */
.aft-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aft-form {
    width: 100%;
}

.aft-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.aft-form-group {
    margin-bottom: 20px;
}

.aft-form-group.aft-half {
    flex: 1;
}

.aft-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.aft-form-group input,
.aft-form-group textarea,
.aft-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.aft-form-group input:focus,
.aft-form-group textarea:focus,
.aft-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.aft-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Checkbox Styles */
.aft-checkbox-group {
    margin-bottom: 15px;
}

.aft-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.aft-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.aft-checkbox .checkmark {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.aft-checkbox input:checked + .checkmark {
    background-color: #0073aa;
    border-color: #0073aa;
}

.aft-checkbox input:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Styles */
.aft-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.aft-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.aft-btn-primary {
    background: #0073aa;
}

.aft-btn-secondary {
    background: #6c757d;
}

.aft-btn-secondary:hover {
    background: #545b62;
}

.aft-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Message Styles */
.aft-message {
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
}

.aft-message.aft-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aft-message.aft-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aft-message.aft-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.aft-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.aft-current-cv {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Suggestions */
.aft-suggestions {
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    position: relative;
}

.aft-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.aft-suggestion-item:hover {
    background: #f8f9fa;
}

.aft-suggestion-item:last-child {
    border-bottom: none;
}

/* Directory Styles */
.aft-directory {
    margin: 20px 0;
}

.aft-directory-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.aft-filter-row {
    display: grid;
    grid-template-columns: 1fr 200px 200px auto;
    gap: 15px;
    align-items: end;
}

.aft-filter-group input,
.aft-filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aft-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Clean Member Card Styles */
.aft-member-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.aft-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.aft-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.aft-member-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.aft-nationality {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.aft-interests,
.aft-qualifications,
.aft-bio {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.aft-interests strong,
.aft-qualifications strong {
    color: #333;
    font-weight: 600;
}

.aft-bio {
    color: #666;
    font-style: italic;
}

.aft-member-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aft-view-profile {
    color: #0073aa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aft-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Modal Styles */
.aft-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.aft-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.aft-modal-header {
    padding: 20px 20px 0 20px;
    text-align: right;
}

.aft-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.aft-close:hover {
    color: #000;
}

.aft-modal-body {
    padding: 0 20px 20px 20px;
}

/* Profile View Styles */
.aft-profile-view {
    padding: 20px 0;
}

.aft-profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.aft-profile-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.aft-profile-nationality {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.aft-profile-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.aft-profile-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.aft-profile-section p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Admin Styles */
.aft-admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.aft-stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    min-width: 150px;
}

.aft-stat-box h3 {
    margin: 0 0 5px 0;
    font-size: 32px;
    color: #0073aa;
}

.aft-stat-box p {
    margin: 0;
    color: #666;
}

.aft-areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.aft-area-tag {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .aft-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .aft-form-group.aft-half {
        margin-bottom: 20px;
    }
    
    .aft-filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .aft-directory-grid {
        grid-template-columns: 1fr;
    }
    
    .aft-member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aft-admin-stats {
        flex-direction: column;
    }
    
    .aft-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .aft-member-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Impreza Theme Compatibility */
.w-grid .aft-form-container,
.l-content .aft-form-container {
    box-shadow: none;
    border: 1px solid #e1e5e9;
}

.w-btn.aft-btn {
    display: inline-block;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border-style: solid;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
