/* =========================================================
   TASKORA — PRODUCTIVITY WORKSPACE
   APP-04
   Emerald + Teal + Amber Visual System
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {

    /* Brand */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;

    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --teal-light: #2dd4bf;

    --amber: #f59e0b;
    --amber-dark: #d97706;
    --amber-light: #fbbf24;

    --violet: #8b5cf6;

    /* Dark Theme */
    --bg: #071312;
    --bg-secondary: #0a1917;
    --surface: #0d211e;
    --surface-hover: #112b27;
    --surface-soft: #10231f;

    --sidebar-bg: #06110f;
    --header-bg: rgba(7, 19, 18, 0.82);

    --border: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.2);

    /* Text */
    --text-primary: #f0fdf9;
    --text-secondary: #a7b8b3;
    --text-muted: #71847f;
    --text-dark: #071312;

    /* Status */
    --success: #22c55e;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Effects */
    --primary-glow: rgba(16, 185, 129, 0.24);
    --teal-glow: rgba(20, 184, 166, 0.2);
    --amber-glow: rgba(245, 158, 11, 0.2);

    --shadow-sm:
        0 4px 16px rgba(0, 0, 0, 0.12);

    --shadow-md:
        0 12px 30px rgba(0, 0, 0, 0.2);

    --shadow-lg:
        0 24px 60px rgba(0, 0, 0, 0.3);

    /* Radius */
    --radius-xs: 7px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 76px;
    --content-width: 1500px;

    /* Motion */
    --transition-fast: 0.18s ease;
    --transition: 0.28s ease;
    --transition-slow: 0.45s ease;
}


/* =========================================================
   LIGHT THEME
========================================================= */

body.light-mode {

    --bg: #f4faf8;
    --bg-secondary: #edf7f4;

    --surface: #ffffff;
    --surface-hover: #f0faf7;
    --surface-soft: #f4faf8;

    --sidebar-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.86);

    --border: rgba(15, 118, 110, 0.12);
    --border-strong: rgba(15, 118, 110, 0.2);

    --text-primary: #10211d;
    --text-secondary: #536964;
    --text-muted: #80918c;
    --text-dark: #ffffff;

    --shadow-sm:
        0 4px 16px rgba(15, 118, 110, 0.06);

    --shadow-md:
        0 12px 30px rgba(15, 118, 110, 0.08);

    --shadow-lg:
        0 24px 60px rgba(15, 118, 110, 0.12);
}


/* =========================================================
   02. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text-primary);

    line-height: 1.5;

    overflow-x: hidden;

    transition:
        background var(--transition),
        color var(--transition);
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


a {
    color: inherit;
    text-decoration: none;
}


img,
svg {
    display: block;
}


svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


::selection {
    background: var(--primary);
    color: #ffffff;
}


/* =========================================================
   03. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


::-webkit-scrollbar-track {
    background: transparent;
}


::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-pill);
}


::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.48);
}


/* =========================================================
   04. APP SHELL
========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
    position: relative;
}


/* =========================================================
   05. SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            var(--sidebar-bg) 0%,
            var(--bg-secondary) 100%
        );

    border-right: 1px solid var(--border);

    z-index: 100;

    transition:
        transform var(--transition),
        background var(--transition);
}


/* Sidebar Header */

.sidebar-header {
    height: 86px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-mark {
    width: 42px;
    height: 42px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--teal)
        );

    box-shadow:
        0 10px 25px var(--primary-glow);

    overflow: hidden;
}


.brand-mark::before {
    content: "";

    position: absolute;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    top: -32px;
    right: -22px;
}


.brand-mark span {
    width: 4px;
    height: 17px;

    display: block;

    background: #ffffff;

    border-radius: 5px;

    transform: rotate(35deg);

    position: relative;
    z-index: 2;
}


.brand-mark span:nth-child(1) {
    transform: translateX(5px) rotate(35deg);
}


.brand-mark span:nth-child(2) {
    height: 23px;
    transform: translateX(0) rotate(35deg);
}


.brand-mark span:nth-child(3) {
    transform: translateX(-5px) rotate(35deg);
}


.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}


.brand-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
}


.brand-text small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Sidebar Close */

.sidebar-close {
    width: 34px;
    height: 34px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-sm);

    color: var(--text-secondary);
    background: transparent;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}


.sidebar-close:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.sidebar-close span {
    position: absolute;

    width: 16px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;
}


.sidebar-close span:first-child {
    transform: rotate(45deg);
}


.sidebar-close span:last-child {
    transform: rotate(-45deg);
}


/* =========================================================
   06. WORKSPACE SWITCHER
========================================================= */

.workspace-switcher {
    padding: 18px 16px 8px;
}


.workspace-switcher-button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: var(--radius-md);

    color: var(--text-primary);
    background: var(--surface);

    border: 1px solid var(--border);

    text-align: left;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}


.workspace-switcher-button:hover {
    background: var(--surface-hover);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}


.workspace-avatar {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--primary)
        );
}


.workspace-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.workspace-info strong {
    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.workspace-info small {
    color: var(--text-muted);

    font-size: 10px;
}


.workspace-chevron {
    color: var(--text-muted);
    font-size: 17px;
}


/* =========================================================
   07. SIDEBAR NAVIGATION
========================================================= */

.sidebar-navigation {
    flex: 1;

    padding: 18px 14px;

    overflow-y: auto;
}


.navigation-label {
    margin: 12px 10px 8px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.navigation-label-secondary {
    margin-top: 28px;
}


.nav-link {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 11px;

    margin-bottom: 4px;

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;

    position: relative;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}


.nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.nav-link.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(16, 185, 129, 0.2),
            rgba(20, 184, 166, 0.08)
        );

    border: 1px solid rgba(16, 185, 129, 0.14);
}


.nav-link.active::before {
    content: "";

    position: absolute;

    left: -14px;
    top: 9px;
    bottom: 9px;

    width: 3px;

    border-radius: 0 5px 5px 0;

    background: var(--primary);
}


.nav-icon {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    color: currentColor;
}


.nav-icon svg {
    width: 18px;
    height: 18px;
}


.nav-count {
    margin-left: auto;

    min-width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    padding: 0 6px;

    border-radius: var(--radius-pill);

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.1);

    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   08. SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    padding: 14px;

    border-top: 1px solid var(--border);
}


/* Storage */

.storage-card {
    padding: 13px;

    margin-bottom: 12px;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(16, 185, 129, 0.08),
            rgba(20, 184, 166, 0.03)
        );

    border: 1px solid rgba(16, 185, 129, 0.1);
}


.storage-top {
    display: flex;
    align-items: center;
    gap: 8px;
}


.storage-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}


.storage-icon svg {
    width: 15px;
    height: 15px;
}


.storage-title {
    flex: 1;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}


.storage-percent {
    color: var(--primary-light);

    font-size: 10px;
    font-weight: 800;
}


.storage-progress {
    height: 5px;

    margin: 10px 0 7px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: rgba(148, 163, 184, 0.1);
}


.storage-progress span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--teal)
        );
}


.storage-card p {
    color: var(--text-muted);
    font-size: 9px;
}


/* User */

.sidebar-user {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px;

    color: var(--text-primary);
    background: transparent;

    border-radius: var(--radius-md);

    text-align: left;

    transition: background var(--transition-fast);
}


.sidebar-user:hover {
    background: var(--surface-hover);
}


.user-avatar,
.topbar-avatar,
.profile-menu-avatar {
    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--primary-dark)
        );
}


.user-avatar {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    font-size: 10px;
}


.user-details {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.user-details strong {
    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.user-details small {
    color: var(--text-muted);
    font-size: 9px;
}


.user-more {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1px;
}


/* =========================================================
   09. SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    z-index: 90;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   10. MAIN AREA
========================================================= */

.main-area {
    width: calc(100% - var(--sidebar-width));

    min-width: 0;

    margin-left: var(--sidebar-width);
}


/* =========================================================
   11. TOPBAR
========================================================= */

.topbar {
    height: var(--topbar-height);

    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: var(--header-bg);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);

    z-index: 50;
}


.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}


.menu-toggle {
    width: 40px;
    height: 40px;

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 4px;

    color: var(--text-primary);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}


.menu-toggle span {
    width: 17px;
    height: 2px;

    background: currentColor;

    border-radius: 3px;
}


.page-heading {
    display: flex;
    flex-direction: column;
}


.page-kicker,
.panel-eyebrow {
    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.page-heading h1 {
    margin-top: 2px;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.03em;
}


/* Topbar Actions */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.icon-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    position: relative;

    color: var(--text-secondary);
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}


.icon-button:hover {
    color: var(--text-primary);

    background: var(--surface);
    border-color: var(--border);
}


.icon-button svg {
    width: 18px;
    height: 18px;
}


.notification-dot {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border: 1px solid var(--bg);

    border-radius: 50%;

    background: var(--amber);
}


/* Theme Icons */

.theme-icon {
    position: absolute;

    width: 17px;
    height: 17px;

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}


.theme-icon-moon {
    opacity: 0;
    transform: scale(0.6);
}


body.light-mode .theme-icon-sun {
    opacity: 0;
    transform: scale(0.6);
}


body.light-mode .theme-icon-moon {
    opacity: 1;
    transform: scale(1);
}


/* Profile */

.topbar-profile {
    height: 40px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 3px 6px 3px 3px;

    color: var(--text-primary);
    background: transparent;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast);
}


.topbar-profile:hover {
    background: var(--surface);
    border-color: var(--border);
}


.topbar-avatar {
    width: 34px;
    height: 34px;

    font-size: 9px;
}


.topbar-profile-arrow {
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================================================
   12. PAGE CONTENT
========================================================= */

.page-content {
    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;

    padding: 30px 34px 50px;
}


/* =========================================================
   13. WELCOME SECTION
========================================================= */

.welcome-section {
    min-height: 290px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 42px;

    margin-bottom: 24px;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(20, 184, 166, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(245, 158, 11, 0.12),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0a211c 0%,
            #0b1917 55%,
            #0a1715 100%
        );

    border: 1px solid rgba(16, 185, 129, 0.13);

    box-shadow: var(--shadow-md);
}


body.light-mode .welcome-section {
    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(20, 184, 166, 0.14),
            transparent 34%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(245, 158, 11, 0.1),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ecfbf5 0%,
            #f7fcfa 60%,
            #eefaf7 100%
        );
}


.welcome-section::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    top: -220px;
    left: -160px;

    border-radius: 50%;

    border: 1px solid rgba(16, 185, 129, 0.08);
}


.welcome-section::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -270px;
    bottom: -360px;

    border-radius: 50%;

    border: 1px solid rgba(20, 184, 166, 0.08);
}


.welcome-content {
    position: relative;
    z-index: 3;

    max-width: 600px;
}


.welcome-label {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 6px 10px;

    margin-bottom: 15px;

    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-pill);

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.07);

    font-size: 10px;
    font-weight: 700;
}


.status-pulse {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.08);

    animation: pulse 2s infinite;
}


@keyframes pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(16, 185, 129, 0.08);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(16, 185, 129, 0.02);
    }
}


.welcome-content h2 {
    max-width: 620px;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.05;

    letter-spacing: -0.055em;

    font-weight: 850;
}


.welcome-content h2 span {
    color: var(--primary-light);
}


.welcome-content p {
    max-width: 510px;

    margin-top: 13px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


.welcome-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 24px;
}


/* =========================================================
   14. BUTTONS
========================================================= */

.primary-button,
.secondary-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 17px;

    border-radius: var(--radius-sm);

    font-size: 12px;
    font-weight: 750;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}


.primary-button {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--teal)
        );

    box-shadow:
        0 8px 22px var(--primary-glow);
}


.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px var(--primary-glow);
}


.secondary-button {
    color: var(--text-primary);

    background: var(--surface);

    border: 1px solid var(--border);
}


.secondary-button:hover {
    transform: translateY(-2px);

    border-color: rgba(16, 185, 129, 0.25);

    background: var(--surface-hover);
}


.welcome-actions .primary-button span {
    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   15. WELCOME VISUAL
========================================================= */

.welcome-visual {
    width: 390px;
    height: 250px;

    position: absolute;

    right: 30px;
    top: 20px;

    z-index: 2;
}


.visual-orbit {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(16, 185, 129, 0.12);
}


.orbit-one {
    width: 330px;
    height: 330px;

    top: -40px;
    right: 5px;
}


.orbit-two {
    width: 220px;
    height: 220px;

    top: 15px;
    right: 60px;

    border-color: rgba(245, 158, 11, 0.12);
}


.visual-card {
    position: absolute;

    border-radius: var(--radius-lg);

    border: 1px solid rgba(255, 255, 255, 0.09);

    background: rgba(10, 30, 26, 0.82);

    backdrop-filter: blur(18px);

    box-shadow: var(--shadow-lg);
}


.visual-card-main {
    width: 235px;

    left: 55px;
    top: 46px;

    padding: 22px;
}


.visual-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 700;
}


.visual-check {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: #ffffff;

    background: var(--primary);

    font-size: 11px;
}


.visual-card-main > strong {
    display: block;

    margin-top: 18px;

    font-size: 40px;
    line-height: 1;

    letter-spacing: -0.05em;
}


.visual-progress {
    height: 7px;

    margin-top: 17px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: rgba(255, 255, 255, 0.08);
}


.visual-progress span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--teal-light)
        );
}


.visual-card-main small {
    display: block;

    margin-top: 9px;

    color: var(--text-muted);

    font-size: 9px;
}


.floating-mini-card {
    position: absolute;

    min-width: 115px;

    padding: 12px 14px;

    display: flex;
    flex-direction: column;

    border-radius: 13px;

    background: rgba(11, 31, 27, 0.86);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: var(--shadow-md);

    backdrop-filter: blur(14px);

    animation: float-card 4s ease-in-out infinite;
}


.floating-mini-card span {
    color: var(--text-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.floating-mini-card strong {
    margin-top: 3px;

    font-size: 14px;
}


.floating-card-one {
    top: 12px;
    right: 5px;
}


.floating-card-one strong {
    color: var(--teal-light);
}


.floating-card-two {
    right: 0;
    bottom: 18px;

    animation-delay: -2s;
}


.floating-card-two strong {
    color: var(--amber-light);
}


@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =========================================================
   16. STATISTICS GRID
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}


.stat-card {
    padding: 19px;

    border-radius: var(--radius-lg);

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.stat-card:hover {
    transform: translateY(-3px);

    border-color: rgba(16, 185, 129, 0.2);

    box-shadow: var(--shadow-md);
}


.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;
}


.stat-icon svg {
    width: 18px;
    height: 18px;
}


.stat-icon-green {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}


.stat-icon-teal {
    color: var(--teal-light);
    background: rgba(20, 184, 166, 0.1);
}


.stat-icon-amber {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.1);
}


.stat-icon-violet {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}


.stat-trend {
    padding: 4px 7px;

    border-radius: var(--radius-pill);

    color: var(--text-muted);

    background: var(--surface-soft);

    font-size: 8px;
    font-weight: 750;
}


.stat-trend.positive {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.08);
}


.stat-value {
    margin-top: 18px;
}


.stat-value strong {
    font-size: 28px;
    line-height: 1;

    letter-spacing: -0.045em;
}


.stat-card p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}


.stat-card > small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   17. WORKSPACE GRID
========================================================= */

.workspace-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(260px, 0.8fr);

    gap: 18px;

    margin-bottom: 28px;
}


/* =========================================================
   18. PANEL
========================================================= */

.panel {
    min-width: 0;

    padding: 21px;

    border-radius: var(--radius-lg);

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        background var(--transition);
}


.panel:hover {
    border-color: rgba(16, 185, 129, 0.14);
}


.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.panel-header h3 {
    margin-top: 3px;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: -0.025em;
}


.panel-action {
    min-height: 34px;

    padding: 0 11px;

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.07);

    border: 1px solid rgba(16, 185, 129, 0.12);

    border-radius: var(--radius-sm);

    font-size: 10px;
    font-weight: 750;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}


.panel-action:hover {
    background: rgba(16, 185, 129, 0.13);
    transform: translateY(-1px);
}


.panel-icon-action {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);
}


.panel-icon-action:hover {
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.2);
}


/* =========================================================
   19. TASK FILTERS
========================================================= */

.task-filters {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 10px;

    padding: 4px;

    width: fit-content;

    border-radius: var(--radius-sm);

    background: var(--surface-soft);
}


.task-filter {
    min-height: 30px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 0 9px;

    border-radius: 7px;

    color: var(--text-muted);

    background: transparent;

    font-size: 9px;
    font-weight: 750;
}


.task-filter span {
    min-width: 17px;
    height: 17px;

    display: grid;
    place-items: center;

    border-radius: 5px;

    background: rgba(148, 163, 184, 0.08);

    font-size: 8px;
}


.task-filter:hover {
    color: var(--text-primary);
}


.task-filter.active {
    color: var(--primary-light);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}


.task-filter.active span {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.08);
}


/* =========================================================
   20. TASK LIST
========================================================= */

.task-list {
    display: flex;
    flex-direction: column;
}


.task-item {
    min-height: 67px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 5px;

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition-fast),
        opacity var(--transition-fast);
}


.task-item:last-child {
    border-bottom: 0;
}


.task-item:hover {
    background: var(--surface-hover);
}


.task-item.completed {
    opacity: 0.55;
}


.task-item.completed .task-content strong {
    text-decoration: line-through;
}


/* Checkbox */

.task-checkbox {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    color: transparent;

    background: transparent;

    border: 1.5px solid var(--text-muted);

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}


.task-checkbox:hover {
    border-color: var(--primary);
}


.task-checkbox span {
    width: 8px;
    height: 4px;

    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(-45deg) translate(1px, -1px);
}


.task-item.completed .task-checkbox {
    color: #ffffff;

    background: var(--primary);

    border-color: var(--primary);
}


/* Task Content */

.task-content {
    min-width: 0;
    flex: 1;
}


.task-content strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;
}


.task-meta {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 8px;
}


.task-project {
    color: var(--teal-light);

    font-weight: 650;
}


.task-divider {
    opacity: 0.5;
}


/* Priority */

.priority-badge {
    padding: 4px 7px;

    border-radius: var(--radius-pill);

    font-size: 7px;
    font-weight: 800;

    flex: 0 0 auto;
}


.priority-high {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.09);
}


.priority-medium {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.09);
}


.priority-low {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.09);
}


.task-more {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    background: transparent;

    border-radius: 7px;

    font-size: 10px;
    letter-spacing: 1px;
}


.task-more:hover {
    color: var(--text-primary);
    background: var(--surface-soft);
}


/* =========================================================
   21. QUICK TASK ADD
========================================================= */

.task-quick-add {
    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 14px;

    padding: 0 12px;

    border-radius: var(--radius-sm);

    background: var(--surface-soft);

    border: 1px dashed var(--border-strong);
}


.quick-add-icon {
    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    color: var(--primary-light);

    border-radius: 7px;

    background: rgba(16, 185, 129, 0.08);

    font-size: 16px;
}


.task-input {
    min-width: 0;
    flex: 1;

    color: var(--text-primary);

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 10px;
}


.task-input::placeholder {
    color: var(--text-muted);
}


.quick-add-submit {
    color: var(--primary-light);

    background: transparent;

    font-size: 9px;
    font-weight: 800;
}


.quick-add-submit:hover {
    color: var(--teal-light);
}


/* =========================================================
   22. FOCUS TIMER
========================================================= */

.focus-panel {
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(16, 185, 129, 0.06),
            transparent 42%
        ),
        var(--surface);
}


.focus-status {
    padding: 5px 8px;

    border-radius: var(--radius-pill);

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.08);

    font-size: 8px;
    font-weight: 800;
}


.focus-timer {
    display: flex;
    justify-content: center;

    padding: 3px 0 18px;
}


.timer-ring {
    width: 190px;
    height: 190px;

    position: relative;

    display: grid;
    place-items: center;
}


.timer-svg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    transform: rotate(-90deg);
}


.timer-track,
.focus-progress {
    fill: none;

    stroke-width: 6;
}


.timer-track {
    stroke: rgba(148, 163, 184, 0.1);
}


.focus-progress {
    stroke: url(#timerGradient);
    stroke: var(--primary);

    stroke-linecap: round;

    stroke-dasharray: 590;

    stroke-dashoffset: 590;

    transition: stroke-dashoffset 0.5s linear;
}


.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}


.timer-content span {
    color: var(--text-muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.timer-content strong {
    margin-top: 4px;

    font-size: 37px;
    line-height: 1;

    letter-spacing: -0.06em;
}


.timer-content small {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 8px;
}


.focus-controls {
    display: flex;
    justify-content: center;

    gap: 8px;
}


.focus-controls .primary-button {
    min-width: 120px;
}


.focus-controls .secondary-button {
    min-width: 70px;
}


.focus-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    margin-top: 19px;

    overflow: hidden;

    border-radius: var(--radius-sm);

    background: var(--border);
}


.focus-info > div {
    padding: 11px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--surface-soft);
}


.focus-info span {
    color: var(--text-muted);

    font-size: 8px;
}


.focus-info strong {
    margin-top: 3px;

    font-size: 12px;
}


/* =========================================================
   23. SCHEDULE
========================================================= */

.schedule-panel {
    grid-column: 1 / -1;
}


.schedule-list {
    display: flex;
    flex-direction: column;
}


.schedule-item {
    min-height: 59px;

    display: grid;

    grid-template-columns: 45px 2px minmax(0, 1fr) 7px;

    align-items: center;

    gap: 10px;

    position: relative;
}


.schedule-time {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    text-align: right;
}


.schedule-line {
    width: 2px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(16, 185, 129, 0.08),
            rgba(20, 184, 166, 0.25),
            rgba(16, 185, 129, 0.08)
        );
}


.schedule-content {
    padding: 9px 0;
}


.schedule-content strong {
    display: block;

    font-size: 10px;
    font-weight: 750;
}


.schedule-content small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 8px;
}


.schedule-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.08);
}


.schedule-item:nth-child(2) .schedule-dot {
    background: var(--teal);
}


.schedule-item:nth-child(3) .schedule-dot {
    background: var(--amber);
}


.schedule-item:nth-child(4) .schedule-dot {
    background: var(--violet);
}


/* =========================================================
   24. SECTION BLOCK
========================================================= */

.section-block,
.quick-notes-section {
    margin-bottom: 28px;
}


.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}


.section-heading-row h3 {
    margin-top: 4px;

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -0.035em;
}


.text-button {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--primary-light);

    background: transparent;

    font-size: 9px;
    font-weight: 800;
}


.text-button span {
    font-size: 15px;

    transition: transform var(--transition-fast);
}


.text-button:hover span {
    transform: translateX(3px);
}


/* =========================================================
   25. PROJECTS GRID
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


.project-card {
    padding: 19px;

    border-radius: var(--radius-lg);

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.project-card:hover {
    transform: translateY(-4px);

    border-color: rgba(16, 185, 129, 0.2);

    box-shadow: var(--shadow-md);
}


.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.project-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 850;
}


.project-icon-green {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}


.project-icon-teal {
    color: var(--teal-light);
    background: rgba(20, 184, 166, 0.1);
}


.project-icon-amber {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.1);
}


.project-more {
    color: var(--text-muted);

    background: transparent;

    font-size: 10px;
    letter-spacing: 1px;
}


.project-more:hover {
    color: var(--text-primary);
}


.project-card h4 {
    margin-top: 17px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: -0.02em;
}


.project-card p {
    min-height: 34px;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 9px;
    line-height: 1.55;
}


.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 17px;

    color: var(--text-muted);

    font-size: 8px;
}


.project-meta strong {
    color: var(--text-secondary);

    font-size: 9px;
}


.project-progress {
    height: 5px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: rgba(148, 163, 184, 0.1);
}


.progress-fill {
    height: 100%;

    display: block;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--teal)
        );

    transition: width 0.7s ease;
}


.project-members {
    display: flex;
    align-items: center;

    margin-top: 17px;
}


.member-avatar {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    margin-left: -4px;

    border: 2px solid var(--surface);

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--teal-dark),
            var(--primary-dark)
        );

    font-size: 6px;
    font-weight: 800;
}


.member-avatar:first-child {
    margin-left: 0;
}


.member-avatar:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            #0f766e,
            #14b8a6
        );
}


.member-avatar:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #047857,
            #10b981
        );
}


.member-extra {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    margin-left: -4px;

    border: 2px solid var(--surface);

    border-radius: 50%;

    color: var(--text-muted);

    background: var(--surface-soft);

    font-size: 6px;
    font-weight: 800;
}


/* =========================================================
   26. LOWER GRID
========================================================= */

.lower-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.8fr);

    gap: 18px;

    margin-bottom: 28px;
}


/* =========================================================
   27. PRODUCTIVITY CHART
========================================================= */

.chart-summary {
    display: flex;
    align-items: center;

    gap: 10px;
}


.chart-summary strong {
    font-size: 29px;

    letter-spacing: -0.05em;
}


.chart-summary .positive {
    padding: 4px 7px;

    border-radius: var(--radius-pill);

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.08);

    font-size: 8px;
    font-weight: 750;
}


.chart-select {
    height: 32px;

    padding: 0 9px;

    color: var(--text-secondary);

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    outline: 0;

    font-size: 9px;
}


.productivity-chart {
    height: 220px;

    display: flex;

    gap: 10px;

    margin-top: 22px;
}


.chart-y-axis {
    width: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 25px;

    color: var(--text-muted);

    font-size: 7px;

    text-align: right;
}


.chart-bars {
    min-width: 0;
    flex: 1;

    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    align-items: end;

    gap: 10px;

    position: relative;

    padding-bottom: 25px;
}


.chart-bars::before {
    content: "";

    position: absolute;

    inset: 0 0 25px;

    background:
        repeating-linear-gradient(
            to bottom,
            var(--border) 0,
            var(--border) 1px,
            transparent 1px,
            transparent 25%
        );

    pointer-events: none;
}


.chart-column {
    height: 100%;

    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}


.chart-bar {
    width: min(30px, 70%);

    position: relative;
    z-index: 2;

    border-radius: 8px 8px 3px 3px;

    background:
        linear-gradient(
            180deg,
            rgba(20, 184, 166, 0.55),
            rgba(16, 185, 129, 0.2)
        );

    transition:
        transform var(--transition),
        filter var(--transition);
}


.chart-column:hover .chart-bar {
    transform: translateY(-3px);

    filter: brightness(1.2);
}


.chart-column.active .chart-bar {
    background:
        linear-gradient(
            180deg,
            var(--primary),
            var(--teal)
        );

    box-shadow:
        0 8px 22px var(--primary-glow);
}


.chart-column > span {
    position: absolute;

    bottom: 0;

    color: var(--text-muted);

    font-size: 7px;
}


/* =========================================================
   28. ACTIVITY
========================================================= */

.activity-list {
    display: flex;
    flex-direction: column;
}


.activity-item {
    min-height: 59px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);
}


.activity-item:last-child {
    border-bottom: 0;
}


.activity-avatar {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 7px;
    font-weight: 800;
}


.activity-green {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}


.activity-teal {
    color: var(--teal-light);
    background: rgba(20, 184, 166, 0.1);
}


.activity-amber {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.1);
}


.activity-violet {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}


.activity-content {
    min-width: 0;
    flex: 1;
}


.activity-content p {
    color: var(--text-secondary);

    font-size: 9px;

    line-height: 1.4;
}


.activity-content strong {
    color: var(--text-primary);
    font-weight: 750;
}


.activity-content small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 7px;
}


.activity-check,
.activity-arrow {
    color: var(--primary-light);

    font-size: 10px;
}


.activity-arrow {
    color: var(--text-muted);
}


/* =========================================================
   29. QUICK NOTES
========================================================= */

.notes-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


.note-card,
.new-note-card {
    min-height: 150px;

    position: relative;

    padding: 19px;

    border-radius: var(--radius-lg);

    border: 1px solid var(--border);

    background: var(--surface);

    text-align: left;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.note-card:hover,
.new-note-card:hover {
    transform: translateY(-3px);

    border-color: rgba(16, 185, 129, 0.2);

    box-shadow: var(--shadow-md);
}


.note-card-primary {
    background:
        linear-gradient(
            145deg,
            rgba(16, 185, 129, 0.08),
            var(--surface)
        );
}


.note-pin {
    position: absolute;

    top: 18px;
    right: 18px;

    color: var(--amber);

    font-size: 8px;
}


.note-card h4 {
    padding-right: 20px;

    font-size: 12px;
    font-weight: 800;
}


.note-card p {
    margin-top: 9px;

    color: var(--text-secondary);

    font-size: 9px;
    line-height: 1.65;
}


.note-card small {
    display: block;

    margin-top: 15px;

    color: var(--text-muted);

    font-size: 7px;
}


.new-note-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);

    background: transparent;

    border-style: dashed;
}


.new-note-card > span {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.08);

    font-size: 19px;
}


.new-note-card strong {
    margin-top: 9px;

    font-size: 10px;
}


.new-note-card small {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 8px;
}


/* =========================================================
   30. FOOTER
========================================================= */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 25px;

    color: var(--text-muted);

    border-top: 1px solid var(--border);

    font-size: 8px;
}


.footer-links {
    display: flex;
    align-items: center;

    gap: 15px;
}


.footer-links a {
    transition: color var(--transition-fast);
}


.footer-links a:hover {
    color: var(--primary-light);
}


/* =========================================================
   31. SEARCH OVERLAY
========================================================= */

.search-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 100px 20px 30px;

    background: rgba(2, 12, 10, 0.72);

    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;

    z-index: 300;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.search-overlay.active {
    opacity: 1;
    visibility: visible;
}


.search-dialog {
    width: min(680px, 100%);

    max-height: calc(100vh - 130px);

    overflow: hidden;

    border-radius: var(--radius-xl);

    background: var(--surface);

    border: 1px solid var(--border-strong);

    box-shadow: var(--shadow-lg);

    transform: translateY(-12px) scale(0.98);

    transition: transform var(--transition);
}


.search-overlay.active .search-dialog {
    transform: translateY(0) scale(1);
}


.search-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 23px;

    border-bottom: 1px solid var(--border);
}


.search-dialog-header h2 {
    margin-top: 4px;

    font-size: 20px;

    letter-spacing: -0.035em;
}


.search-close,
.notification-close,
.modal-close {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 20px;
    line-height: 1;
}


.search-close:hover,
.notification-close:hover,
.modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.2);
}


.search-input-wrap {
    height: 52px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 17px 20px 12px;

    padding: 0 13px;

    border-radius: var(--radius-md);

    background: var(--surface-soft);

    border: 1px solid var(--border);
}


.search-input-wrap svg {
    width: 17px;
    height: 17px;

    color: var(--text-muted);
}


.search-input {
    min-width: 0;
    flex: 1;

    color: var(--text-primary);

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 11px;
}


.search-input::placeholder {
    color: var(--text-muted);
}


.search-shortcut {
    padding: 4px 6px;

    border-radius: 5px;

    color: var(--text-muted);

    background: var(--surface);

    border: 1px solid var(--border);

    font-size: 7px;
    font-weight: 800;
}


.search-results {
    min-height: 100px;

    max-height: 420px;

    overflow-y: auto;

    padding: 10px 20px 20px;
}


.search-empty {
    padding: 35px 10px;

    color: var(--text-muted);

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   32. NOTIFICATION PANEL
========================================================= */

.notification-panel {
    width: min(380px, calc(100vw - 30px));

    position: fixed;

    top: 88px;
    right: 22px;

    padding: 20px;

    border-radius: var(--radius-lg);

    background: var(--surface);

    border: 1px solid var(--border-strong);

    box-shadow: var(--shadow-lg);

    z-index: 250;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}


.notification-panel.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}


.notification-header h2 {
    margin-top: 3px;

    font-size: 17px;
    letter-spacing: -0.03em;
}


.notification-list {
    display: flex;
    flex-direction: column;
}


.notification-item {
    display: flex;
    gap: 10px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}


.notification-icon {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 850;
}


.notification-icon-green {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
}


.notification-icon-teal {
    color: var(--teal-light);
    background: rgba(20, 184, 166, 0.1);
}


.notification-icon-amber {
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.1);
}


.notification-item > div {
    min-width: 0;
    flex: 1;
}


.notification-item strong {
    font-size: 10px;
}


.notification-item p {
    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 8px;
    line-height: 1.5;
}


.notification-item small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 7px;
}


.notification-item.unread {
    position: relative;
}


.notification-item.unread::after {
    content: "";

    width: 5px;
    height: 5px;

    position: absolute;

    right: 2px;
    top: 18px;

    border-radius: 50%;

    background: var(--primary);
}


.notification-footer-button {
    width: 100%;

    min-height: 36px;

    margin-top: 12px;

    border-radius: var(--radius-sm);

    color: var(--primary-light);

    background: rgba(16, 185, 129, 0.07);

    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   33. PROFILE MENU
========================================================= */

.profile-menu {
    width: 235px;

    position: fixed;

    top: 69px;
    right: 25px;

    padding: 10px;

    border-radius: var(--radius-md);

    background: var(--surface);

    border: 1px solid var(--border-strong);

    box-shadow: var(--shadow-lg);

    z-index: 240;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-7px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}


.profile-menu.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.profile-menu-header {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px;
}


.profile-menu-avatar {
    width: 35px;
    height: 35px;

    font-size: 9px;
}


.profile-menu-header div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.profile-menu-header strong {
    font-size: 10px;
}


.profile-menu-header small {
    color: var(--text-muted);
    font-size: 8px;
}


.profile-menu-divider {
    height: 1px;

    margin: 6px 0;

    background: var(--border);
}


.profile-menu > button {
    width: 100%;
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 9px;

    color: var(--text-secondary);

    background: transparent;

    border-radius: 8px;

    font-size: 9px;
    font-weight: 650;

    text-align: left;
}


.profile-menu > button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}


.profile-menu .profile-logout {
    color: #fca5a5;
}


.profile-menu .profile-logout:hover {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
}


/* =========================================================
   34. TASK MODAL
========================================================= */

.task-modal-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 12, 10, 0.72);

    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    z-index: 400;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.task-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


.task-modal {
    width: min(560px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 24px;

    border-radius: var(--radius-xl);

    background: var(--surface);

    border: 1px solid var(--border-strong);

    box-shadow: var(--shadow-lg);

    transform: translateY(12px) scale(0.98);

    transition: transform var(--transition);
}


.task-modal-overlay.active .task-modal {
    transform: translateY(0) scale(1);
}


.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 22px;
}


.modal-header h2 {
    margin-top: 4px;

    font-size: 21px;

    letter-spacing: -0.04em;
}


/* =========================================================
   35. FORM
========================================================= */

.task-form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.form-group label {
    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 750;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    color: var(--text-primary);

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    outline: 0;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.form-group input,
.form-group select {
    height: 43px;

    padding: 0 12px;

    font-size: 10px;
}


.form-group textarea {
    min-height: 100px;

    resize: vertical;

    padding: 11px 12px;

    font-size: 10px;
    line-height: 1.5;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(16, 185, 129, 0.5);

    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.08);
}


.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}


.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* Modal Actions */

.modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 9px;

    padding-top: 7px;
}


.modal-submit {
    min-width: 110px;
}


.modal-cancel {
    min-width: 80px;
}


/* =========================================================
   36. UTILITY STATES
========================================================= */

body.modal-open,
body.search-open {
    overflow: hidden;
}


.hidden {
    display: none !important;
}


/* =========================================================
   37. RESPONSIVE — LARGE TABLET
========================================================= */

@media (max-width: 1200px) {

    :root {
        --sidebar-width: 235px;
    }

    .page-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .welcome-section {
        padding: 34px;
    }

    .welcome-visual {
        right: 5px;
        transform: scale(0.88);
        transform-origin: right center;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .projects-grid .project-card:last-child {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   38. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 980px) {

    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .main-area {
        width: 100%;
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .schedule-panel {
        grid-column: auto;
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }

    .welcome-visual {
        opacity: 0.7;
        transform: scale(0.78);
        right: -30px;
    }

}


/* =========================================================
   39. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 720px) {

    :root {
        --topbar-height: 68px;
    }

    .topbar {
        padding: 0 15px;
    }

    .topbar-actions {
        gap: 3px;
    }

    .icon-button {
        width: 36px;
        height: 36px;
    }

    .topbar-profile-arrow {
        display: none;
    }

    .page-heading h1 {
        font-size: 17px;
    }

    .page-kicker {
        font-size: 8px;
    }

    .page-content {
        padding: 18px 15px 35px;
    }

    .welcome-section {
        min-height: auto;

        padding: 27px 23px;

        border-radius: var(--radius-lg);
    }

    .welcome-content {
        max-width: 100%;
    }

    .welcome-content h2 {
        font-size: 32px;
    }

    .welcome-content p {
        font-size: 11px;
    }

    .welcome-visual {
        display: none;
    }

    .welcome-actions {
        flex-wrap: wrap;
    }

    .primary-button,
    .secondary-button {
        min-height: 40px;
        font-size: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value strong {
        font-size: 23px;
    }

    .stat-card p {
        font-size: 9px;
    }

    .stat-card > small {
        font-size: 7px;
    }

    .workspace-grid,
    .lower-grid {
        gap: 12px;
    }

    .panel {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .task-item {
        gap: 8px;
    }

    .task-meta {
        flex-wrap: wrap;
    }

    .priority-badge {
        display: none;
    }

    .task-more {
        display: none;
    }

    .schedule-item {
        grid-template-columns:
            39px 2px minmax(0, 1fr) 7px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:last-child {
        grid-column: auto;
    }

    .section-heading-row {
        align-items: flex-start;
    }

    .section-heading-row h3 {
        font-size: 17px;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }

    .productivity-chart {
        height: 190px;
    }

    .chart-bars {
        gap: 5px;
    }

    .chart-bar {
        width: 60%;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .task-modal {
        padding: 19px;
        border-radius: var(--radius-lg);
    }

    .notification-panel {
        top: 74px;
        right: 15px;
    }

    .profile-menu {
        top: 63px;
        right: 15px;
    }

}


/* =========================================================
   40. RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .topbar-actions .icon-button:nth-child(3) {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        display: grid;

        grid-template-columns:
            auto 1fr auto;

        grid-template-areas:
            "icon value trend"
            "icon title title";

        align-items: center;

        column-gap: 12px;
    }

    .stat-card-top {
        display: contents;
    }

    .stat-icon {
        grid-area: icon;
    }

    .stat-trend {
        grid-area: trend;
    }

    .stat-value {
        grid-area: value;

        margin-top: 0;
    }

    .stat-card p {
        grid-area: title;

        margin-top: 2px;
    }

    .stat-card > small {
        display: none;
    }

    .task-filters {
        width: 100%;

        overflow-x: auto;
    }

    .task-filter {
        flex: 1;

        justify-content: center;

        white-space: nowrap;
    }

    .task-quick-add {
        padding: 0 9px;
    }

    .quick-add-submit {
        display: none;
    }

    .focus-controls {
        flex-direction: column;
    }

    .focus-controls .primary-button,
    .focus-controls .secondary-button {
        width: 100%;
    }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;
    }

    .chart-select {
        width: 100%;
    }

    .search-overlay {
        padding-top: 70px;
    }

}


/* =========================================================
   41. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}