/* =============================================================================
   dashboard-shell.css — Shared in-app page shell (single source of truth)
   -----------------------------------------------------------------------------
   Owns the look shared by every in-app dashboard page: the design tokens, the
   .dashboard-v2 base (font + background + top/bottom padding), the centered
   container width, and the page header (h1 title + subtitle). Loaded BEFORE the
   page-specific .css on each of these views so they all render identically:
     Dashboard/Index, CareerClimber/Index, Account/ResumeManager,
     CoverLetterCreator/Index, Account/Profile, JobTracker/Index, Dashboard/JobMatch.
   Page-specific files load after this one and may EXTEND, not duplicate, these
   rules. Edit shared header/padding/width/font here and nowhere else.
   ============================================================================= */

:root {
    --dash-bg: #ecf2fa;
    --dash-white: #ffffff;
    --dash-blue: var(--brand-primary, #1363c6);
    --dash-blue-hover: var(--brand-primary-hover, #0f56ad);
    --dash-blue-light: #e8f0fc;
    --dash-blue-mid: #b8d0f5;
    --dash-text: #0f1523;
    --dash-text-2: #3d4a6b;
    --dash-text-3: #7b8db0;
    --dash-border: #e2e8f4;
    --dash-shadow-sm: 0 1px 3px rgba(15,21,35,0.06), 0 1px 2px rgba(15,21,35,0.04);
    --dash-shadow: 0 4px 16px rgba(15,21,35,0.08), 0 1px 4px rgba(15,21,35,0.04);
    --dash-radius: 14px;
    --dash-radius-sm: 8px;
    /* Shared max content width for the centered page container. */
    --dash-max-width: 1280px;
}

/* Page shell: font, background, and the top/bottom padding that positions the
   header at the same offset on every page. min-height fills the viewport so the
   soft-gray background always reaches the bottom on short pages (the app shell
   stretches full height, but .dashboard-v2 would otherwise stop at its content). */
.dashboard-v2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dash-bg);
    color: var(--dash-text);
    padding-top: 36px !important;
    padding-bottom: 132px !important;
    min-height: 100vh;
}

/* Below lg the app shell adds a mobile top bar via .app-content padding; subtract
   it so the page fills exactly the viewport instead of overflowing it. */
@media (max-width: 991.98px) {
    .dashboard-v2 {
        min-height: calc(100vh - var(--mobile-bar-height, 0px));
    }
}

/* Centered content width shared by every page's .container. */
.dashboard-v2 .container {
    max-width: var(--dash-max-width);
}

/* Page header: title on the left, optional pill/actions on the right. */
.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.dashboard-subtitle {
    color: var(--dash-text-3);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Pin the page title/subtitle identically on every dashboard page. The global
   `h1 { font-weight: 700 !important }` and `h1 { font-family: system-ui }` rules
   in style.css otherwise hijack .dashboard-title and make the heading render
   differently across pages (Resume Manager vs Cover Letter Creator vs Career
   Climber). Higher specificity + !important guarantees a consistent heading. */
.dashboard-v2 .dashboard-title,
.dashboard-v2 h1.dashboard-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.dashboard-v2 .dashboard-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--dash-text-3);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Header stacks below the title on narrow viewports. */
@media (max-width: 991px) {
    .dashboard-page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }
}
