/***********************************************************************
 * JobPro AI
 * File: assets/css/style.css
 *
 * Fresh, self-contained front-end stylesheet.
 ***********************************************************************/

/* ================================================================
   1. VARIABLES
   ================================================================ */

:root {
    --navy: #12385b;
    --navy-dark: #0b2741;
    --blue: #2f80c9;
    --blue-light: #eaf4fc;
    --page-bg: #f4f7fa;
    --surface: #ffffff;
    --text: #213244;
    --muted: #657587;
    --border: #dbe4ec;
    --success: #2fa36b;
    --shadow: 0 8px 24px rgba(20, 48, 76, 0.08);
    --radius: 14px;
    --container: 1180px;
}

/* ================================================================
   2. RESET
   ================================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* ================================================================
   3. HEADER
   ================================================================ */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

/* ================================================================
   4. HERO
   ================================================================ */

.dashboard-page {
    flex: 1;
}

.hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: #ffffff;
}

.hero-inner {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a9d7ff;
}

.hero h1 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.hero-text {
    max-width: 680px;
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: #d8e9f7;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #62d89a;
    box-shadow: 0 0 0 5px rgba(98, 216, 154, 0.16);
}

/* ================================================================
   5. DASHBOARD
   ================================================================ */

.dashboard-section {
    padding: 48px 0 64px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    color: var(--navy-dark);
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-card {
    min-height: 150px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 48, 76, 0.13);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 800;
}

.dashboard-card h3 {
    margin: 1px 0 8px;
    font-size: 18px;
    color: var(--navy-dark);
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ================================================================
   6. FOOTER
   ================================================================ */

.site-footer {
    margin-top: auto;
    padding: 28px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-dark);
}

.footer-tagline {
    margin-top: 5px;
    color: var(--blue);
    font-size: 14px;
    font-style: italic;
}

.footer-copy {
    color: var(--muted);
    font-size: 13px;
}

/* ================================================================
   7. RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
    .header-inner,
    .hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .main-nav {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav a {
        text-align: center;
        background: var(--page-bg);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-text {
        font-size: 16px;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
.login-logo {
    width: 240px;
    max-width: 80%;
    height: auto;
}

/* CONVERGE LEGACY HEADER COMPATIBILITY */

.top-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.logo-area {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
}

.logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.top-header .main-nav {
    margin-left: auto;
}

.top-header .main-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-header .main-nav li {
    margin: 0;
    padding: 0;
}

.top-header .main-nav a {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.top-header .main-nav a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.page-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 850px) {
    .top-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-header .main-nav {
        width: 100%;
        margin-left: 0;
    }

    .top-header .main-nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .top-header {
        padding: 14px;
    }

    .logo {
        width: 160px;
    }

    .top-header .main-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .top-header .main-nav a {
        text-align: center;
        background: var(--page-bg);
    }
}


/* CONVERGE SETTINGS DROPDOWN */

.nav-dropdown {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    display: none !important;
    min-width: 150px;
    margin: 0;
    padding: 7px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    display: block !important;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    display: block;
    width: 100%;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .nav-submenu {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
    }
}

/* CONVERGE SETTINGS DROPDOWN CLICK FIX */

.top-header {
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.top-header .main-nav {
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.nav-dropdown {
    position: relative;
    z-index: 1002;
}

.top-header .main-nav .nav-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    overflow: visible;
    pointer-events: auto;
}

.top-header .main-nav .nav-submenu li,
.top-header .main-nav .nav-submenu a {
    position: relative;
    z-index: 10000;
    pointer-events: auto;
}

@media (max-width: 620px) {
    .top-header .main-nav .nav-submenu {
        position: static;
    }
}


/* ================================================================
   CONVERGE FAMILY / FREE
   CONTROL PANEL FOR YOUR LIFE
   ================================================================ */

.life-dashboard {
    flex: 1;
    background: #f4f7fa;
}

.life-container {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.life-hero {
    background:
        linear-gradient(135deg, #0b2741 0%, #12385b 60%, #1f5f92 100%);
    color: #ffffff;
}

.life-hero-inner {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.life-eyebrow {
    margin: 0 0 10px;
    color: #a9d7ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.life-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.life-intro {
    max-width: 720px;
    margin: 17px 0 0;
    color: #d8e9f7;
    font-size: 18px;
    line-height: 1.55;
}

.life-gib-button {
    flex-shrink: 0;
    padding: 15px 22px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 11px;
    background: #ffffff;
    color: #12385b;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(0,0,0,.14);
}

.life-gib-button:hover {
    transform: translateY(-2px);
}

.life-today {
    padding-top: 26px;
}

.life-briefing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 26px;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20,48,76,.08);
}

.life-briefing-label {
    color: #2f80c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.life-briefing h2 {
    margin: 4px 0 0;
    color: #0b2741;
    font-size: 23px;
}

.life-briefing-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: #657587;
    font-size: 14px;
}

.life-tools {
    padding: 38px 0 70px;
}

.life-section-heading {
    margin-bottom: 22px;
}

.life-section-heading h2 {
    margin: 0;
    color: #0b2741;
    font-size: 28px;
}

.life-section-heading p {
    margin: 7px 0 0;
    color: #657587;
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.life-card {
    min-height: 145px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20,48,76,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.life-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20,48,76,.13);
}

.life-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: #eaf4fc;
    color: #12385b;
    font-size: 21px;
    font-weight: 900;
}

.life-card h3 {
    margin: 2px 0 7px;
    color: #0b2741;
    font-size: 18px;
}

.life-card p {
    margin: 0;
    color: #657587;
    font-size: 14px;
    line-height: 1.5;
}

.life-card-gib {
    border-color: #9dc9ee;
    background: #f5fbff;
}

@media (max-width: 900px) {
    .life-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .life-hero-inner,
    .life-briefing {
        align-items: flex-start;
        flex-direction: column;
    }

    .life-briefing-items {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .life-container {
        width: min(calc(100% - 28px), 1180px);
    }

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

    .life-hero-inner {
        min-height: auto;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .life-gib-button {
        width: 100%;
        text-align: center;
    }
}
