
/* 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;
}

/* Profile Picture Styles */
.aft-profile-picture-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.aft-profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.aft-current-picture,
.aft-no-picture {
    text-align: center;
}

.aft-profile-preview,
.aft-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aft-profile-placeholder,
.aft-member-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 4px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.aft-placeholder-icon,
.aft-avatar-icon {
    font-size: 48px;
    color: #6c757d;
}

.aft-picture-label {
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #666;
}

.aft-picture-input {
    max-width: 300px;
    margin: 0 auto;
}

/* Member Card Profile Styles */
.aft-member-profile-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.aft-member-picture {
    flex-shrink: 0;
}

.aft-member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.aft-member-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aft-member-avatar-placeholder .aft-avatar-icon {
    font-size: 32px;
    color: #6c757d;
}

.aft-member-info {
    flex: 1;
    min-width: 0;
}

.aft-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.aft-member-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.3;
}

/* 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: background-color 0.3s ease;
    margin-right: 10px;
}

.aft-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.aft-btn-primary {
    background: #0073aa;
}

.aft-btn-secondary {
    background: #6c757d;
}

.aft-btn-secondary:hover {
    background: #545b62;
}

.aft-btn-small {
    padding: 8px 16px;
    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;
}

.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;
}

.aft-member-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aft-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.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;
}

.aft-nationality {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.aft-member-email,
.aft-interests,
.aft-qualifications,
.aft-bio {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.aft-member-email strong,
.aft-interests strong,
.aft-qualifications strong {
    color: #333;
}

.aft-bio {
    color: #666;
}

.aft-member-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.aft-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* 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;
}

/* 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;
    }
}

/* 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;
}
