/* Onboarding Design System */
:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --background: #ffffff;
    --surface: #eff6ff;
    --border: #bfdbfe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --success: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-width: 288px;
    /* w-72 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    transition: all 0.3s ease;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.25rem;
    z-index: 50;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1rem;
    margin-top: 5rem;
}

.logo-container {
    display: flex;
    gap: 0.5rem;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    max-width: 200px;
}

.logo-box .material-symbols-outlined {
    font-size: 14px;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sidebar-subtitle {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
}

/* Sidebar Nav */
.sidebar-nav {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
    z-index: 0;
}

.onboarding-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    padding-left: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-nav-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    z-index: 20;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-nav-item.active::before {
    transform: translateY(-50%) scale(1);
}

.nav-item-content {
    display: flex;
    flex-direction: column;
}

.nav-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: color 0.2s;
}

.nav-item-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.onboarding-nav-item .material-symbols-outlined {
    color: var(--text-muted);
}

.onboarding-nav-item.active .nav-item-title {
    color: var(--primary);
}

.onboarding-nav-item.active .material-symbols-outlined {
    color: var(--primary);
    font-variation-settings: "FILL" 1;
}

.onboarding-nav-item.completed .material-symbols-outlined {
    color: var(--success);
}

.onboarding-nav-item:hover .nav-item-title {
    color: var(--primary);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: 7rem;
    padding-bottom: 8rem;
    width: 100%;
}

#content-area {
    max-width: 64rem;
    /* 4xl */
    margin: 0 auto;
    padding: 0 2.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-fade-hidden {
    opacity: 0;
    transform: translateY(10px);
}

.content-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.main-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1rem;
    /* flex: 1; */
}

.card-badge {
    display: inline-flex;
    padding: 5px 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.card-title {
    color: #333;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-preview {
    background-color: var(--surface);
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-mockup {
    width: 100%;
    background-color: white;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}


.image-wrapper img {
    max-width: 100%;
}

.mock-line {
    height: 0.5rem;
    background-color: #f1f5f9;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.mock-line.short {
    width: 50%;
}

.mock-line.long {
    width: 75%;
}

/* Image Container */
.hero-image-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.overlay-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
}

.overlay-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: var(--sidebar-width);
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2.5rem;
    z-index: 40;
}

.footer-content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-dots {
    display: flex;
    gap: 0.375rem;
}

.dot {
    width: 2.5rem;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: var(--border);
    transition: background-color 0.5s;
}

.dot.filled {
    background-color: var(--primary);
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-back {
    background-color: white;
    border: 1px solid var(--border);
    color: #475569;
}

.btn-back:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-back:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.btn-continue {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(37, 99, 235, 0.3);
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: var(--background);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon .material-symbols-outlined {
    font-size: 40px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modal-message {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.modal-btn {
    width: 100%;
    justify-content: center;
}

/* Responsiveness */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    .main-content,
    .footer-nav {
        margin-left: 0;
        left: 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}