/* All previous styles remain unchanged */
body {
    background: linear-gradient(180deg, #78a6c8 0%, #e6eef3 30%, #e6eef3 100%);
    min-height: 100vh;
}

.search-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-filters {
        padding: 1rem;
        margin: 1rem 0;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .input-group {
        margin-bottom: 0.75rem;
    }

    .input-group .form-control {
        height: 38px;
        font-size: 0.9rem;
    }

    .input-group-text {
        padding: 0.5rem;
    }

    .all-jobs-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .row.g-3 {
        --bs-gutter-y: 0.5rem;
    }

    .col-md-2, .col-md-4 {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}

.filter-btn:hover {
    background: #e9ecef;
}

/* New styles for active filters */
.filter-btn.active {
    background: #e3f2fd;
    border-color: #78a6c8;
    color: #1565c0;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #78a6c8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(120, 166, 200, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(120, 166, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(120, 166, 200, 0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #78a6c8;
}

.input-group .form-control {
    border-radius: 6px;
    padding: 0.6rem 1rem;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.input-group .input-group-text {
    border-radius: 6px 0 0 6px;
    border: 1px solid #e9ecef;
    border-right: none;
    background: white;
}

.dropdown-menu {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    padding: 0.5rem;
}

.dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease-in-out;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.all-jobs-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-filters {
    display: none;
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    cursor: pointer;
}

.clear-filters:hover {
    text-decoration: underline;
    color: #bb2d3b;
}

.clear-filters i {
    margin-right: 0.25rem;
}

/* Bookmark filter styles */
.form-check.form-switch {
    padding-left: 2.5rem;
    padding-top: 1rem;
}

.form-switch .form-check-input {
    --bs-form-switch-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e);
    width: 2.5em;
    height: 1.2em;
    margin-left: -2.5em;
    background-image: var(--bs-form-switch-bg);
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.form-check-label {
    margin-left: 1rem;
    font-size: .9rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-modal-header {
    margin-bottom: 1.5rem;
}

.auth-modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.auth-modal-message {
    color: #6c757d;
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}

.close-modal:hover {
    color: #343a40;
}

.auth-form .form-label {
    font-weight: 500;
    color: #2c3e50;
}

.auth-form .form-text {
    font-size: 0.85rem;
}

.auth-footer {
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer a {
    color: #0d6efd;
}

.auth-footer a:hover {
    color: #0a58ca;
}
