/* UI Components */

/* Form Components */
.search-group {
    position: relative;
}

.search-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.search-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-group input:focus {
    outline: none;
    border-color: #ED6A00;
    box-shadow: 0 0 0 3px rgba(237, 106, 0, 0.1);
}

.search-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Filter Toggle Components */
.filter-toggle-section {
    margin-top: 15px;
    text-align: center;
}

.more-filters-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.more-filters-btn:hover {
    background: #e9ecef;
    border-color: #ED6A00;
    color: #ED6A00;
}

.more-filters-btn.active {
    background: #ED6A00;
    border-color: #ED6A00;
    color: white;
}

.more-filters-btn .toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.more-filters-btn.active .toggle-arrow {
    transform: rotate(180deg);
}

/* Advanced Filters Section */
.advanced-filters-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ED6A00;
    box-shadow: 0 0 0 2px rgba(237, 106, 0, 0.1);
}

/* Button Components */
.clear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.clear-filters:hover {
    background: #c82333;
}

.pagination-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn.current {
    background: #ED6A00 !important;
    color: white !important;
    border-color: #ED6A00 !important;
    cursor: default;
    font-weight: 600;
    transform: none !important;
}

/* Ensure non-current buttons don't retain active states */
.pagination-btn:not(.current) {
    background: white;
    color: #495057;
    border-color: #dee2e6;
}

.pagination-btn.current:hover {
    transform: none;
}

.pagination-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.pagination-btn:active {
    transform: translateY(0) !important;
    background: #e9ecef !important;
    border-color: #adb5bd !important;
}

.pagination-btn.clicking {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Member Card Components */
.member-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.member-position {
    font-size: 1rem;
    color: #EF9739;
    font-weight: 500;
    margin-bottom: 12px;
}

.member-detail {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    word-break: break-word;
}

.member-detail strong {
    color: #495057;
    min-width: 0px;
    padding-right: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.member-detail span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.member-class {
    display: inline-block;
    padding: 4px 12px;
    background: #EF9739;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Status Messages */
.filter-stats {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 10px;
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .clear-filters {
        order: -1;
        width: 100%;
    }

    .pagination-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .member-card {
        padding: 15px;
    }

    .member-name {
        font-size: 1.1rem;
    }

    .member-position {
        font-size: 0.95rem;
    }
    
    /* Better mobile handling for member details */
    .member-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .member-detail strong {
        padding-right: 0;
        margin-bottom: 2px;
    }
    
    .member-detail span {
        padding-left: 0;
        width: 100%;
    }
    
    /* Filter toggle mobile styles */
    .more-filters-btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .advanced-filters-section {
        padding: 15px;
        margin-top: 15px;
    }
}

/* Very small screens - force vertical layout for member details */
@media (max-width: 480px) {
    .member-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }
    
    .member-detail strong {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .member-detail span {
        font-size: 0.85rem;
        line-height: 1.4;
    }
} 