/* ============================================================
   ForceLab Web — Liquid Glass aesthetic, matching the iPad app
   ============================================================ */

:root {
    /* surface colors (very dark navy w/ slight blue tint) */
    --bg-0: #06080f;
    --bg-1: #0d1220;
    --bg-2: #141a2c;
    --bg-3: #1c2440;

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.14);
    --glass-bg: rgba(20, 28, 50, 0.45);
    --glass-bg-strong: rgba(28, 38, 65, 0.65);

    --text-1: #f0f3fa;
    --text-2: #9fa9bf;
    --text-3: #5d6680;

    /* iPad app accent tokens */
    --jump:     #4a9eff;    /* blue   */
    --iso:      #ff9f0a;    /* orange */
    --dinamico: #bf5af2;    /* purple */
    --grow:     #34c759;    /* green  */
    --mtp:      #ff453a;    /* red    */
    --balance:  #ff9500;
    --ergo:     #5ac8fa;
    --accent:   var(--jump);

    --radius:    16px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    --font: -apple-system, "SF Pro Rounded", "SF Pro Text",
            BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", "Menlo", monospace;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
[hidden] { display: none !important; }

body {
    color: var(--text-1);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;

    /* Radial gradient backdrop like iPad — subtle purple/blue glow on
       deep navy. Three soft radial highlights overlaid on a flat black. */
    background:
        radial-gradient(circle 800px at 10% 0%,   rgba(191, 90, 242, 0.18), transparent 60%),
        radial-gradient(circle 900px at 90% 100%, rgba(74, 158, 255, 0.16), transparent 60%),
        radial-gradient(circle 600px at 50% 50%,  rgba(52, 199, 89, 0.06), transparent 70%),
        var(--bg-0);
}

/* ============================================================
   LAYOUT — sidebar + content
   ============================================================ */

.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
    border-right: 1px solid var(--border);
    background: rgba(8, 11, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    user-select: none;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--jump);
    box-shadow: 0 0 16px var(--jump), 0 0 4px var(--jump);
    flex-shrink: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
}

.side-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    overflow-y: auto;
}

/* navigation items in sidebar — both top-level (Team/Player/Test) and
   children (athletes inside team, tests inside athlete). */

.nav-section {
    margin-top: 12px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
}

.nav-item.active {
    background: rgba(74, 158, 255, 0.14);
    color: var(--jump);
    font-weight: 600;
}

/* Module-specific active tints — match iPad app colors */
.nav-item.module-jump.active     { background: rgba(74, 158, 255, 0.14); color: var(--jump);     box-shadow: inset 3px 0 0 var(--jump); }
.nav-item.module-iso.active      { background: rgba(255, 159, 10, 0.14); color: var(--iso);      box-shadow: inset 3px 0 0 var(--iso); }
.nav-item.module-dinamico.active { background: rgba(191, 90, 242, 0.14); color: var(--dinamico); box-shadow: inset 3px 0 0 var(--dinamico); }
.nav-item.module-grow.active     { background: rgba(52, 199, 89, 0.14);  color: var(--grow);     box-shadow: inset 3px 0 0 var(--grow); }
.nav-item.module-all.active      { background: rgba(255, 255, 255, 0.08); color: var(--text-1);  box-shadow: inset 3px 0 0 var(--text-1); }
.nav-item.module-jump .nav-icon     { color: var(--jump); }
.nav-item.module-iso .nav-icon      { color: var(--iso); }
.nav-item.module-dinamico .nav-icon { color: var(--dinamico); }
.nav-item.module-grow .nav-icon     { color: var(--grow); }

/* Nav group = expandable module containing nested teams. Uses <details>. */
.nav-group { list-style: none; }
.nav-group > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }

.nav-item-summary { padding-right: 8px; }
.nav-disclosure {
    font-size: 10px;
    opacity: 0.45;
    transition: transform 0.15s;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}
.nav-group[open] > summary .nav-disclosure { transform: rotate(90deg); opacity: 0.7; }

.nav-summary-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.nav-summary-link:hover { color: var(--text-1); }

.nav-children {
    padding: 2px 0 4px 12px;
    border-left: 1px solid var(--border);
    margin-left: 18px;
}
.nav-subitem {
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text-2);
}
.nav-subitem .nav-icon { font-size: 10px; opacity: 0.5; }
.nav-empty {
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-3);
    font-style: italic;
}

/* Module colors carry over to the group active state — give the active
   sub-team a tinted background matching its parent module. */
.nav-group.module-jump.active     > summary { color: var(--jump);     }
.nav-group.module-iso.active      > summary { color: var(--iso);      }
.nav-group.module-dinamico.active > summary { color: var(--dinamico); }
.nav-group.module-grow.active     > summary { color: var(--grow);     }
.nav-group.module-jump     .nav-subitem.active { background: rgba(74, 158, 255, 0.12); color: var(--jump);     }
.nav-group.module-iso      .nav-subitem.active { background: rgba(255, 159, 10, 0.12); color: var(--iso);      }
.nav-group.module-dinamico .nav-subitem.active { background: rgba(191, 90, 242, 0.12); color: var(--dinamico); }
.nav-group.module-grow     .nav-subitem.active { background: rgba(52, 199, 89, 0.12);  color: var(--grow);     }
.nav-group.module-all      .nav-subitem.active { background: rgba(255, 255, 255, 0.08); color: var(--text-1);  }

.nav-item .nav-icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item .nav-meta {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.user-name {
    font-size: 11px;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */

.content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    min-height: 76px;
    flex-wrap: wrap;
}

.page-header .page-header-titles {
    flex-shrink: 0;
    min-width: 0;
}

.page-header .page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.page-header .page-sub {
    color: var(--text-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
    margin: 4px 0 0;
}

/* Pills sit immediately to the right of the title (left-aligned cluster
   like the iPad). header-right is empty for now — reserved for future
   per-page actions (export, fav, etc). */
.page-header .header-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.page-header .header-right { margin-left: auto; }

.app-body {
    flex: 1;
    padding: 24px 32px 40px;
    overflow-y: auto;
}

/* ============================================================
   PILL DROPDOWN — like iPad's [Team ▼] [Atleta ▼] [Storico ▼]
   ============================================================ */

.pill-dropdown {
    position: relative;
}

.pill-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.15s, border-color 0.15s;
}

.pill-dropdown summary::-webkit-details-marker { display: none; }
.pill-dropdown summary:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255, 255, 255, 0.2);
}

.pill-dropdown summary .pill-icon {
    opacity: 0.7;
    font-size: 14px;
}

.pill-dropdown summary .pill-caret {
    margin-left: 4px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.pill-dropdown[open] summary .pill-caret { transform: rotate(180deg); }

/* Simple non-dropdown pill link (e.g. "← Dashboard"). */
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
}
.pill-link:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.08); }
.pill-link .pill-icon { opacity: 0.6; }

/* Disabled pill — looks like a normal summary but greyed and not clickable. */
.pill-dropdown.disabled .pill-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.5;
    cursor: not-allowed;
    user-select: none;
}
.pill-dropdown.disabled .pill-summary .pill-caret { opacity: 0.3; }

.pill-dropdown .pill-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--glass-bg-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 6px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.pill-dropdown .pill-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-1);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.pill-dropdown .pill-menu-item:hover { background: rgba(255, 255, 255, 0.06); }
.pill-dropdown .pill-menu-item.current { color: var(--jump); }
.pill-dropdown .pill-menu-item .pill-menu-sub {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--mono);
}

/* ============================================================
   GLASS CARDS
   ============================================================ */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.glass-card.tinted-jump     { border-color: rgba(74, 158, 255, 0.25); box-shadow: 0 8px 24px rgba(74, 158, 255, 0.08); }
.glass-card.tinted-iso      { border-color: rgba(255, 159, 10, 0.25); box-shadow: 0 8px 24px rgba(255, 159, 10, 0.08); }
.glass-card.tinted-dinamico { border-color: rgba(191, 90, 242, 0.25); box-shadow: 0 8px 24px rgba(191, 90, 242, 0.08); }
.glass-card.tinted-grow     { border-color: rgba(52, 199, 89, 0.25);  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.08); }

.card-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* ============================================================
   TEAM / PLAYER GRID — large iOS-style cards
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.entity-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

.entity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%);
    pointer-events: none;
}

.entity-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--glass-bg-strong);
    box-shadow: var(--shadow-md);
}

.entity-card .entity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.15);
    color: var(--jump);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(74, 158, 255, 0.3);
    flex-shrink: 0;
    margin-bottom: 4px;
}

.entity-card .entity-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.entity-card .entity-stats {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-2);
}

.entity-card .entity-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.entity-card .entity-stat-val {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text-1);
    line-height: 1;
}

.entity-card .entity-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
}

/* ============================================================
   TEST LIST — iPad-style rows with colored badges
   ============================================================ */

.test-list {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.test-row {
    display: grid;
    grid-template-columns: 130px 1fr 180px 40px;
    padding: 16px 20px;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

/* Dashboard row layout: 5 columns instead of 4 (adds athlete + team).
   .test-row-head is the column header row — no hover, smaller font. */
.dashboard-list .test-row {
    grid-template-columns: 130px 1fr 1.4fr 1fr 180px;
}
.dashboard-list .col-player { color: var(--text-1); font-weight: 500; }
.dashboard-list .col-team   { color: var(--text-2); font-size: 12px; }
.test-row-head {
    background: rgba(255, 255, 255, 0.02);
    cursor: default;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.test-row-head:hover { background: rgba(255, 255, 255, 0.02); }

.test-row:last-child { border-bottom: none; }
.test-row:hover { background: rgba(255, 255, 255, 0.04); }

.test-row .col-subtype {
    color: var(--text-1);
    font-weight: 500;
    font-size: 14px;
}

.test-row .col-date {
    font-family: var(--mono);
    color: var(--text-2);
    font-size: 12px;
    text-align: right;
}

.test-row .col-extra { text-align: center; opacity: 0.7; }

/* Test-type badges — pill with glow matching the iPad accent color */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.badge-jump     { background: rgba(74, 158, 255, 0.18);  color: var(--jump);     box-shadow: 0 0 12px rgba(74, 158, 255, 0.25);  }
.badge-iso      { background: rgba(255, 159, 10, 0.18);  color: var(--iso);      box-shadow: 0 0 12px rgba(255, 159, 10, 0.25);  }
.badge-dinamico { background: rgba(191, 90, 242, 0.18);  color: var(--dinamico); box-shadow: 0 0 12px rgba(191, 90, 242, 0.25);  }
.badge-grow     { background: rgba(52, 199, 89, 0.18);   color: var(--grow);     box-shadow: 0 0 12px rgba(52, 199, 89, 0.25);   }
.badge-mtp      { background: rgba(255, 69, 58, 0.18);   color: var(--mtp);      box-shadow: 0 0 12px rgba(255, 69, 58, 0.25);   }

/* Filter chips above test list (Jump / Iso / Dinamico / Grow) */
.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-chip {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.15s;
}

.filter-chip:hover { border-color: var(--border-strong); color: var(--text-1); }

.filter-chip.active.f-jump     { color: var(--jump);     border-color: rgba(74, 158, 255, 0.4);  background: rgba(74, 158, 255, 0.1);  box-shadow: 0 0 16px rgba(74, 158, 255, 0.18);  }
.filter-chip.active.f-iso      { color: var(--iso);      border-color: rgba(255, 159, 10, 0.4);  background: rgba(255, 159, 10, 0.1);  box-shadow: 0 0 16px rgba(255, 159, 10, 0.18);  }
.filter-chip.active.f-dinamico { color: var(--dinamico); border-color: rgba(191, 90, 242, 0.4);  background: rgba(191, 90, 242, 0.1);  box-shadow: 0 0 16px rgba(191, 90, 242, 0.18);  }
.filter-chip.active.f-grow     { color: var(--grow);     border-color: rgba(52, 199, 89, 0.4);   background: rgba(52, 199, 89, 0.1);   box-shadow: 0 0 16px rgba(52, 199, 89, 0.18);   }

/* ============================================================
   TEST DETAIL — iPad-like split (large chart, metrics card)
   ============================================================ */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* Chart container has an explicit fixed height; the canvas inside is
   `position: absolute` filling it. Chart.js with responsive=true +
   maintainAspectRatio=false would otherwise grow the container by 1px
   each frame and loop forever (the parent had `flex: 1` with no defined
   height upstream, so the canvas could expand without bound). */
.chart-card { display: flex; flex-direction: column; }
.chart-card .chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    flex: none;
}
.chart-card .chart-canvas-wrap > canvas {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.metrics-card .metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.metrics-card .metric-row:last-child { border-bottom: none; }
.metric-row .metric-key { color: var(--text-2); font-weight: 500; }
.metric-row .metric-val { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.metric-row .metric-unit { color: var(--text-3); font-size: 11px; margin-left: 4px; }

/* ============================================================
   SIGN-IN SCREEN
   ============================================================ */

.signin-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle 800px at 50% 30%, rgba(74, 158, 255, 0.18), transparent 60%),
        var(--bg-0);
}

.signin-card {
    background: var(--glass-bg-strong);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 48px;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.brand-large { justify-content: center; margin-bottom: 24px; }
.brand-large .brand-name { font-size: 26px; }
.brand-large .brand-sub  { font-size: 13px; }

.signin-card p { color: var(--text-2); margin: 0 0 20px; }
#apple-sign-in-button { display: inline-block; margin: 16px 0; }
.signin-hint { font-size: 12px; color: var(--text-3); margin-top: 28px !important; line-height: 1.6; }

/* ============================================================
   EMPTY / LOADING / ERROR
   ============================================================ */

.empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-3);
}

.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty h3 { margin: 0 0 8px; color: var(--text-2); font-weight: 600; }
.empty p { margin: 0; font-size: 13px; }

.loading {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--jump);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

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

#loading-text { color: var(--text-2); font-size: 13px; }

.error-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 69, 58, 0.95);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    z-index: 110;
    max-width: 400px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .side-nav { display: none; }
    .sidebar-footer { padding-top: 0; border: none; margin-left: auto; }
    .detail-grid { grid-template-columns: 1fr; }
    .test-row { grid-template-columns: 110px 1fr 100px; }
    .test-row .col-extra { display: none; }
    .page-header { padding: 16px; }
    .app-body { padding: 16px; }
}
