/* Directory Page Styles */

/* Sticky Search and Filter Bar */
.directory-search-filter-bar {
    z-index: 1010;
    background-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Ensure proper spacing for filter layout */
@media (min-width: 992px) {
    .row.g-4.mt-3 > .col-lg-9 {
        padding-right: 1rem;
    }
    
    .row.g-4.mt-3 > .col-lg-3 {
        padding-left: 0.5rem;
        padding-right: 0;
    }
}

.directory-search-filter-bar .card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
}

body.dark-theme .directory-search-filter-bar .card {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
}

/* Sort Dropdown - Theme Support */
#sortSelect,
.directory-search-filter-bar #sortSelect {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

#sortSelect:focus,
.directory-search-filter-bar #sortSelect:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

body.dark-theme #sortSelect,
body.dark-theme .directory-search-filter-bar #sortSelect {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-theme #sortSelect:focus,
body.dark-theme .directory-search-filter-bar #sortSelect:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

body.dark-theme #sortSelect option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Country and Timezone Dropdowns - Theme Support */
#countryFilter,
#timezoneFilter,
.filters-card #countryFilter,
.filters-card #timezoneFilter {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

#countryFilter:focus,
#timezoneFilter:focus,
.filters-card #countryFilter:focus,
.filters-card #timezoneFilter:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

#countryFilter option,
#timezoneFilter option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-theme #countryFilter,
body.dark-theme #timezoneFilter,
body.dark-theme .filters-card #countryFilter,
body.dark-theme .filters-card #timezoneFilter {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-theme #countryFilter:focus,
body.dark-theme #timezoneFilter:focus,
body.dark-theme .filters-card #countryFilter:focus,
body.dark-theme .filters-card #timezoneFilter:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

body.dark-theme #countryFilter option,
body.dark-theme #timezoneFilter option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* General Form Select Theme Support in Filters */
.filters-card .form-select,
.filters-card .form-select-sm {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.filters-card .form-select:focus,
.filters-card .form-select-sm:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.filters-card .form-select option,
.filters-card .form-select-sm option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-theme .filters-card .form-select,
body.dark-theme .filters-card .form-select-sm {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-theme .filters-card .form-select:focus,
body.dark-theme .filters-card .form-select-sm:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

body.dark-theme .filters-card .form-select option,
body.dark-theme .filters-card .form-select-sm option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Filter Chips */
.filter-chips-container {
    min-height: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

.filter-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip .chip-remove:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark-theme .filter-chip {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

body.dark-theme .filter-chip:hover {
    background-color: rgba(37, 99, 235, 0.3);
}

/* Results Count */
.results-count {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Quick Filter Buttons */
.filter-quick-btn {
    transition: all 0.2s ease;
}

.filter-quick-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

body.dark-theme .filter-quick-btn.active {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

/* Quick Filters Panel */
#quickFiltersPanel .card {
    border-radius: 12px;
    overflow: hidden;
}

#quickFiltersPanel .card-header.quick-filters-header {
    background-color: #faf7f2;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8ddd4;
}

#quickFiltersPanel .card-header.quick-filters-header h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

body.dark-theme #quickFiltersPanel .card-header.quick-filters-header {
    background-color: #252525;
    border-bottom-color: #404040;
}

#quickFiltersPanel .card-body.quick-filters-body {
    /* Removed max-height and overflow-y to eliminate scrolling */
    padding: 1rem;
}

/* Quick Filter Sections */
.quick-filter-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #e8ddd4;
}

.quick-filter-section:last-of-type {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
}

body.dark-theme .quick-filter-section {
    border-bottom-color: #404040;
}

.quick-filter-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Filter Groups */
.filter-checkbox-group,
.filter-radio-group {
    /* Removed max-height and overflow-y to eliminate scrolling */
    padding-left: 0;
    margin-left: 0;
    width: 100%;
}

/* Skills Filter Group - Only this section is scrollable */
#skillsFilterGroup {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Scrollbar styling for Skills section */
#skillsFilterGroup::-webkit-scrollbar {
    width: 6px;
}

#skillsFilterGroup::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

#skillsFilterGroup::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

#skillsFilterGroup::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

body.dark-theme #skillsFilterGroup::-webkit-scrollbar-track {
    background: #252525;
}

body.dark-theme #skillsFilterGroup::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-theme #skillsFilterGroup::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.filter-checkbox-group .form-check,
.filter-radio-group .form-check {
    margin-bottom: 0.5rem;
    min-height: 1.25rem;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.filter-checkbox-group .form-check:last-child,
.filter-radio-group .form-check:last-child {
    margin-bottom: 0;
}

.filter-checkbox-group .form-check-input,
.filter-radio-group .form-check-input {
    margin-top: 0.2em;
    margin-left: 0;
    margin-right: 0.5rem;
    width: 1em;
    height: 1em;
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
}

.filter-checkbox-group .form-check-label,
.filter-radio-group .form-check-label {
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    padding-left: 0;
    padding-right: 0;
    display: block;
    line-height: 1.4;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.filter-checkbox-group .form-check-label i,
.filter-radio-group .form-check-label i {
    font-size: 0.65rem;
}

/* Location Input */
#quickFiltersPanel #locationFilter {
    font-size: 0.85rem;
    padding: 0.375rem 0.5rem;
}

/* Clear Filters Button */
#quickFiltersPanel #clearFiltersBtn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    margin-top: 0.5rem;
}

/* Member Grid */
#memberGrid {
    transition: opacity 0.3s ease;
}

.member-card-wrapper {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.member-card-wrapper.hidden {
    display: none !important;
}

.member-card-wrapper.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Empty State */
#noResults {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#noResults i {
    opacity: 0.5;
}

/* Search Input Clear Button */
#clearSearchBtn {
    border-left: none;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .directory-search-filter-bar {
        position: relative !important;
    }
    
    #quickFiltersPanel {
        margin-top: 1rem;
    }
    
    #quickFiltersPanel .card {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .filter-chips-container {
        width: 100%;
    }
    
    .results-count {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .dashboard-main {
        padding: 0.75rem;
    }
    
    .dashboard-container {
        padding: 0;
    }
    
    .directory-search-filter-bar {
        margin-bottom: 1rem;
    }
    
    .directory-search-filter-bar .card {
        border-radius: 8px;
    }
    
    .directory-search-filter-bar .card-body {
        padding: 0.875rem;
    }
    
    .dashboard-header {
        margin-bottom: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-header p {
        font-size: 0.875rem;
    }
    
    /* Member Grid - Mobile */
    #memberGrid {
        margin-left: 0;
        margin-right: 0;
    }
    
    .member-card-wrapper {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .member-card-wrapper:last-child {
        margin-bottom: 0;
    }
    
    /* Search Input - Mobile */
    .search-wrapper {
        margin-bottom: 0.75rem;
    }
    
    .search-input-group .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-input-group .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    /* Sort Select - Mobile */
    #sortSelect {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Results Count - Mobile */
    .results-count {
        font-size: 0.8125rem;
    }
}

/* Scrollbar Styling for Filter Panel */
#quickFiltersPanel .card-body::-webkit-scrollbar {
    width: 6px;
}

#quickFiltersPanel .card-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

#quickFiltersPanel .card-body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

#quickFiltersPanel .card-body::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

body.dark-theme #quickFiltersPanel .card-body::-webkit-scrollbar-track {
    background: #252525;
}

body.dark-theme #quickFiltersPanel .card-body::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-theme #quickFiltersPanel .card-body::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Loading State */
.member-grid-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
.member-card-wrapper,
.filter-chip,
.filter-quick-btn {
    transition: all 0.2s ease;
}

/* Focus States for Accessibility */
.filter-chip:focus,
.filter-quick-btn:focus,
#clearSearchBtn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

body.dark-theme .filter-chip:focus,
body.dark-theme .filter-quick-btn:focus,
body.dark-theme #clearSearchBtn:focus {
    outline-color: #4dabf7;
}

/* Search Bar Enhancements */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input-group {
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-8 .search-wrapper {
        max-width: 60%;
    }
}

/* Auto-complete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 0.25rem;
    background-color: white;
    border: 1px solid #e8ddd4;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
}

body.dark-theme .autocomplete-dropdown {
    background-color: #2d2d2d;
    border-color: #404040;
}

.autocomplete-content {
    padding: 0.5rem 0;
}

/* Auto-complete Sections */
.autocomplete-section {
    margin-bottom: 0.5rem;
}

.autocomplete-section:last-child {
    margin-bottom: 0;
}

.autocomplete-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e8ddd4;
}

body.dark-theme .autocomplete-section-header {
    background-color: #252525;
    border-bottom-color: #404040;
    color: #adb5bd;
}

.autocomplete-section-header i {
    font-size: 0.875rem;
}

.autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Auto-complete Items */
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: inherit;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f0f7ff;
}

body.dark-theme .autocomplete-item:hover,
body.dark-theme .autocomplete-item.selected {
    background-color: #1e3a5f;
}

.autocomplete-item:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

body.dark-theme .autocomplete-item:focus {
    outline-color: #4dabf7;
}

/* Auto-complete Photo */
.autocomplete-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.autocomplete-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e3f2fd;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

body.dark-theme .autocomplete-photo-placeholder {
    background-color: rgba(77, 171, 247, 0.2);
    color: #74c0fc;
}

/* Auto-complete Content */
.autocomplete-item-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

body.dark-theme .autocomplete-item-name {
    color: #e8e8e8;
}

.autocomplete-item-name mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0;
    font-weight: 600;
}

body.dark-theme .autocomplete-item-name mark {
    background-color: #664d03;
    color: #ffc107;
}

.autocomplete-item-title,
.autocomplete-item-meta {
    font-size: 0.8125rem;
    color: #6c757d;
}

body.dark-theme .autocomplete-item-title,
body.dark-theme .autocomplete-item-meta {
    color: #adb5bd;
}

.autocomplete-item-rating {
    margin-top: 0.25rem;
}

.autocomplete-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
}

.autocomplete-rating .bi {
    color: #ffc107;
    font-size: 0.75rem;
}

.autocomplete-rating .rating-value {
    color: #6c757d;
    font-weight: 500;
}

body.dark-theme .autocomplete-rating .rating-value {
    color: #adb5bd;
}

/* Auto-complete Icons */
.autocomplete-skill-icon,
.autocomplete-filter-icon,
.autocomplete-history-icon {
    font-size: 1.125rem;
    color: #6c757d;
    flex-shrink: 0;
}

body.dark-theme .autocomplete-skill-icon,
body.dark-theme .autocomplete-filter-icon,
body.dark-theme .autocomplete-history-icon {
    color: #adb5bd;
}

.autocomplete-remove-history {
    margin-left: auto;
    padding: 0.25rem;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.autocomplete-remove-history:hover {
    background-color: #f0f0f0;
    color: #dc3545;
}

body.dark-theme .autocomplete-remove-history:hover {
    background-color: #404040;
    color: #ff6b6b;
}

/* Loading Skeleton */
.autocomplete-loading {
    padding: 0.5rem 1rem;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

body.dark-theme .skeleton-avatar {
    background: linear-gradient(90deg, #404040 25%, #333333 50%, #404040 75%);
    background-size: 200% 100%;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

body.dark-theme .skeleton-line {
    background: linear-gradient(90deg, #404040 25%, #333333 50%, #404040 75%);
    background-size: 200% 100%;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* No Results */
.autocomplete-no-results {
    padding: 1.5rem;
    text-align: center;
}

.autocomplete-no-results i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Search Results Header */
.search-results-header {
    animation: fadeIn 0.3s ease;
}

.search-results-header .card {
    background-color: #fefdfb;
    border: 1px solid #e8ddd4;
}

body.dark-theme .search-results-header .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar for Auto-complete */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

body.dark-theme .autocomplete-dropdown::-webkit-scrollbar-track {
    background: #252525;
}

body.dark-theme .autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-theme .autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .col-lg-8 .search-wrapper {
        max-width: 100%;
    }
    
    .autocomplete-dropdown {
        max-height: 400px;
    }
    
    .autocomplete-item {
        padding: 0.625rem 0.75rem;
    }
    
    .autocomplete-photo,
    .autocomplete-photo-placeholder {
        width: 36px;
        height: 36px;
    }
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    z-index: 100;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
}

.filters-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
    width: 100%;
    margin: 0;
}

.filters-header {
    background-color: #faf7f2;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8ddd4;
    flex-shrink: 0;
}

body.dark-theme .filters-header {
    background-color: #252525;
    border-bottom-color: #404040;
}

.filters-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Filter Accordion */
.filter-accordion-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e8ddd4;
}

body.dark-theme .filter-accordion-item {
    border-bottom-color: #404040;
}

.filter-accordion-item:last-child {
    border-bottom: none;
}

.filter-accordion-header {
    width: 100%;
    padding: 0.75rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #3d3528;
    transition: color 0.2s ease;
}

body.dark-theme .filter-accordion-header {
    color: #e8e8e8;
}

.filter-accordion-header:hover {
    color: #0d6efd;
}

body.dark-theme .filter-accordion-header:hover {
    color: #4dabf7;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.filter-accordion-content {
    padding: 0.5rem 0 1rem 0;
}

/* Skill Categories */
.skill-category {
    margin-bottom: 1rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.skill-category-actions button {
    color: #0d6efd;
    font-size: 0.75rem;
    padding: 0;
}

body.dark-theme .skill-category-actions button {
    color: #4dabf7;
}

.skill-category-actions button:hover {
    text-decoration: underline;
}

.skill-count {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.8125rem;
}

body.dark-theme .skill-count {
    color: #adb5bd;
}

/* Range Sliders */
.form-range {
    height: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background-color: #0d6efd;
}

body.dark-theme .form-range::-webkit-slider-thumb {
    background-color: #4dabf7;
}

.form-range::-moz-range-thumb {
    background-color: #0d6efd;
    border: none;
}

body.dark-theme .form-range::-moz-range-thumb {
    background-color: #4dabf7;
}

/* Filters Footer */
.filters-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e8ddd4;
}

body.dark-theme .filters-footer {
    border-top-color: #404040;
}

#activeFilterCount {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile Drawer */
.advanced-filters-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.advanced-filters-drawer.drawer-open {
    pointer-events: all;
    opacity: 1;
}

.filters-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advanced-filters-drawer.drawer-open .filters-drawer-overlay {
    opacity: 1;
}

.filters-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.dark-theme .filters-drawer-content {
    background-color: #2d2d2d;
}

.advanced-filters-drawer.drawer-open .filters-drawer-content {
    transform: translateX(0);
}

.filters-drawer-header {
    padding: 1rem;
    border-bottom: 1px solid #e8ddd4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #faf7f2;
    flex-shrink: 0;
}

body.dark-theme .filters-drawer-header {
    background-color: #252525;
    border-bottom-color: #404040;
}

.filters-drawer-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.filters-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Notification */
.filter-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #0d6efd;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.filter-notification.show {
    opacity: 1;
    transform: translateY(0);
}

body.dark-theme .filter-notification {
    background-color: #4dabf7;
}

.filter-notification-error {
    background-color: #dc3545 !important;
}

body.dark-theme .filter-notification-error {
    background-color: #ff6b6b !important;
}

/* Active Filter Badge */
#activeFilterCount.d-none {
    display: none !important;
}

/* Scrollbar for Filters Body */
.filters-body::-webkit-scrollbar,
.filters-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.filters-body::-webkit-scrollbar-track,
.filters-drawer-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.filters-body::-webkit-scrollbar-thumb,
.filters-drawer-body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.filters-body::-webkit-scrollbar-thumb:hover,
.filters-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

body.dark-theme .filters-body::-webkit-scrollbar-track,
body.dark-theme .filters-drawer-body::-webkit-scrollbar-track {
    background: #252525;
}

body.dark-theme .filters-body::-webkit-scrollbar-thumb,
body.dark-theme .filters-drawer-body::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-theme .filters-body::-webkit-scrollbar-thumb:hover,
body.dark-theme .filters-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .advanced-filters-panel {
        display: none !important;
    }
    
    .col-lg-9 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) {
    /* Ensure filters panel doesn't overflow */
    .advanced-filters-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .filters-card {
        box-sizing: border-box;
    }
}

@media (max-width: 767.98px) {
    .filters-drawer-content {
        width: 90%;
    }
    
    .filter-accordion-content {
        padding: 0.5rem 0 0.75rem 0;
    }
    
    .filters-body {
        padding: 0.75rem;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d3528;
    margin-bottom: 0.5rem;
}

body.dark-theme .empty-state-heading {
    color: #e8e8e8;
}

.empty-state-subheading {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 500px;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

body.dark-theme .empty-state-icon {
    color: #a0a0a0;
}

body.dark-theme .empty-state-subheading {
    color: #a0a0a0;
}

/* Loading States */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skeleton-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
    animation: shimmer 1.5s infinite;
}

body.dark-theme .skeleton-card {
    background-color: #2d2d2d;
    border-color: #404040;
}

@keyframes shimmer {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.skeleton-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

body.dark-theme .skeleton-avatar {
    background: linear-gradient(90deg, #404040 25%, #505050 50%, #404040 75%);
    background-size: 200% 100%;
}

.skeleton-card-body {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: shimmer 1.5s infinite;
}

body.dark-theme .skeleton-line {
    background: linear-gradient(90deg, #404040 25%, #505050 50%, #404040 75%);
    background-size: 200% 100%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* Search Loading State */
.search-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

body.dark-theme .search-loading-overlay {
    background-color: rgba(45, 45, 45, 0.8);
}

.search-loading-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Filter Loading State */
.filter-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

body.dark-theme .filter-loading-overlay {
    background-color: rgba(45, 45, 45, 0.9);
}

.filter-loading-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    /* Mobile Header */
    .mobile-directory-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background-color: #fff;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    body.dark-theme .mobile-directory-header {
        background-color: #2d2d2d;
        border-bottom-color: #404040;
    }

    .mobile-menu-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #3d3528;
        padding: 0.5rem;
    }

    body.dark-theme .mobile-menu-toggle {
        color: #e8e8e8;
    }

    .mobile-directory-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #3d3528;
        margin: 0;
    }

    body.dark-theme .mobile-directory-title {
        color: #e8e8e8;
    }

    .mobile-filter-toggle {
        background: none;
        border: none;
        font-size: 1.25rem;
        color: #3d3528;
        padding: 0.5rem;
        position: relative;
    }

    body.dark-theme .mobile-filter-toggle {
        color: #e8e8e8;
    }

    .mobile-filter-badge {
        position: absolute;
        top: 0;
        right: 0;
        width: 8px;
        height: 8px;
        background-color: #dc3545;
        border-radius: 50%;
        border: 2px solid #fff;
    }

    body.dark-theme .mobile-filter-badge {
        border-color: #2d2d2d;
    }

    /* Mobile Search Bar */
    .mobile-search-bar {
        padding: 1rem;
        background-color: #fff;
        position: sticky;
        top: 56px;
        z-index: 1029;
        border-bottom: 1px solid #e9ecef;
    }

    body.dark-theme .mobile-search-bar {
        background-color: #2d2d2d;
        border-bottom-color: #404040;
    }

    /* Mobile Member Cards */
    .member-cards-container {
        padding: 1rem;
    }

    .member-card {
        margin-bottom: 1rem;
        /* Removed max-height and overflow to ensure buttons are visible */
    }

    .member-photo-container {
        width: 60px;
        height: 60px;
    }

    .member-photo,
    .member-photo-placeholder {
        width: 60px;
        height: 60px;
    }

    .member-skills {
        max-height: 3rem;
        overflow: hidden;
    }

    .member-skills .skill-tag {
        display: inline-block;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }

    /* Show only first 3 skills */
    .member-skills .skill-tag:nth-child(n+4) {
        display: none;
    }

    .member-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .member-card-actions .btn {
        width: 100%;
    }

    /* Floating Action Button */
    .fab {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background-color: #c99d5a;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 1000;
        transition: all 0.3s;
        cursor: pointer;
    }

    .fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .fab.active {
        width: auto;
        height: auto;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .fab-menu {
        position: absolute;
        bottom: 70px;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 150px;
    }

    .fab.active .fab-menu {
        display: flex;
    }

    .fab-menu-item {
        background-color: #fff;
        color: #3d3528;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    body.dark-theme .fab-menu-item {
        background-color: #2d2d2d;
        color: #e8e8e8;
    }

    /* Bottom Sheet */
    .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-radius: 1rem 1rem 0 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        max-height: 80vh;
        overflow-y: auto;
    }

    body.dark-theme .bottom-sheet {
        background-color: #2d2d2d;
    }

    .bottom-sheet.show {
        transform: translateY(0);
    }

    .bottom-sheet-header {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 1;
    }

    body.dark-theme .bottom-sheet-header {
        background-color: #2d2d2d;
        border-bottom-color: #404040;
    }

    .bottom-sheet-body {
        padding: 1rem;
    }

    .bottom-sheet-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        min-height: 56px;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .bottom-sheet-option:last-child {
        border-bottom: none;
    }

    .bottom-sheet-option:hover {
        background-color: #f8f9fa;
    }

    body.dark-theme .bottom-sheet-option {
        border-bottom-color: #404040;
    }

    body.dark-theme .bottom-sheet-option:hover {
        background-color: #353535;
    }

    .bottom-sheet-option.selected .bi-check-circle-fill {
        color: #c99d5a;
    }

    body.dark-theme .bottom-sheet-option.selected .bi-check-circle-fill {
        color: #4dabf7;
    }

    /* Scroll to Top FAB */
    .scroll-to-top-fab {
        position: fixed;
        bottom: 5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: #6c757d;
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
        transition: all 0.3s;
        cursor: pointer;
    }

    .scroll-to-top-fab.show {
        display: flex;
    }

    .scroll-to-top-fab:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
    }

    /* Active Filter Chips (Mobile) */
    .mobile-filter-chips {
        display: flex;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-chip {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.375rem 0.75rem;
        background-color: #e9ecef;
        border-radius: 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    body.dark-theme .mobile-filter-chip {
        background-color: #404040;
        color: #e8e8e8;
    }

    .mobile-filter-chip-remove {
        background: none;
        border: none;
        padding: 0;
        color: #6c757d;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
    }

    .mobile-filter-chip-remove:hover {
        color: #dc3545;
    }

    /* Loading Skeleton (Mobile) */
    .loading-skeleton {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .skeleton-card {
        height: 280px;
    }

    /* Empty State (Mobile) */
    .empty-state {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-heading {
        font-size: 1.25rem;
    }

    .empty-state-actions {
        flex-direction: column;
        width: 100%;
    }

    .empty-state-actions .btn {
        width: 100%;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 991px) {
    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Collaboration Modal Styles (Shared with Profile Page) */
.collaboration-modal {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e8ddd4;
}

body.dark-theme .collaboration-modal {
    border-color: #404040;
}

.collaboration-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e8ddd4;
    background-color: #faf7f2;
}

body.dark-theme .collaboration-modal-header {
    background-color: #252525;
    border-bottom-color: #404040;
}

.collaboration-modal-header .modal-title {
    color: #3d3528;
    font-weight: 600;
}

body.dark-theme .collaboration-modal-header .modal-title {
    color: #e0e0e0;
}

.collaboration-modal-header .text-muted {
    color: #8b7355;
}

body.dark-theme .collaboration-modal-header .text-muted {
    color: #a0a0a0;
}

.modal-member-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-member-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c99d5a 0%, #d4a574 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

body.dark-theme .modal-member-photo-placeholder {
    background: linear-gradient(135deg, #4dabf7 0%, #66b3ff 100%);
}

.collaboration-modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    background-color: #fefdfb;
}

body.dark-theme .collaboration-modal-body {
    background-color: #2d2d2d;
}

.collaboration-modal-body .form-label {
    color: #3d3528;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

body.dark-theme .collaboration-modal-body .form-label {
    color: #e0e0e0;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.collaboration-modal-body .form-control,
.collaboration-modal-body .form-select {
    background-color: #fefdfb;
    border-color: #d4c4b0;
    color: #3d3528;
}

body.dark-theme .collaboration-modal-body .form-control,
body.dark-theme .collaboration-modal-body .form-select {
    background-color: #252525;
    border-color: #404040;
    color: #e0e0e0;
}

.collaboration-modal-body .form-control:focus,
.collaboration-modal-body .form-select:focus {
    background-color: #fefdfb;
    border-color: #c99d5a;
    color: #3d3528;
    box-shadow: 0 0 0 0.25rem rgba(201, 157, 90, 0.25);
}

body.dark-theme .collaboration-modal-body .form-control:focus,
body.dark-theme .collaboration-modal-body .form-select:focus {
    background-color: #252525;
    border-color: #4dabf7;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(77, 171, 247, 0.25);
}

.collaboration-modal-body .form-text {
    color: #8b7355;
}

body.dark-theme .collaboration-modal-body .form-text {
    color: #a0a0a0;
}

.collaboration-modal-body .text-muted {
    color: #8b7355 !important;
}

body.dark-theme .collaboration-modal-body .text-muted {
    color: #a0a0a0 !important;
}

.character-limit-exceeded {
    border-color: #dc3545 !important;
}

.collaboration-modal-body .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
}

body.dark-theme .collaboration-modal-body .invalid-feedback {
    color: #ff6b6b;
}

.collaboration-modal-body .form-control.is-invalid,
.collaboration-modal-body .form-select.is-invalid {
    border-color: #dc3545;
}

body.dark-theme .collaboration-modal-body .form-control.is-invalid,
body.dark-theme .collaboration-modal-body .form-select.is-invalid {
    border-color: #ff6b6b;
}

.collaboration-modal-body .form-control.is-valid,
.collaboration-modal-body .form-select.is-valid {
    border-color: #28a745;
}

body.dark-theme .collaboration-modal-body .form-control.is-valid,
body.dark-theme .collaboration-modal-body .form-select.is-valid {
    border-color: #51cf66;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #faf7f2;
    border-radius: 0.25rem;
    border: 1px solid #e8ddd4;
}

body.dark-theme .file-preview-item {
    background-color: #252525;
    border-color: #404040;
}

.file-preview-item i {
    color: #c99d5a;
}

body.dark-theme .file-preview-item i {
    color: #4dabf7;
}

.file-preview-item span {
    color: #3d3528;
}

body.dark-theme .file-preview-item span {
    color: #e0e0e0;
}

.collaboration-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e8ddd4;
    background-color: #faf7f2;
}

body.dark-theme .collaboration-modal-footer {
    background-color: #252525;
    border-top-color: #404040;
}

.collaboration-modal-footer .text-muted {
    color: #8b7355 !important;
}

body.dark-theme .collaboration-modal-footer .text-muted {
    color: #a0a0a0 !important;
}

.collaboration-modal-footer .btn-primary {
    background-color: #c99d5a;
    border-color: #c99d5a;
    color: white;
}

.collaboration-modal-footer .btn-primary:hover {
    background-color: #b88a49;
    border-color: #b88a49;
}

.collaboration-modal-footer .btn-primary:disabled {
    background-color: #d4c4b0;
    border-color: #d4c4b0;
    opacity: 0.6;
}

body.dark-theme .collaboration-modal-footer .btn-primary {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

body.dark-theme .collaboration-modal-footer .btn-primary:hover {
    background-color: #339af0;
    border-color: #339af0;
}

body.dark-theme .collaboration-modal-footer .btn-primary:disabled {
    background-color: #404040;
    border-color: #404040;
    opacity: 0.6;
}

.collaboration-modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

body.dark-theme .collaboration-modal-footer .btn-secondary {
    background-color: #495057;
    border-color: #495057;
    color: #e0e0e0;
}

body.dark-theme .collaboration-modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #e0e0e0;
}

/* Success State */
.success-checkmark {
    font-size: 4rem;
    color: #c99d5a;
    animation: checkmarkAnimation 0.5s ease-in-out;
}

body.dark-theme .success-checkmark {
    color: #4dabf7;
}

.collaboration-modal-body h4 {
    color: #3d3528;
}

body.dark-theme .collaboration-modal-body h4 {
    color: #e0e0e0;
}

/* Form check styling */
.collaboration-modal-body .form-check-label {
    color: #3d3528;
}

body.dark-theme .collaboration-modal-body .form-check-label {
    color: #e0e0e0;
}

.collaboration-modal-body .form-check-input:checked {
    background-color: #c99d5a;
    border-color: #c99d5a;
}

body.dark-theme .collaboration-modal-body .form-check-input:checked {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

.collaboration-modal-body .form-check-input {
    border-color: #d4c4b0;
}

body.dark-theme .collaboration-modal-body .form-check-input {
    border-color: #404040;
}

.collaboration-modal-body a {
    color: #c99d5a;
}

.collaboration-modal-body a:hover {
    color: #b88a49;
}

body.dark-theme .collaboration-modal-body a {
    color: #4dabf7;
}

body.dark-theme .collaboration-modal-body a:hover {
    color: #339af0;
}

@keyframes checkmarkAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Helper Button Styles */
.ai-helper-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.ai-helper-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.ai-helper-btn:active {
    transform: translateY(0);
}

.ai-helper-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

body.dark-theme .ai-helper-btn {
    background-color: rgba(45, 45, 45, 0.95);
    color: #e0e0e0;
    border-color: #4dabf7;
}

body.dark-theme .ai-helper-btn:hover {
    background-color: rgba(45, 45, 45, 1);
    border-color: #339af0;
}

.ai-helper-btn i {
    color: #4dabf7;
}

body.dark-theme .ai-helper-btn i {
    color: #66b3ff;
}

.collaboration-modal-body .position-relative {
    position: relative;
}

.collaboration-modal-body textarea {
    padding-right: 100px; /* Make room for AI button */
}

@media (max-width: 576px) {
    .ai-helper-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .ai-helper-text {
        display: none;
    }
    
    .collaboration-modal-body textarea {
        padding-right: 50px;
    }
}

