body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #f8fafc;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Modern Gradient Background for Intro */
.intro-bg {
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #f8fafc 100%);
    background-image: radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Custom Select2 Styling */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem; /* More rounded */
    height: 56px; /* Taller */
    display: flex;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s; /* Removed transform */
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1;
    /* transform: translateY(-1px); REMOVED JUMP EFFECT */
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); REMOVED SHADOW */
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    padding-left: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px;
    right: 12px;
}

.select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 9999;
    padding: 8px;
    overflow: hidden;
}

/* Search Box Styling */
.select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 8px 12px;
    outline: none;
    font-size: 0.9rem;
    color: #475569;
    transition: border-color 0.2s;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.select2-results__option {
    border-radius: 0.5rem;
    margin-bottom: 2px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #eff6ff;
    color: #4338ca;
}

/* Remove default focus outline */
.select2-container--default .select2-selection--single:focus {
    outline: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar for Sidebar */
aside::-webkit-scrollbar {
    width: 4px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

aside:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Requirement Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Sidebar State Management - CSS Driven */
.sidebar-item .state-active,
.sidebar-item .state-completed,
.sidebar-item .state-inactive {
    display: none;
}

.sidebar-item.active .state-active {
    display: block;
}

.sidebar-item.completed .state-completed {
    display: flex;
}

.sidebar-item.pending .state-inactive {
    display: flex;
}

/* App Step Visibility Management */
.app-step {
    display: none;
}

.app-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Password Toggle Animation */
@keyframes eyePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.eye-anim {
    animation: eyePulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: none !important;
}
