/* =========================================================
   DEVTASK — COMPLETE APPLICATION STYLES
   Landing + Login + Dashboard + Firebase UI
========================================================= */

:root {
    --bg: #080d18;
    --bg-secondary: #0d1424;
    --panel: #101827;
    --panel-hover: #151f31;
    --border: #1d2a3d;

    --text: #f4f7fb;
    --text-secondary: #9ba8ba;
    --muted: #68778c;

    --blue: #4f8cff;
    --blue-dark: #3777ed;
    --green: #38d39f;
    --orange: #ffad5a;
    --purple: #a879ff;
    --red: #ff6577;

    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);

    --sidebar-width: 245px;
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    position: relative;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background-color: var(--bg);
    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

::selection {
    background: rgba(79, 140, 255, 0.35);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   DASHBOARD BACKGROUND
========================================================= */

body:not(.landing-page) {
    background-image:
        linear-gradient(
            rgba(8, 13, 24, 0.25),
            rgba(8, 13, 24, 0.38)
        ),
        url("assets/background.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================================
   LANDING PAGE
========================================================= */

.landing-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(79, 140, 255, 0.16),
            transparent 38%
        ),
        #080d18;
}

.landing {
    width: 100%;
    overflow: hidden;
}

/* =========================================================
   LANDING NAVIGATION
========================================================= */

.landing-nav {
    width: min(1180px, calc(100% - 48px));
    height: 80px;
    margin: 0 auto;

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

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #5b94ff,
            #376fe0
        );

    color: white;
    font-weight: 900;

    box-shadow:
        0 8px 25px rgba(79, 140, 255, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.landing-brand:hover .brand-icon {
    transform: translateY(-2px) rotate(-3deg);

    box-shadow:
        0 12px 30px rgba(79, 140, 255, 0.35);
}

.landing-login-link {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);
    color: var(--text);

    font-weight: 650;

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

.landing-login-link:hover {
    background: rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.4);
    transform: translateY(-1px);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 700px;

    margin: 0 auto;
    padding: 80px 0 110px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;
    gap: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    border: 1px solid rgba(79, 140, 255, 0.25);
    border-radius: 999px;

    background: rgba(79, 140, 255, 0.08);

    color: #9dbdff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hero h1 {
    margin-top: 24px;

    font-size: clamp(54px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 850;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #6fa1ff,
            #9f7cff
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 530px;
    margin-top: 26px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 34px;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-button {
    min-height: 46px;
    padding: 0 20px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #5b94ff,
            #3977e8
        );

    color: white;
    font-weight: 750;

    box-shadow:
        0 10px 30px rgba(55, 119, 237, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(55, 119, 237, 0.3);
}

.primary-button:disabled {
    opacity: 0.65;
    transform: none;
}

.secondary-button {
    min-height: 46px;
    padding: 0 20px;

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

    border: 1px solid var(--border);
    border-radius: 11px;

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

    color: var(--text);
    font-weight: 700;

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

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #30415b;
    transform: translateY(-2px);
}

/* =========================================================
   HERO PREVIEW
========================================================= */

.hero-preview {
    perspective: 1200px;
}

.preview-window {
    overflow: hidden;

    border: 1px solid rgba(109, 139, 186, 0.18);
    border-radius: 18px;

    background: #0c1422;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02);

    transform:
        perspective(1200px)
        rotateY(-5deg)
        rotateX(2deg);

    transition: transform 0.4s ease;
}

.preview-window:hover {
    transform:
        perspective(1200px)
        rotateY(-2deg)
        rotateX(1deg)
        translateY(-4px);
}

.preview-topbar {
    height: 48px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    color: #8290a5;

    font-size: 12px;
    font-weight: 700;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #39465b;
}

.preview-body {
    display: grid;
    grid-template-columns: 150px 1fr;

    min-height: 350px;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 17px;

    padding: 24px 16px;

    border-right: 1px solid var(--border);

    color: #718097;

    font-size: 11px;
}

.preview-sidebar strong {
    margin-bottom: 12px;

    color: white;
    font-size: 15px;
}

.preview-active {
    padding: 9px 10px;

    border-radius: 8px;

    background: rgba(79, 140, 255, 0.12);
    color: #78a6ff;
}

.preview-main {
    padding: 30px;
}

.preview-main > small {
    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.preview-main h3 {
    margin-top: 8px;

    font-size: 25px;
    letter-spacing: -1px;
}

.preview-main h3 em {
    color: #6f9fff;
    font-style: normal;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin-top: 22px;
}

.preview-stats > div {
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

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

.preview-stats small {
    display: block;

    color: #69788e;
    font-size: 9px;
}

.preview-stats strong {
    display: block;

    margin-top: 3px;

    font-size: 18px;
}

.preview-task {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 10px;
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

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

.preview-check {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 7px;

    background: #4f8cff;

    color: white;
    font-size: 12px;
}

.preview-check.empty {
    background: transparent;
    border: 1px solid #34445b;
}

.preview-task strong {
    display: block;

    font-size: 10px;
}

.preview-task small {
    color: #6f7e92;

    font-size: 8px;
}

.preview-complete,
.preview-progress {
    margin-left: auto;

    font-size: 8px;
    font-weight: 700;
}

.preview-complete {
    color: var(--green);
}

.preview-progress {
    color: var(--orange);
}

/* =========================================================
   FEATURES
========================================================= */

.features {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 90px 0;
}

.section-heading {
    max-width: 620px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-heading > span {
    color: #719cff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin-top: 10px;

    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.8px;
}

.section-heading p {
    margin-top: 12px;

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

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

.feature-card {
    padding: 30px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: #2d405c;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(79, 140, 255, 0.1);
    color: #73a1ff;

    font-weight: 800;
}

.feature-card h3 {
    margin-top: 20px;

    font-size: 17px;
}

.feature-card p {
    margin-top: 9px;

    color: var(--text-secondary);

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

/* =========================================================
   FOOTER
========================================================= */

.landing-footer {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding: 30px 0 45px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #65748a;

    font-size: 12px;
}

/* =========================================================
   LOGIN OVERLAY
========================================================= */

.login-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    padding: 20px;

    background: rgba(2, 6, 15, 0.78);

    backdrop-filter: blur(14px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   LOGIN MODAL
========================================================= */

.login-modal {
    position: relative;

    width: min(460px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 38px;

    border: 1px solid #26364f;
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #111b2c,
            #0c1422
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);

    transform:
        translateY(18px)
        scale(0.98);

    transition:
        transform 0.25s ease;
}

.login-overlay.active .login-modal {
    transform:
        translateY(0)
        scale(1);
}

.login-close {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

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

    color: #9aa8bb;

    font-size: 22px;

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

.login-close:hover {
    background: rgba(255, 255, 255, 0.09);

    color: white;

    transform: rotate(5deg);
}

/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {
    text-align: center;
}

.login-logo {
    width: 54px;
    height: 54px;

    margin: 0 auto 20px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #5b94ff,
            #3977e8
        );

    color: white;

    font-size: 22px;
    font-weight: 900;

    box-shadow:
        0 12px 35px rgba(55, 119, 237, 0.25);
}

.login-label {
    color: #719cff;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.7px;
}

.login-header h2 {
    margin-top: 7px;

    color: white;

    font-size: 28px;

    letter-spacing: -1px;
}

.login-header p {
    max-width: 330px;

    margin: 9px auto 0;

    color: #8290a4;

    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    margin-top: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group > label,
.password-label-row label {
    display: block;

    margin-bottom: 8px;

    color: #dce4ef;

    font-size: 13px;
    font-weight: 650;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-label-row label {
    margin-bottom: 0;
}

.forgot-button {
    background: transparent;

    color: #6e9cff;

    font-size: 11px;
    font-weight: 650;
}

.forgot-button:hover {
    color: #9bbaff;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #25354c;
    border-radius: 10px;

    outline: none;

    background: #0a1220;

    color: white;

    font-size: 14px;

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

.login-form input::placeholder {
    color: #56657a;
}

.login-form input:focus {
    border-color: #4f8cff;

    background: #0c1525;

    box-shadow:
        0 0 0 3px
        rgba(79, 140, 255, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 65px !important;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    background: transparent;

    color: #719cff;

    font-size: 11px;
    font-weight: 700;
}

.password-toggle:hover {
    color: #a6c0ff;
}

.login-error {
    display: block;

    min-height: 0;

    margin-top: 5px;

    color: #ff7181;

    font-size: 11px;
}

.input-error {
    border-color: #e45d70 !important;

    box-shadow:
        0 0 0 3px
        rgba(228, 93, 112, 0.1) !important;
}

.remember-row {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 4px 0 18px;

    color: #8795a8;

    font-size: 12px;

    cursor: pointer;
}

.remember-row input {
    accent-color: var(--blue);
}

/* =========================================================
   LOGIN SUBMIT
========================================================= */

.login-submit {
    width: 100%;

    position: relative;
}

.login-spinner {
    display: none;

    width: 15px;
    height: 15px;

    margin-left: 8px;

    vertical-align: middle;

    border: 2px solid
        rgba(255, 255, 255, 0.35);

    border-top-color: white;

    border-radius: 50%;

    animation:
        spin 0.7s linear infinite;
}

.login-spinner.active {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-message {
    min-height: 20px;

    margin-top: 12px;

    color: #8493a7;

    font-size: 12px;

    text-align: center;
}

/* =========================================================
   LOGIN DIVIDER
========================================================= */

.login-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 22px 0;

    color: #5d6c80;

    font-size: 11px;
}

.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #202f44;
}

/* =========================================================
   GOOGLE LOGIN
========================================================= */

.google-login-button {
    width: 100%;
    min-height: 46px;

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

    gap: 10px;

    margin-top: 24px;
    padding: 0 16px;

    border: 1px solid #293a51;
    border-radius: 10px;

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

    color: #dbe4f0;

    font-size: 13px;
    font-weight: 700;

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

.google-login-button:hover:not(:disabled) {
    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        #405775;

    transform:
        translateY(-1px);
}

.google-login-button:disabled {
    opacity: 0.65;
}

.google-icon {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;
}

/* =========================================================
   DEMO LOGIN / SECONDARY AUTH BUTTON
========================================================= */

.demo-login {
    width: 100%;
    height: 45px;

    border: 1px solid #26364e;
    border-radius: 10px;

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

    color: #dbe4f0;

    font-size: 13px;
    font-weight: 650;

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

.demo-login:hover:not(:disabled) {
    background:
        rgba(255, 255, 255, 0.06);

    border-color:
        #38506f;

    transform:
        translateY(-1px);
}

.login-footer {
    margin-top: 20px;

    color: #718095;

    font-size: 12px;

    text-align: center;
}

.login-footer button {
    background: transparent;

    color: #709dff;

    font-weight: 700;
}

.login-footer button:hover {
    text-decoration: underline;
}

/* =========================================================
   DASHBOARD APPLICATION
========================================================= */

.app {
    min-height: 100vh;
    background: transparent;
}

/* =========================================================
   SIDEBAR — MANUAL DRAWER
========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    padding: 25px 16px;

    background:
        rgba(10, 17, 30, 0.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-right:
        1px solid
        rgba(255, 255, 255, 0.08);

    box-shadow:
        18px 0 45px
        rgba(0, 0, 0, 0.24);

    z-index: 1000;

    transform:
        translateX(-100%);

    transition:
        transform 0.28s cubic-bezier(.4, 0, .2, 1);
}

.sidebar.open {
    transform:
        translateX(0);
}

/* =========================================================
   SIDEBAR BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 10px;

    font-weight: 850;
    font-size: 18px;
}

.brand-icon {
    flex: 0 0 auto;
}

/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-top: 42px;
}

.nav-item {
    width: 100%;

    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    overflow: hidden;

    border:
        1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: #7f8da1;

    font-size: 13px;
    font-weight: 650;

    text-align: left;

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

.nav-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        linear-gradient(
            to bottom,
            var(--blue),
            var(--purple)
        );

    transform:
        scaleY(0);

    transform-origin: center;

    transition:
        transform 0.2s ease;
}

.nav-item:hover {
    background:
        rgba(79, 140, 255, 0.08);

    border-color:
        rgba(79, 140, 255, 0.12);

    color: white;

    transform:
        translateX(3px);
}

.nav-item:hover::before,
.nav-item.active::before {
    transform:
        scaleY(1);
}

.nav-item.active {
    background:
        rgba(79, 140, 255, 0.12);

    border-color:
        rgba(79, 140, 255, 0.16);

    color: #8bb0ff;

    box-shadow:
        inset 3px 0 0
        var(--blue);
}

/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    margin-top: auto;
}

.user-card {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 14px;

    padding:
        14px 10px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    overflow: hidden;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #526eff,
            #895eff
        );

    color: white;

    font-size: 11px;
    font-weight: 800;
}

.avatar.small {
    width: 34px;
    height: 34px;
}

.avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}

.user-card strong {
    display: block;

    font-size: 12px;
}

.user-card small {
    display: block;

    max-width: 165px;

    margin-top: 2px;

    overflow: hidden;

    color: #8796aa;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   MAIN
========================================================= */

.main {
    width: 100%;

    margin-left: 0;

    min-height: 100vh;

    position: relative;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    min-height: 80px;

    position: sticky;
    top: 0;

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

    padding: 0 38px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        rgba(8, 13, 24, 0.54);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-label,
.welcome-label,
.panel-label {
    color: #8ea0b8;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.5px;
}

.topbar h1 {
    margin-top: 2px;

    font-size: 20px;
    letter-spacing: -0.5px;
}

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.icon-button,
.profile-button {
    background: transparent;

    color: #8998ab;
}

.icon-button {
    width: 38px;
    height: 38px;

    border: 1px solid transparent;

    border-radius: 9px;

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

.icon-button:hover {
    background:
        rgba(255, 255, 255, 0.05);

    border-color:
        rgba(255, 255, 255, 0.08);

    transform:
        translateY(-1px);
}

.profile-button {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 4px 7px;

    border-radius: 10px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-button:hover {
    background:
        rgba(255, 255, 255, 0.04);

    transform:
        translateY(-1px);
}

.profile-name {
    color: #c8d2df;

    font-size: 12px;
}

/* =========================================================
   MANUAL MENU BUTTON
========================================================= */

.mobile-menu {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-right: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 10px;

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

    color: #aab7c8;

    font-size: 18px;

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

.mobile-menu:hover {
    background:
        rgba(79, 140, 255, 0.12);

    border-color:
        rgba(79, 140, 255, 0.3);

    color: white;

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.14);
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {
    max-width: 1450px;

    margin: 0 auto;

    padding: 38px;
}

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

    gap: 20px;

    padding: 28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(16, 24, 39, 0.68),
            rgba(11, 18, 30, 0.46)
        );

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    box-shadow:
        0 14px 40px
        rgba(0, 0, 0, 0.12);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.welcome:hover {
    border-color:
        rgba(79, 140, 255, 0.15);

    box-shadow:
        0 18px 48px
        rgba(0, 0, 0, 0.16);
}

.welcome h2 {
    margin-top: 5px;

    font-size:
        clamp(28px, 4vw, 40px);

    letter-spacing: -1.5px;
}

.welcome h2 span {
    color: #709eff;

    text-shadow:
        0 0 25px
        rgba(79, 140, 255, 0.12);
}

.welcome p:last-child {
    margin-top: 7px;

    color: #95a1b2;

    font-size: 13px;
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-top: 18px;
}

.stat-card {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 14px;

    background:
        rgba(16, 24, 39, 0.66);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.09);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.stat-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(79, 140, 255, 0.22);

    background:
        rgba(20, 31, 49, 0.76);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.18);
}

.stat-card::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at top right,
            rgba(79, 140, 255, 0.06),
            transparent 45%
        );
}

.stat-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 11px;

    font-weight: 800;
}

.stat-icon.blue {
    background:
        rgba(79, 140, 255, 0.13);

    color: #72a0ff;
}

.stat-icon.green {
    background:
        rgba(56, 211, 159, 0.12);

    color: #49dcae;
}

.stat-icon.orange {
    background:
        rgba(255, 173, 90, 0.12);

    color: #ffb668;
}

.stat-icon.purple {
    background:
        rgba(168, 121, 255, 0.12);

    color: #ad86ff;
}

.stat-card span {
    display: block;

    color: #8e9caf;

    font-size: 10px;
}

.stat-card strong {
    display: block;

    margin-top: 2px;

    font-size: 21px;
}

/* =========================================================
   CONTENT GRID
========================================================= */

.content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 18px;

    margin-top: 18px;
}

.panel {
    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    background:
        rgba(16, 24, 39, 0.66);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    box-shadow:
        0 14px 40px
        rgba(0, 0, 0, 0.1);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.panel:hover {
    border-color:
        rgba(79, 140, 255, 0.16);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.14);
}

.tasks-panel,
.progress-panel,
.projects-panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.panel-header h3 {
    margin-top: 3px;

    font-size: 18px;
}

.text-button {
    background: transparent;

    color: #6f9cff;

    font-size: 11px;
    font-weight: 650;

    transition:
        color 0.2s ease;
}

.text-button:hover {
    color: #a2bcff;
}

/* =========================================================
   TASK CONTROLS
========================================================= */

.task-controls {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}

.search-box {
    flex: 1;

    position: relative;
}

.search-box > span {
    position: absolute;

    top: 50%;
    left: 13px;

    transform:
        translateY(-50%);

    color: #7c899d;
}

.search-box input,
.task-controls select,
.modal input,
.modal textarea,
.modal select {
    width: 100%;

    border:
        1px solid #23334a;

    border-radius: 9px;

    outline: none;

    background:
        rgba(10, 18, 32, 0.72);

    color: white;

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

.search-box input {
    height: 42px;

    padding:
        0 13px 0 35px;
}

.task-controls select {
    width: 145px;

    padding:
        0 10px;
}

.search-box input:hover,
.task-controls select:hover {
    border-color:
        #334b6b;
}

.search-box input:focus,
.task-controls select:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    border-color:
        var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(79, 140, 255, 0.1);
}

/* =========================================================
   TASK LIST
========================================================= */

.task-list {
    margin-top: 15px;
}

.task-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 15px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        padding-left 0.2s ease;
}

.task-item:last-child {
    border-bottom: 0;
}

.task-item:hover {
    background:
        rgba(79, 140, 255, 0.035);

    transform:
        translateX(3px);

    padding-left: 7px;
}

.task-check {
    width: 23px;
    height: 23px;

    flex: 0 0 auto;

    border:
        1px solid #35465e;

    border-radius: 7px;

    background: transparent;

    color: white;

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

.task-check:hover {
    transform:
        scale(1.08);

    border-color:
        var(--blue);
}

.task-check.completed {
    border-color:
        var(--blue);

    background:
        var(--blue);
}

.task-content {
    min-width: 0;

    flex: 1;
}

.task-title {
    color: #e7edf5;

    font-size: 13px;

    transition:
        color 0.2s ease;
}

.task-item:hover .task-title {
    color:
        #8bb0ff;
}

.task-description {
    margin-top: 3px;

    color: #8190a3;

    font-size: 11px;

    overflow-wrap: anywhere;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 7px;
}

.priority,
.due-date {
    padding:
        3px 7px;

    border-radius: 6px;

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

    color: #98a4b5;

    font-size: 9px;
}

.priority.high {
    background:
        rgba(255, 101, 119, 0.1);

    color: #ff7b89;
}

.priority.medium {
    background:
        rgba(255, 173, 90, 0.1);

    color: #ffb667;
}

.priority.low {
    background:
        rgba(56, 211, 159, 0.1);

    color: #50dcb0;
}

.task-actions {
    display: flex;

    gap: 5px;
}

.task-action {
    width: 32px;
    height: 32px;

    border-radius: 8px;

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

    color: #718096;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.task-action:hover {
    background:
        rgba(79, 140, 255, 0.1);

    color: #78a4ff;

    transform:
        translateY(-1px);
}

.task-item.completed .task-title {
    color: #657389;

    text-decoration:
        line-through;
}

.empty-state {
    min-height: 220px;

    display: flex;
    flex-direction: column;

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

    text-align: center;
}

.empty-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        rgba(79, 140, 255, 0.1);

    color: #719fff;

    box-shadow:
        0 10px 30px
        rgba(79, 140, 255, 0.08);
}

.empty-state h4 {
    margin-top: 13px;

    font-size: 15px;
}

.empty-state p {
    margin-top: 4px;

    color: #8290a3;

    font-size: 11px;
}

.empty-state .primary-button {
    margin-top: 15px;
}

/* =========================================================
   PROGRESS
========================================================= */

.progress-panel {
    display: flex;
    flex-direction: column;
}

.progress-circle {
    width: 175px;
    height: 175px;

    margin: 30px auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--blue) 0deg,
            rgba(255, 255, 255, 0.08) 0deg
        );

    box-shadow:
        0 15px 40px
        rgba(79, 140, 255, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.progress-circle:hover {
    transform:
        scale(1.025);

    box-shadow:
        0 20px 48px
        rgba(79, 140, 255, 0.13);
}

.progress-inner {
    width: 137px;
    height: 137px;

    display: flex;
    flex-direction: column;

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

    border-radius: 50%;

    background:
        rgba(14, 22, 36, 0.92);
}

.progress-inner strong {
    font-size: 28px;
}

.progress-inner span {
    color: #7c899d;

    font-size: 10px;
}

.progress-details {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;
}

.progress-details > div {
    padding: 12px;

    border-radius: 10px;

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

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.progress-details > div:hover {
    transform:
        translateY(-2px);

    background:
        rgba(79, 140, 255, 0.05);
}

.progress-details span {
    display: block;

    color: #7f8da1;

    font-size: 10px;
}

.progress-details strong {
    display: block;

    margin-top: 2px;
}

/* =========================================================
   PROJECTS
========================================================= */

.projects-panel {
    margin-top: 18px;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-top: 20px;
}

.project-item {
    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 13px;

    background:
        rgba(13, 21, 35, 0.68);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.project-item:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(79, 140, 255, 0.28);

    background:
        rgba(16, 26, 43, 0.76);

    box-shadow:
        0 16px 35px
        rgba(0, 0, 0, 0.16);
}

.project-top {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #7e8da2;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.project-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    box-shadow:
        0 0 10px currentColor;
}

.project-dot.blue {
    background: var(--blue);
    color: var(--blue);
}

.project-dot.green {
    background: var(--green);
    color: var(--green);
}

.project-dot.purple {
    background: var(--purple);
    color: var(--purple);
}

.project-item h4 {
    margin-top: 12px;

    font-size: 14px;
}

.project-item > p {
    margin-top: 3px;

    color: #7c8a9d;

    font-size: 10px;
}

.project-progress {
    margin-top: 20px;
}

.project-progress > div:first-child {
    display: flex;

    justify-content: space-between;

    color: #7f8da1;

    font-size: 9px;
}

.project-percentage {
    color: #cbd5e3;
}

.progress-bar {
    height: 6px;

    margin-top: 7px;

    overflow: hidden;

    border-radius: 999px;

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

    box-shadow:
        inset 0 1px 2px
        rgba(0, 0, 0, 0.12);
}

.project-progress-fill {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #4f8cff,
            #8d6fff
        );

    transition:
        width 0.5s ease;
}

.project-controls {
    display: flex;

    justify-content: flex-end;

    gap: 5px;

    margin-top: 12px;
}

.project-controls .task-action {
    width: 27px;
    height: 27px;
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 2000;

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

    padding: 20px;

    background:
        rgba(2, 6, 15, 0.78);

    backdrop-filter:
        blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.modal {
    width: min(520px, 100%);

    padding: 25px;

    border: 1px solid #26364d;
    border-radius: 17px;

    background: #101927;

    box-shadow: var(--shadow);

    animation:
        modalIn 0.25s ease both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform:
            translateY(12px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 22px;
}

.modal-header h3 {
    margin-top: 3px;
}

.close-button {
    width: 34px;
    height: 34px;

    border-radius: 8px;

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

    color: #8997aa;

    font-size: 20px;

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

.close-button:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: white;

    transform: rotate(4deg);
}

.modal form > label,
.form-row label {
    display: block;

    margin-bottom: 15px;

    color: #cbd5e2;

    font-size: 12px;
    font-weight: 650;
}

.modal input,
.modal textarea,
.modal select {
    display: block;

    margin-top: 7px;

    padding: 11px 12px;

    font-size: 13px;
}

.modal textarea {
    resize: vertical;
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}

.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}

.modal-actions .secondary-button {
    cursor: pointer;
}

/* =========================================================
   LIGHT THEME
========================================================= */

body.light-theme {
    --bg: #f5f7fb;
    --bg-secondary: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f4f7fb;
    --border: #dfe5ee;

    --text: #172033;
    --text-secondary: #647187;
    --muted: #7b8798;
}

body.light-theme:not(.landing-page) {
    background-image:
        linear-gradient(
            rgba(244, 247, 251, 0.25),
            rgba(244, 247, 251, 0.38)
        ),
        url("assets/background.png");
}

body.light-theme .sidebar {
    background:
        rgba(255, 255, 255, 0.72);

    border-right-color:
        rgba(30, 45, 65, 0.1);

    box-shadow:
        18px 0 45px
        rgba(30, 45, 65, 0.08);
}

body.light-theme .topbar {
    border-bottom-color:
        rgba(30, 45, 65, 0.1);

    background:
        rgba(245, 247, 251, 0.62);
}

body.light-theme .welcome,
body.light-theme .stat-card,
body.light-theme .panel {
    background:
        rgba(255, 255, 255, 0.72);

    border-color:
        rgba(30, 45, 65, 0.1);
}

body.light-theme .project-item {
    background:
        rgba(255, 255, 255, 0.72);
}

body.light-theme .login-modal {
    background: #ffffff;

    border-color:
        #dbe2ed;
}

body.light-theme .login-header h2,
body.light-theme .login-form input,
body.light-theme .modal input,
body.light-theme .modal textarea,
body.light-theme .modal select {
    color: #172033;
}

body.light-theme .login-form input,
body.light-theme .modal input,
body.light-theme .modal textarea,
body.light-theme .modal select {
    background: #f8fafc;

    border-color:
        #dbe2eb;
}

body.light-theme .progress-inner {
    background:
        rgba(255, 255, 255, 0.92);
}

/* =========================================================
   FIREBASE DASHBOARD AUTH LOADING
========================================================= */

.auth-loading {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    background: var(--bg);
}

.auth-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    color: var(--muted);

    font-size: 12px;
}

.auth-loading-logo {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #5b94ff,
            #3977e8
        );

    color: white;

    font-size: 22px;
    font-weight: 900;
}

.auth-loading-spinner {
    width: 22px;
    height: 22px;

    border:
        3px solid
        rgba(79, 140, 255, 0.18);

    border-top-color:
        var(--blue);

    border-radius: 50%;

    animation:
        authLoadingSpin
        0.75s linear infinite;
}

@keyframes authLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-preview {
        width: 100%;
        max-width: 760px;

        margin: 0 auto;
    }

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

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

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

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

@media (max-width: 760px) {

    .landing-nav,
    .hero,
    .features,
    .landing-footer {
        width:
            min(
                100% - 30px,
                1180px
            );
    }

    .landing-nav {
        height: 68px;
    }

    .hero {
        padding:
            45px 0 70px;
    }

    .hero h1 {
        font-size: 54px;

        letter-spacing: -3px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-actions > * {
        width: 100%;
    }

    .preview-sidebar {
        display: none;
    }

    .preview-body {
        grid-template-columns: 1fr;
    }

    .preview-main {
        padding: 22px;
    }

    .preview-stats {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        flex-direction: column;

        gap: 7px;
    }

    .topbar {
        padding: 0 18px;
    }

    .dashboard {
        padding: 25px 18px;
    }

    .welcome {
        align-items: flex-start;

        flex-direction: column;
    }

    .welcome .primary-button {
        width: 100%;
    }

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

    .task-controls {
        flex-direction: column;
    }

    .task-controls select {
        width: 100%;
        height: 42px;
    }

    .task-item {
        align-items: flex-start;
    }

    .task-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .login-modal {
        padding:
            28px 20px;

        border-radius: 18px;
    }

    .login-header h2 {
        font-size: 24px;
    }

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

    .preview-task {
        flex-wrap: wrap;
    }

    .preview-complete,
    .preview-progress {
        margin-left: 34px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}
/* =========================================================
   LIGHT THEME — READABILITY OVERRIDES
========================================================= */

body.light-theme {
    --bg: #f4f7fb;
    --bg-secondary: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f1f5fa;
    --border: #d8e0eb;

    --text: #172033;
    --text-secondary: #536174;
    --muted: #68768a;

    --blue: #3977e8;
}

/* Main application */
body.light-theme .app {
    background: transparent;
}

body.light-theme .main {
    background: transparent;
}

/* Sidebar */
body.light-theme .sidebar {
    background: #ffffff;
    border-right-color: #dce3ed;
}

body.light-theme .brand {
    color: #172033;
}

body.light-theme .nav-item {
    color: #536174;
}

body.light-theme .nav-item:hover {
    background: #edf3ff;
    color: #2867d8;
}

body.light-theme .nav-item.active {
    background: #e8f0ff;
    color: #2867d8;
}

body.light-theme .user-card {
    border-top-color: #dce3ed;
}

body.light-theme .user-card strong {
    color: #172033;
}

body.light-theme .user-card small {
    color: #657286;
}

/* Topbar */
body.light-theme .topbar {
    background: #ffffff;
    border-bottom-color: #dce3ed;
}

body.light-theme .topbar-label,
body.light-theme .welcome-label,
body.light-theme .panel-label {
    color: #657286;
}

body.light-theme .topbar h1 {
    color: #172033;
}

body.light-theme .profile-name {
    color: #344155;
}

body.light-theme .icon-button,
body.light-theme .profile-button {
    color: #536174;
}

body.light-theme .icon-button:hover {
    background: #eef2f7;
}

/* Dashboard headings */
body.light-theme .welcome h2 {
    color: #172033;
}

body.light-theme .welcome h2 span {
    color: #2867d8;
}

body.light-theme .welcome p:last-child {
    color: #536174;
}

/* Stats */
body.light-theme .stat-card {
    background: #ffffff;
    border-color: #dce3ed;
}

body.light-theme .stat-card:hover {
    border-color: #bfd0e8;
    box-shadow: 0 8px 25px rgba(30, 60, 100, 0.08);
}

body.light-theme .stat-card span {
    color: #657286;
}

body.light-theme .stat-card strong {
    color: #172033;
}

/* Panels */
body.light-theme .panel {
    background: #ffffff;
    border-color: #dce3ed;
}

body.light-theme .panel-header h3 {
    color: #172033;
}

body.light-theme .text-button {
    color: #2867d8;
}

/* Search and filters */
body.light-theme .search-box input,
body.light-theme .task-controls select {
    background: #f8fafc;
    border-color: #d5deea;
    color: #172033;
}

body.light-theme .search-box input::placeholder {
    color: #7a8799;
}

body.light-theme .search-box > span {
    color: #66758a;
}

body.light-theme .search-box input:focus,
body.light-theme .task-controls select:focus {
    background: #ffffff;
    border-color: #3977e8;
}

/* Tasks */
body.light-theme .task-item {
    border-bottom-color: #e3e8ef;
}

body.light-theme .task-item:hover {
    background: #f8fafc;
}

body.light-theme .task-title {
    color: #172033;
}

body.light-theme .task-description {
    color: #59677a;
}

body.light-theme .task-check {
    border-color: #aebdce;
}

body.light-theme .task-action {
    background: #f1f4f8;
    color: #536174;
}

body.light-theme .task-action:hover {
    background: #e8f0ff;
    color: #2867d8;
}

body.light-theme .task-item.completed .task-title {
    color: #7a8798;
}

/* Priority / due-date labels */
body.light-theme .priority,
body.light-theme .due-date {
    background: #eef2f6;
    color: #536174;
}

body.light-theme .priority.high {
    background: #fff0f2;
    color: #d64558;
}

body.light-theme .priority.medium {
    background: #fff5e9;
    color: #c87820;
}

body.light-theme .priority.low {
    background: #eafaf4;
    color: #168c68;
}

/* Empty state */
body.light-theme .empty-state h4 {
    color: #172033;
}

body.light-theme .empty-state p {
    color: #657286;
}

/* Progress */
body.light-theme .progress-inner {
    background: #ffffff;
}

body.light-theme .progress-inner strong {
    color: #172033;
}

body.light-theme .progress-inner span {
    color: #657286;
}

body.light-theme .progress-details > div {
    background: #f5f7fa;
}

body.light-theme .progress-details span {
    color: #657286;
}

body.light-theme .progress-details strong {
    color: #172033;
}

/* Projects */
body.light-theme .project-item {
    background: #ffffff;
    border-color: #dce3ed;
}

body.light-theme .project-item:hover {
    border-color: #bfd0e8;
    box-shadow: 0 8px 25px rgba(30, 60, 100, 0.08);
}

body.light-theme .project-top {
    color: #657286;
}

body.light-theme .project-item h4 {
    color: #172033;
}

body.light-theme .project-item > p {
    color: #59677a;
}

body.light-theme .project-progress > div:first-child {
    color: #657286;
}

body.light-theme .project-percentage {
    color: #344155;
}

body.light-theme .progress-bar {
    background: #e2e7ee;
}

/* Buttons */
body.light-theme .secondary-button {
    background: #ffffff;
    border-color: #d5deea;
    color: #344155;
}

body.light-theme .secondary-button:hover {
    background: #f1f5fa;
    border-color: #b9c8da;
}

/* Modals */
body.light-theme .modal {
    background: #ffffff;
    border-color: #d5deea;
}

body.light-theme .modal-header h3 {
    color: #172033;
}

body.light-theme .modal form > label,
body.light-theme .form-row label {
    color: #344155;
}

body.light-theme .modal input,
body.light-theme .modal textarea,
body.light-theme .modal select {
    background: #f8fafc;
    border-color: #d5deea;
    color: #172033;
}

body.light-theme .modal input::placeholder,
body.light-theme .modal textarea::placeholder {
    color: #7a8799;
}

body.light-theme .close-button {
    background: #f1f4f8;
    color: #536174;
}

body.light-theme .close-button:hover {
    background: #e7ecf2;
    color: #172033;
}

/* Mobile menu */
body.light-theme .mobile-menu {
    background: #eef2f7;
    color: #344155;
}

body.light-theme .mobile-menu:hover {
    background: #e2e8f0;
}

/* Loading screen */
body.light-theme .auth-loading {
    background: #f4f7fb;
}

body.light-theme .auth-loading-card {
    color: #536174;
}

