/* =================================
   Dashboard
================================= */

body {
    min-height: 100vh;
    background: var(--color-bg);
}


/* =================================
   Header
================================= */

.dashboard-header {
    height: 64px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);

    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-brand .brand {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
}

.dashboard-brand .brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.dashboard-brand .brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}


.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user-email {
    color: var(--color-text-secondary);
    font-size: 13px;

    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-signout {
    padding: 8px 14px;

    border: 1px solid var(--color-border);
    border-radius: 8px;

    background: transparent;
    color: var(--color-text-primary);

    font: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.dashboard-signout:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
}


/* =================================
   Layout
================================= */

.dashboard-layout {
    min-height: calc(100vh - 64px);

    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}


/* =================================
   Sidebar
================================= */

.dashboard-sidebar {
    padding: 24px 14px;

    border-right: 1px solid var(--color-border);
    background: var(--color-surface);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-nav-link {
    display: block;

    padding: 11px 12px;

    border: 1px solid transparent;
    border-radius: 8px;

    color: var(--color-text-secondary);
    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-primary);
}

.dashboard-nav-link.active {
    background: rgba(90, 70, 255, 0.12);
    border-color: rgba(90, 70, 255, 0.25);
    color: var(--color-text-primary);
}


/* =================================
   Main
================================= */

.dashboard-main {
    min-width: 0;
    padding: 44px 48px 60px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.dashboard-welcome {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

    padding: 48px 40px;

    border: 1px solid var(--color-border);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.015);
}


/* =================================
   Welcome Header
================================= */

.dashboard-welcome-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}

.dashboard-welcome-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.dashboard-welcome .section-eyebrow {
    display: block;
    margin-bottom: 12px;
}

.dashboard-welcome h1 {
    margin: 0;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;

    color: var(--color-text-primary);
}

.dashboard-intro {
    max-width: 650px;

    margin-top: 16px;

    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}


/* =================================
   Workflow Cards
================================= */

.dashboard-workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 42px;
}

.dashboard-step-card {
    min-height: 220px;

    padding: 24px;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.015);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.dashboard-step-card:hover {
    transform: translateY(-3px);

    border-color: rgba(110, 90, 255, 0.45);
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-step-number {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    color: var(--color-accent);

    font-size: 12px;
}

.dashboard-step-card h2 {
    margin: 0 0 10px;

    font-size: 18px;
    line-height: 1.3;

    color: var(--color-text-primary);
}

.dashboard-step-card p {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: 14px;
    line-height: 1.65;
}


/* =================================
   Action
================================= */

.dashboard-actions {
    margin-top: 28px;

    display: flex;
    align-items: center;
}

.dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    text-decoration: none;
}



/* =================================
   Responsive
================================= */

@media (max-width: 900px) {

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 10px 14px;
    }

    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .dashboard-nav-link {
        white-space: nowrap;
    }

    .dashboard-main {
        padding: 40px 24px 60px;
    }

    .dashboard-workflow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .dashboard-header {
        height: auto;
        min-height: 60px;
        padding: 12px 16px;
    }

    .dashboard-header-actions {
        gap: 8px;
    }

    .dashboard-user-email {
        max-width: 130px;
    }

    .dashboard-main {
        padding: 32px 16px 48px;
    }

    .dashboard-welcome h1 {
        font-size: 34px;
    }

    .dashboard-step-card {
        min-height: auto;
    }
}