/* Minimal necessary styles */
.search-input.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C4C93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='4' class='opacity-25'%3E%3C/circle%3E%3Cpath class='opacity-75' fill='currentColor' d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px;
}

/* Custom scrollbar for search results */
.search-results-list::-webkit-scrollbar {
    width: 6px;
}
.search-results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.search-results-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.search-results-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Button styles */
.btn-primary {
    background-color: #2C4C93;
    color: white;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: #1F3A73;
}
.btn-secondary {
    background-color: white;
    color: #2C4C93;
    border: 1px solid #2C4C93;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Search bar width */
.search-container {
    max-width: 32rem;
    margin: 0 auto;
}

/* Education levels container */
.levels-container {
    max-width: 90%;
    margin: 0 auto;
}

/* Level chips */
.level-chip {
    min-width: 0;
    max-width: 100%;
    font-size: 0.8em;
    padding: 0.2rem 0.1rem;
    text-align: left;
    white-space: normal;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    border: none !important;
    background: none !important;
    line-height: 1.2;
    display: inline;
    border-radius: 0.5rem;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.level-chip.active,
.level-chip:focus {
    background: #e8f0fe;
    color: #2C4C93;
    outline: none;
}
.level-chip:not(:last-child)::after {
    content: ', ';
    color: #888;
    font-weight: normal;
}

/* Feedback button */
.feedback-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: #2C4C93;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}
.feedback-btn:hover {
    background-color: #1F3A73;
    transform: scale(1.05);
}

/* Search result items */
.search-result-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background-color: #f8fafc;
}
.search-result-item:last-child {
    border-bottom: none;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 1.25rem;
}
.modal-footer {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Recommendation cards */
.recommendation-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.2s ease;
}
.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Version indicator - bottom center, subtle, FAANG style */
.version-indicator {
    position: fixed;
    left: 50%;
    bottom: 3.5rem;
    transform: translateX(-50%);
    background: #f8fafc;
    color: #2C4C93;
    font-size: 0.78em;
    font-weight: 500;
    padding: 0.18rem 0.7rem;
    border-radius: 0.8rem;
    box-shadow: 0 1px 4px rgba(44,76,147,0.07);
    z-index: 50;
    margin: 0;
    width: auto;
    min-width: 0;
    max-width: 80vw;
    text-align: center;
    letter-spacing: 0.03em;
    opacity: 0.85;
    pointer-events: none;
}

/* Auth buttons container - top right */
.auth-buttons-container {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    left: auto;
    width: auto;
    margin: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

/* Levels horizontal paged - FAANG style */
.levels-horizontal-paged {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.2rem;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 0.2rem;
    margin: 0;
}

/* Levels nav button (arrow) - FAANG style */
.levels-nav-btn {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    color: #2C4C93;
    font-size: 1.5em;
    padding: 0.15rem 0.5rem;
    margin: 0 0.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.levels-nav-btn:disabled {
    color: #b0b8c1;
    cursor: not-allowed;
    background: none;
}
.levels-nav-btn:hover:not(:disabled) {
    background: #e8f0fe;
    color: #1D3A7B;
}

/* Responsive tweaks */
@media (min-width: 641px) {
    .version-indicator {
        bottom: 3.5rem;
        font-size: 0.85em;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }
    .auth-buttons-container {
        top: 1.5rem;
        right: 2.5rem;
    }
    .levels-horizontal-paged {
        gap: 0.5rem 0.5rem;
    }
    .level-chip {
        font-size: 0.95em;
        padding: 0.3rem 0.2rem;
    }
}
