/* ===================================
   TRAINING LAB – RESPONSIVE CSS
   Colors: white, teal (#35d8c2), gray
   =================================== */

/* ---------- Blazor Reconnect Modal ---------- */
.blazor-reconnect-modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center; justify-content: center;
}
.blazor-reconnect-modal.components-reconnect-show {
    display: flex !important;
}
.blazor-reconnect-modal.components-reconnect-hide,
.blazor-reconnect-modal.components-reconnect-failed,
.blazor-reconnect-modal.components-reconnect-rejected {
    display: none !important;
}
.blazor-reconnect-inner {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    animation: reconnect-pulse 1.5s ease-in-out infinite;
}
@keyframes reconnect-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: #1f2937;
    background: #f3f4f6;
    -webkit-tap-highlight-color: transparent;
    /* Disable zoom on double-tap and pinch */
    touch-action: manipulation;
}

body { 
    min-height: 100dvh;
    /* Disable text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Disable callout on long press (iOS) */
    -webkit-touch-callout: none;
}

/* Allow text selection only in input fields */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* ---------- PAGE LAYOUT ---------- */
.page { display: flex; flex-direction: column; min-height: 100dvh; }
.page-content { flex: 1; padding: 1rem; padding-bottom: 5rem; max-width: 800px; margin: 0 auto; width: 100%; }

/* ---------- TOP BAR ---------- */
/* ---------- TOP BAR ---------- */
.top-bar {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: #35d8c2; color: white; padding: .7rem 1rem .5rem;
    padding-top: calc(.7rem + env(safe-area-inset-top, 0px));
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.brand-wrap {
    width: 100%; display: flex; justify-content: center; margin-bottom: .15rem;
}
.top-bar .brand {
    font-weight: 700; font-size: 1.35rem; display: flex; align-items: center; gap: .35rem;
    pointer-events: auto; white-space: nowrap;
    letter-spacing: .02em;
}
.brand-crab {
    width: 32px; height: 24px;
    flex-shrink: 0;
}
.user-greet-bar {
    width: 100%; display: flex; justify-content: center; align-items: center; gap: .8rem;
    margin-bottom: .1rem;
    flex-wrap: wrap;
}
.user-greet {
    font-size: 1.05rem; font-weight: 500; letter-spacing: .01em;
    padding: .2rem .5rem;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    max-width: 320px;
    text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.top-bar a, .top-bar button { color: white; text-decoration: none; background: none; border: none; cursor: pointer; font-size: .95rem; padding: .3rem .7rem; border-radius: 6px; }
.top-bar a:hover, .top-bar button:hover { background: rgba(255,255,255,.15); }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; align-items: flex-end; background: white;
    border-top: 1px solid #e5e7eb;
    z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav .nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: .45rem 0 .35rem; font-size: .65rem; color: #9ca3af; text-decoration: none;
    transition: color .15s; position: relative;
}
.bottom-nav .nav-item .nav-icon { font-size: 1.2rem; margin-bottom: .1rem; }
.bottom-nav .nav-item .nav-label { font-weight: 600; }
.bottom-nav .nav-item.active, .bottom-nav .nav-item:hover { color: #35d8c2; }

/* Center training button */
.nav-center { padding-top: 0 !important; }
.nav-center-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: #35d8c2; display: flex; align-items: center; justify-content: center;
    margin-top: -18px; box-shadow: 0 4px 12px rgba(53,216,194,.35);
    transition: transform .15s, box-shadow .15s;
}
.nav-center:hover .nav-center-circle { transform: scale(1.08); box-shadow: 0 6px 18px rgba(53,216,194,.45); }
.nav-center.active .nav-center-circle { background: #2bb5a0; }
.nav-center-icon { font-size: 1.5rem; filter: brightness(10); }
.nav-center .nav-label { margin-top: .15rem; }

/* ---------- PAGE HEADER ---------- */
.page-header h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }

/* ============================================================
   WEEK DAY SELECTOR
   ============================================================ */
.week-selector {
    display: flex; justify-content: center; gap: .6rem;
    padding: .5rem 0 1rem; margin-bottom: .5rem;
}
.day-circle {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px solid #d1d5db; background: white;
    cursor: pointer; transition: all .2s;
    font-family: inherit;
}
.day-circle .day-abbr { font-size: .6rem; font-weight: 600; text-transform: uppercase; color: #6b7280; line-height: 1; }
.day-circle .day-num  { font-size: 1rem; font-weight: 700; color: #374151; line-height: 1.2; }
.day-circle.today  { border-color: #35d8c2; }
.day-circle.active { background: #35d8c2; border-color: #35d8c2; }
.day-circle.active .day-abbr, .day-circle.active .day-num { color: white; }

/* Session indicator dot (user day circles) */
.day-session-dot {
    width: 7px; height: 7px; border-radius: 50%;
    position: absolute; bottom: 3px; left: 50%;
    transform: translateX(-50%);
}
.day-session-dot.done { background: #22c55e; }
.day-session-dot.missed { background: #ef4444; }
.day-circle { position: relative; }
.day-circle.active .day-session-dot.done { background: #fff; }
.day-circle.active .day-session-dot.missed { background: rgba(255,255,255,.6); }

/* Training blocked info */
.start-training-info {
    text-align: center; padding: .8rem 1rem;
    color: #64748b; font-size: .85rem;
    background: #f8fafc; border-radius: 10px;
    margin-bottom: .8rem;
}

/* Session indicator dot (admin day tabs) */
.admin-session-dot {
    font-size: .55rem; margin-left: 3px; vertical-align: super;
}
.admin-session-dot.done { color: #22c55e; }
.admin-session-dot.missed { color: #ef4444; }
.admin-day-tab.active .admin-session-dot.done { color: #fff; }
.admin-day-tab.active .admin-session-dot.missed { color: #fca5a5; }

/* ============================================================
   SCHEDULE BANNER (home page)
   ============================================================ */
.schedule-banner {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1rem; padding: .5rem;
    background: white; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.schedule-chip {
    display: flex; align-items: center; gap: .4rem;
    padding: .35rem .7rem; border-radius: 6px;
    background: #fafafa; font-size: .8rem;
}
.chip-name { font-weight: 600; }
.chip-time { color: #6b7280; font-size: .75rem; }

/* ============================================================
   EXERCISE CARD — COMPACT HORIZONTAL
   ============================================================ */
.ex-card {
    background: white; border-radius: 14px;
    padding: .75rem .85rem .6rem;
    margin-bottom: .7rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border-left: 3px solid #35d8c2;
    overflow: visible;
}
.ex-card-name {
    font-size: 1.05rem; font-weight: 700; color: #111827;
    margin-bottom: .45rem;
}
.ex-row-label {
    font-size: .72rem; font-weight: 600; color: #6b7280;
    text-transform: uppercase; letter-spacing: .03em;
    margin-bottom: .2rem; margin-top: .35rem;
}
.ex-row {
    display: flex; gap: .35rem;
    overflow: visible;
    position: relative;
}

/* --- Value cell (reps / weight) --- */
.ex-cell {
    width: 100%; display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 42px;
    background: #f3f4f6; border-radius: 8px;
    border: none; cursor: pointer; font-family: inherit;
    transition: all .15s; padding: .2rem .15rem;
    box-sizing: border-box;
}
.ex-cell:active { transform: scale(.96); }
.ex-cell-val { font-size: .95rem; font-weight: 700; color: #374151; line-height: 1.1; }
.ex-cell-diff { font-size: .65rem; font-weight: 600; line-height: 1; margin-top: .1rem; }

/* Color states */
.ex-cell-up { background: #dcfce7; }
.ex-cell-up .ex-cell-val { color: #16a34a; }
.ex-cell-up .ex-cell-diff { color: #15803d; }
.ex-cell-down { background: #fee2e2; }
.ex-cell-down .ex-cell-val { color: #dc2626; }
.ex-cell-down .ex-cell-diff { color: #b91c1c; }
.ex-cell-bw { cursor: default; }
.ex-cell-bw .ex-cell-val { font-size: .82rem; font-weight: 600; color: #9ca3af; }

/* --- Edit mode cell --- */
.ex-cell-edit {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: .15rem; min-height: 42px;
    background: #fff7ed; border-radius: 8px;
    border: 2px solid #35d8c2; padding: .1rem;
}
.ex-cell-edit .ex-cell-val { color: #35d8c2; font-size: .9rem; min-width: 28px; text-align: center; }
.ex-adj-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid #35d8c2; background: white;
    color: #35d8c2; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-family: inherit; transition: all .12s; flex-shrink: 0;
}
.ex-adj-btn:active { background: #35d8c2; color: white; }

/* --- Cell wrapper for floating edit bar --- */
.ex-cell-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* --- Selected cell highlight --- */
.ex-cell-selected {
    border: 2px solid #35d8c2 !important;
    background: #f0fdfa !important;
    box-shadow: 0 0 0 2px rgba(53,216,194,.2);
}

/* --- Edit bar (floating under specific cell) --- */
.ex-edit-bar {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .3rem .5rem;
    background: #f0fdfa;
    border-radius: 10px;
    border: 1.5px solid #35d8c2;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    white-space: nowrap;
}
.ex-edit-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #35d8c2;
    background: white;
    color: #35d8c2;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
    transition: all .12s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.ex-edit-arrow:active { background: #35d8c2; color: white; }
.ex-edit-val {
    font-size: .95rem;
    font-weight: 700;
    color: #0d9488;
    min-width: 38px;
    text-align: center;
}

/* --- Start Training Button & Disabled State --- */
.start-training-wrap {
    text-align: center; margin: 1rem 0 .8rem; padding: 1.5rem 1rem;
    background: white; border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.start-training-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 2rem; border-radius: 12px;
    background: #35d8c2; color: white;
    font-size: 1.1rem; font-weight: 700;
    border: none; cursor: pointer;
    transition: all .15s;
    box-shadow: 0 4px 12px rgba(53,216,194,.3);
}
.start-training-btn:hover { background: #2bb5a0; transform: scale(1.02); }
.start-training-btn:active { transform: scale(.98); }
.start-training-hint {
    font-size: .78rem; color: #94a3b8; margin-top: .5rem;
}
.training-active-bar {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1rem; border-radius: 10px;
    background: #d1faf0; color: #047857;
    font-size: .85rem; font-weight: 600;
    margin-bottom: .8rem;
}
.training-active-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.ex-card-disabled {
    opacity: .55; pointer-events: none;
}
.ex-card-disabled .ex-cell { cursor: default; }

/* --- Measurement admin view header --- */
.meas-admin-header {
    margin-bottom: 1rem;
}
.meas-back-link {
    font-size: .82rem; color: #35d8c2; text-decoration: none; font-weight: 600;
}
.meas-back-link:hover { text-decoration: underline; }
.meas-user-title {
    font-size: 1.15rem; font-weight: 700; color: #1e293b; margin-top: .3rem;
}


/* ============================================================
   SCHEDULE PAGE (Tiles)
   ============================================================ */
.schedule-filter-bar {
    display: flex; gap: .4rem; margin-bottom: 1rem;
    flex-wrap: wrap;
}
.filter-chip {
    padding: .4rem .8rem; border-radius: 20px;
    border: 2px solid #d1d5db; background: white;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit;
    display: flex; align-items: center; gap: .3rem;
}
.filter-chip.active { background: #35d8c2; color: white; border-color: #35d8c2; }
.filter-chip:hover { opacity: .85; }
.filter-dot { width: 8px; height: 8px; border-radius: 50%; }

.schedule-tiles {
    display: flex; flex-direction: column; gap: .6rem;
}
.schedule-tile {
    background: white; border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .15s, box-shadow .15s;
}
.schedule-tile:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.schedule-tile.today { border: 2px solid #35d8c2; }
.schedule-tile.rest { opacity: .7; }
.schedule-tile.rest:hover { opacity: .85; }

.tile-header {
    padding: .7rem 1rem;
    display: flex; align-items: center; gap: .5rem;
    background: #f9fafb; border-bottom: 1px solid #f3f4f6;
}
.schedule-tile.has-training .tile-header { background: linear-gradient(135deg, #e6faf7 0%, #fff 100%); }
.tile-day-name { font-weight: 700; font-size: .95rem; color: #111827; }
.tile-day-short { font-size: .7rem; color: #9ca3af; font-weight: 600; }
.today-badge {
    margin-left: auto; background: #35d8c2; color: white;
    padding: .1rem .5rem; border-radius: 10px; font-size: .65rem; font-weight: 700;
}

.tile-body { padding: .7rem 1rem; }
.tile-body.tile-rest {
    display: flex; align-items: center; gap: .5rem;
    padding: .8rem 1rem; font-size: .85rem; color: #9ca3af; font-style: italic;
}
.rest-icon { font-size: 1.1rem; }

.tile-time-block { margin-bottom: .5rem; }
.tile-time-block:last-child { margin-bottom: 0; }
.tile-time {
    display: flex; align-items: center; gap: .3rem;
    font-size: .8rem; color: #6b7280; margin-bottom: .3rem;
}
.tile-clock { font-size: .75rem; }
.tile-types { display: flex; gap: .4rem; flex-wrap: wrap; }
.tile-type-badge {
    padding: .3rem .7rem; border-radius: 8px;
    font-size: .8rem; font-weight: 600;
    display: flex; align-items: center; gap: .3rem;
}
.type-dot-sm { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ---------- TYPE FILTER (legacy) ---------- */
.type-filter {
    position: sticky; bottom: 60px;
    background: white; padding: .7rem 1rem;
    border-radius: 12px; display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.filter-label { font-size: .8rem; color: #6b7280; font-weight: 600; }
.filter-btn {
    padding: .35rem .8rem; border-radius: 20px;
    border: 2px solid #d1d5db; background: white;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.filter-btn.active { background: #35d8c2; color: white; border-color: #35d8c2; }
.filter-btn:hover { opacity: .85; }

/* ============================================================
   ADMIN PANEL – DESKTOP SIDEBAR LAYOUT
   ============================================================ */

/* ---- Layout ---- */
.admin-layout {
    display: flex; min-height: 100vh; background: #f3f4f6;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 220px; min-width: 220px;
    background: #1e293b; color: #e2e8f0;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    z-index: 200;
}
.admin-sidebar-brand {
    display: flex; align-items: center; gap: .5rem;
    padding: 1.2rem 1rem .8rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-title {
    font-size: 1.2rem; font-weight: 700; color: #35d8c2;
    letter-spacing: .02em;
}
.admin-sidebar-nav {
    flex: 1; display: flex; flex-direction: column;
    padding: .6rem 0;
}
.admin-nav-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1.2rem; font-size: .88rem;
    font-weight: 500; color: #94a3b8;
    background: none; border: none; cursor: pointer;
    transition: all .15s; font-family: inherit;
    text-align: left; white-space: nowrap;
}
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.admin-nav-item.active {
    background: #35d8c2; color: white; font-weight: 600;
    border-radius: 0;
}
.admin-nav-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }

.admin-sidebar-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .6rem .8rem;
}
.admin-nav-logout {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .4rem; font-size: .85rem;
    color: #94a3b8; text-decoration: none;
    transition: color .15s;
}
.admin-nav-logout:hover { color: #e2e8f0; }

.admin-dev-date {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(53,216,194,.15); padding: .3rem .5rem;
    border-radius: 6px; margin-bottom: .3rem;
    font-size: .75rem; color: #35d8c2;
}
.admin-dev-reset {
    background: none; border: none; color: #35d8c2;
    cursor: pointer; font-size: 1rem; padding: 0;
}
.admin-dev-row {
    display: flex; gap: .3rem; margin-bottom: .4rem;
}
.admin-dev-input {
    flex: 1; padding: .25rem .4rem; border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px; background: rgba(255,255,255,.06);
    color: #e2e8f0; font-size: .75rem; font-family: inherit;
}
.admin-dev-btn {
    background: none; border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px; color: #e2e8f0; cursor: pointer;
    padding: .25rem .5rem; font-size: .8rem;
}
.admin-dev-btn:hover { background: rgba(255,255,255,.08); }

/* ---- Main Content ---- */
.admin-main {
    flex: 1; padding: 0;
    overflow-x: auto; min-width: 0;
}

.admin-content-header {
    padding: 1.2rem 1.5rem .6rem;
}
.admin-content-header h1 {
    font-size: 1.3rem; font-weight: 700; color: #1f2937; margin: 0;
}

/* ---- Filter Bar (Uczestnicy) ---- */
.admin-filter-bar {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    position: sticky; top: 0; z-index: 100;
}
.admin-search-wrap {
    display: flex; align-items: center; gap: .3rem;
    background: #f3f4f6; border-radius: 8px;
    padding: .4rem .7rem; min-width: 200px;
}
.admin-search-icon { font-size: .9rem; color: #9ca3af; }
.admin-search {
    border: none; background: transparent; outline: none;
    font-size: .88rem; font-family: inherit; width: 100%;
    color: #374151;
}
.admin-filter-group {
    display: flex; align-items: center; gap: .3rem;
}
.admin-filter-label {
    font-size: .8rem; font-weight: 600; color: #6b7280;
    margin-right: .1rem;
}
.admin-pill {
    padding: .35rem .7rem; border-radius: 6px;
    border: 1.5px solid #d1d5db; background: white;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit; color: #374151;
}
.admin-pill:hover { border-color: #35d8c2; }
.admin-pill.active {
    background: #35d8c2; color: white; border-color: #35d8c2;
}
.admin-settings-btn {
    margin-left: auto; background: none; border: 1px solid #d1d5db;
    border-radius: 8px; padding: .35rem .6rem;
    font-size: 1.1rem; cursor: pointer; color: #6b7280;
    transition: all .15s;
}
.admin-settings-btn:hover { border-color: #35d8c2; color: #35d8c2; }

.admin-col-settings-wrap {
    position: relative; margin-left: auto;
}
.admin-col-dropdown {
    position: absolute; top: 100%; right: 0; z-index: 100;
    background: white; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: .75rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px; margin-top: .4rem;
}
.admin-col-dropdown-title {
    font-size: .78rem; font-weight: 700; color: #6b7280;
    margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .03em;
}
.admin-col-toggle {
    display: flex; align-items: center; gap: .5rem;
    padding: .3rem 0; font-size: .85rem; cursor: pointer;
}
.admin-col-toggle input { accent-color: #35d8c2; }

/* ---- Data Table ---- */
.admin-table-wrap {
    overflow-x: auto; padding: 0 1.5rem;
}
.admin-data-table {
    width: 100%; border-collapse: collapse;
    font-size: .88rem; background: white;
}
.admin-data-table thead { background: #f9fafb; }
.admin-thead-group th {
    padding: .4rem .5rem; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .04em;
    color: #6b7280; font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}
.admin-th-group-label {
    text-align: center;
    border-left: 1px solid #e5e7eb;
}
.admin-data-table th {
    padding: .5rem .5rem; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .03em;
    color: #9ca3af; font-weight: 600;
    text-align: left; white-space: nowrap;
    border-bottom: 2px solid #e5e7eb;
}
.admin-th-check { width: 36px; }
.admin-data-table td {
    padding: .6rem .5rem; border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}
.admin-data-table tr:hover { background: #fafafa; }
.admin-data-table input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: #35d8c2; cursor: pointer;
}

.admin-td-check { width: 36px; vertical-align: middle; }
.admin-td-expiry { min-width: 160px; }
.admin-date-input {
    padding: .3rem .4rem; border: 1.5px solid #e5e7eb;
    border-radius: 6px; font-size: .82rem; font-family: inherit;
    width: 140px; background: white;
}
.admin-date-input:focus { border-color: #35d8c2; outline: none; }
.admin-expiry-hint {
    display: block; font-size: .72rem; color: #9ca3af;
    margin-top: .15rem;
}
.admin-status-badge {
    display: inline-block; padding: .2rem .5rem;
    border-radius: 6px; font-size: .78rem; font-weight: 600;
}
.status-active { background: #d1faf0; color: #047857; }
.status-blocked { background: #fde8e8; color: #e74c3c; }

.admin-td-name { font-weight: 600; white-space: nowrap; }
.admin-td-email { min-width: 200px; }
.admin-td-email span:first-child { display: block; font-size: .85rem; color: #374151; }
.admin-email-status { display: block; font-size: .72rem; font-weight: 600; }
.email-confirmed { color: #35d8c2; }
.email-unconfirmed { color: #f59e0b; }

.admin-td-weight { font-weight: 600; white-space: nowrap; }
.admin-td-icon { text-align: center; }
.admin-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: #35d8c2; color: white; font-size: 1rem;
    border: none; cursor: pointer; text-decoration: none;
    transition: background .15s;
}
.admin-icon-btn:hover { background: #2bb5a0; }
.admin-icon-photo { background: #35d8c2; }

.admin-td-freq { text-align: right; white-space: nowrap; }
.admin-freq-pct { display: block; font-size: .88rem; font-weight: 700; color: #374151; }
.admin-freq-detail { display: block; font-size: .72rem; color: #9ca3af; }

/* ---- Bulk Action Bar ---- */
.admin-bulk-bar {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap; padding: .6rem 1.5rem;
    background: #e6faf7; border-top: 2px solid #35d8c2;
    position: sticky; bottom: 0;
    animation: slideUp .2s ease;
}
.admin-bulk-count { font-size: .85rem; font-weight: 700; color: #35d8c2; margin-right: .3rem; }
.admin-bulk-btn {
    padding: .4rem .8rem; border-radius: 8px;
    border: 1.5px solid #35d8c2; background: white;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit; color: #374151;
}
.admin-bulk-btn:hover { background: #35d8c2; color: white; }
.admin-bulk-danger { border-color: #e74c3c; color: #e74c3c; }
.admin-bulk-danger:hover { background: #e74c3c; color: white; }

/* ---- Toast ---- */
.admin-toast {
    padding: .6rem 1.5rem; background: #d1faf0; color: #047857;
    font-size: .85rem; font-weight: 600;
    border-radius: 8px; margin: .6rem 1.5rem;
}

/* ---- Modal ---- */
.admin-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    z-index: 500;
}
.admin-modal {
    background: white; border-radius: 14px; padding: 1.5rem;
    width: 380px; max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.admin-modal h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: #1f2937; }
.admin-modal-field { margin-bottom: 1rem; }
.admin-modal-field label {
    display: block; font-size: .75rem; font-weight: 600;
    color: #6b7280; margin-bottom: .3rem; text-transform: uppercase;
}
.admin-modal-field input, .admin-modal-field select {
    width: 100%; padding: .5rem .6rem; border: 2px solid #e5e7eb;
    border-radius: 8px; font-size: .9rem; font-family: inherit;
}
.admin-modal-field input:focus, .admin-modal-field select:focus { outline: none; border-color: #35d8c2; }
.admin-modal-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.admin-modal-btn {
    padding: .5rem 1rem; border-radius: 8px; border: 2px solid #e5e7eb;
    background: white; font-size: .85rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .15s;
}
.admin-modal-btn.primary { background: #35d8c2; color: white; border-color: #35d8c2; }
.admin-modal-btn.primary:hover { background: #2bb5a0; }

/* ---- Panel Cards ---- */
.admin-panel-card {
    background: white; border-radius: 12px; padding: 1.2rem;
    margin: 0 1.5rem .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.admin-panel-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .8rem; color: #374151; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.admin-unit-label { font-size: .72rem; color: #9ca3af; font-weight: 400; }

/* ---- Form Elements ---- */
.admin-form-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .6rem; align-items: flex-end; }
.admin-form-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.admin-form-group label { font-size: .75rem; font-weight: 600; color: #6b7280; margin-bottom: .2rem; text-transform: uppercase; }
.admin-form-group input, .admin-form-group select {
    padding: .5rem .6rem; border: 2px solid #e5e7eb; border-radius: 8px;
    font-size: .9rem; font-family: inherit; background: white;
    transition: border-color .15s;
}
.admin-form-group input:focus, .admin-form-group select:focus { outline: none; border-color: #35d8c2; }
.admin-form-action { flex: 0; min-width: auto; }
.admin-form-actions { display: flex; gap: .5rem; margin-top: .6rem; }

/* ---- Buttons ---- */
.admin-btn {
    padding: .5rem 1rem; border-radius: 8px; border: 2px solid #e5e7eb;
    background: white; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all .15s; font-family: inherit;
    white-space: nowrap;
}
.admin-btn:hover { border-color: #35d8c2; }
.admin-btn.primary { background: #35d8c2; color: white; border-color: #35d8c2; }
.admin-btn.primary:hover { background: #2bb5a0; }
.admin-btn.primary:disabled { opacity: .5; cursor: not-allowed; }
.admin-btn.danger { color: #e74c3c; border-color: #f5c6cb; }
.admin-btn.danger:hover { background: #fdf2f2; }
.admin-btn.sm { padding: .3rem .6rem; font-size: .78rem; }

/* ---- Tags ---- */
.admin-tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.admin-tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .6rem; border-radius: 16px;
    border: 1.5px solid #35d8c2; background: #e6faf7;
    font-size: .82rem; font-weight: 600; color: #374151;
}
.admin-tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.admin-tag-x {
    background: none; border: none; font-size: 1rem;
    cursor: pointer; color: #9ca3af; padding: 0;
    line-height: 1; margin-left: .1rem;
}
.admin-tag-x:hover { color: #e74c3c; }

.admin-inline-form {
    display: flex; gap: .4rem; align-items: center;
}
.admin-inline-form input {
    padding: .35rem .5rem; border: 1.5px solid #e5e7eb;
    border-radius: 6px; font-size: .85rem; font-family: inherit;
    width: 140px;
}
.admin-inline-form input:focus { border-color: #35d8c2; outline: none; }

/* ---- Option tags ---- */
.admin-opt-tag {
    display: inline-block; padding: .15rem .45rem;
    border-radius: 8px; font-size: .72rem; font-weight: 600;
    background: #f3f4f6; color: #6b7280; margin-right: .2rem;
}
.admin-opt-tag.ok { background: #d1faf0; color: #047857; }
.admin-td-muted { color: #9ca3af; }

/* ---- Options checkboxes ---- */
.admin-options-label { font-size: .82rem; font-weight: 600; color: #6b7280; margin: .6rem 0 .3rem; }
.admin-options-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .8rem; }
.admin-check {
    display: flex; align-items: center; gap: .35rem;
    font-size: .85rem; cursor: pointer;
}
.admin-check input { accent-color: #35d8c2; }
.admin-check-disabled { opacity: .45; pointer-events: none; }
.admin-mode-active {
    background: #e6faf7; border-radius: 6px; padding: .25rem .6rem;
    border: 1.5px solid #35d8c2;
}
.admin-info-icon {
    display: inline-block; cursor: help; font-size: .8rem; color: #35d8c2;
    margin-left: .25rem; font-style: normal;
}

/* ---- Day Tabs ---- */
.admin-day-tabs {
    display: flex; gap: .3rem; margin-bottom: .8rem;
    padding: 0 1.5rem;
}
.admin-day-tab {
    padding: .4rem .8rem; border-radius: 8px;
    border: 2px solid #e5e7eb; background: white;
    font-size: .78rem; font-weight: 700; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.admin-day-tab.active { background: #35d8c2; color: white; border-color: #35d8c2; }

/* ---- Exercise Cards ---- */
.admin-exercise-card {
    background: white; border-radius: 12px;
    padding: .8rem 1rem; margin: 0 1.5rem .6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border-left: 3px solid #35d8c2;
}
.admin-ex-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .4rem;
}
.admin-ex-title h3 { font-size: .95rem; font-weight: 700; color: #111827; margin: 0; }
.admin-ex-meta { font-size: .78rem; color: #9ca3af; font-weight: 500; }
.admin-ex-actions { display: flex; gap: .3rem; }
.admin-history { opacity: .8; border-left-color: #d1d5db; }

/* ---- Sets Grid ---- */
.admin-sets-grid { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.admin-set-row { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; }
.admin-set-label { font-weight: 700; font-size: .85rem; color: #9ca3af; min-width: 28px; }
.admin-set-x { color: #9ca3af; font-size: .85rem; }
.admin-compact-field { display: flex; flex-direction: column; }
.admin-compact-field label { font-size: .6rem; color: #9ca3af; text-transform: uppercase; }
.admin-compact-field input {
    width: 80px; padding: .3rem .4rem; font-size: .85rem;
    border: 1.5px solid #e5e7eb; border-radius: 6px; font-family: inherit;
}
.admin-compact-field input:focus { border-color: #35d8c2; outline: none; }
.admin-compact-field select {
    width: 130px; padding: .3rem .4rem; font-size: .85rem;
    border: 1.5px solid #e5e7eb; border-radius: 6px; font-family: inherit;
    background: #fff; color: #1f2937; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M3 4.5L6 8l3-3.5H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
    padding-right: 22px;
}
.admin-compact-field select:focus { border-color: #35d8c2; outline: none; }

/* Day picker popup for training tab */
.admin-day-pick-btn {
    cursor: pointer; background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 6px; padding: .35rem .6rem; font-size: .78rem;
    color: #475569; white-space: nowrap; display: flex; align-items: center; gap: .3rem;
}
.admin-day-pick-btn:hover { border-color: #35d8c2; color: #0d9488; }
.admin-day-pick-popup {
    position: absolute; top: 100%; left: 0; z-index: 50;
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 10px; padding: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: flex; flex-wrap: wrap; gap: .3rem;
    min-width: 220px; margin-top: .3rem;
}
.admin-sets-actions {
    display: flex; align-items: center; gap: .5rem;
    margin-top: .3rem; padding-top: .4rem;
    border-top: 1px dashed #e5e7eb;
}
.admin-muted { font-size: .8rem; color: #9ca3af; }

/* ---- Last Log ---- */
.admin-last-log {
    margin-top: .4rem; padding: .4rem .6rem;
    background: #f9fafb; border-radius: 8px;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.admin-last-log.plan { background: #e6faf7; }
.admin-log-label { font-size: .75rem; font-weight: 600; color: #6b7280; white-space: nowrap; }
.admin-log-sets { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-log-badge {
    padding: .15rem .4rem; border-radius: 6px;
    font-size: .72rem; font-weight: 600;
    background: white; border: 1px solid #e5e7eb; color: #374151;
}
.admin-log-badge.plan { background: #d1faf0; border-color: #a7f3d0; color: #047857; }

/* ---- Schedule ---- */
.admin-schedule-day { color: #35d8c2; }
.admin-schedule-entry {
    display: flex; align-items: center; gap: .6rem;
    padding: .4rem 0; border-bottom: 1px solid #f3f4f6;
    font-size: .88rem;
}
.admin-entry-type { font-weight: 600; }

/* ---- Week Nav ---- */
.admin-week-nav {
    display: flex; align-items: center; gap: .8rem;
    padding: .6rem 1.5rem;
}
.admin-week-label { display: flex; flex-direction: column; align-items: center; gap: .1rem; }

/* ---- Progresja sets ---- */
.admin-prog-sets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.admin-prog-set {
    display: flex; align-items: center; gap: .3rem;
    font-size: .88rem;
}
.admin-prog-weight { font-weight: 700; color: #35d8c2; }

/* ---- Mikrocykl ---- */
.admin-mc-list {
    display: flex; flex-wrap: wrap; gap: .6rem;
    padding: 0 1.5rem; margin-bottom: .8rem;
}
.admin-mc-card {
    background: white; border-radius: 12px; padding: .8rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer;
    border: 2px solid transparent; transition: all .15s;
    min-width: 200px; flex: 0 0 auto;
}
.admin-mc-card:hover { border-color: #35d8c2; }
.admin-mc-card.selected { border-color: #35d8c2; background: #e6faf7; }
.admin-mc-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.admin-mc-name { font-weight: 700; font-size: .95rem; }
.admin-mc-active { font-size: .72rem; font-weight: 700; color: #35d8c2; }
.admin-mc-meta { display: flex; gap: .8rem; margin-bottom: .4rem; }
.admin-mc-actions { display: flex; gap: .3rem; }

.admin-mc-details {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    margin-top: .4rem;
}
.admin-mc-summary {
    font-size: .78rem; color: #6b7280; font-weight: 500;
    margin-left: auto;
    background: #f3f4f6; padding: .2rem .5rem; border-radius: 8px;
}

/* ---- Deploy ---- */
.admin-deploy-users {
    display: flex; flex-direction: column; gap: .3rem;
    max-height: 300px; overflow-y: auto;
    padding: .5rem; background: #f9fafb; border-radius: 8px;
}
.admin-deploy-check {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; cursor: pointer;
    padding: .2rem .3rem; border-radius: 6px;
}
.admin-deploy-check:hover { background: #e6faf7; }
.admin-deploy-check input { accent-color: #35d8c2; }

/* ---- Empty State ---- */
.admin-empty {
    text-align: center; padding: 2.5rem 1.5rem; color: #9ca3af;
    font-size: .95rem;
}

/* ---- Prog actions ---- */
.admin-prog-actions { margin: 0 1.5rem; }

@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- UTILITY ---------- */
.text-muted { color: #9ca3af; }
.loading { text-align: center; padding: 2rem; color: #6b7280; }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.login-page {
    min-height: 100dvh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    padding: 1.5rem;
}
.login-card {
    background: white; border-radius: 16px; padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    width: 100%; max-width: 380px;
}
.logo-container { text-align: center; margin-bottom: .8rem; }
.logo-container .crab-logo { width: 140px; height: auto; }
.logo-container.logo-small .crab-logo { width: 80px; }
.logo-container .main-logo { width: 240px; height: auto; max-width: 100%; }
.logo-container.logo-small .main-logo { width: 160px; }
.login-title { text-align: center; font-size: 1.6rem; font-weight: 800; color: #35d8c2; margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.login-form .form-group { margin-bottom: .8rem; }
.login-form .form-group label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.login-form .form-group input {
    width: 100%; padding: .65rem .8rem; border: 2px solid #e5e7eb;
    border-radius: 10px; font-size: .95rem; font-family: inherit;
    transition: border-color .15s;
}
.login-form .form-group input:focus { outline: none; border-color: #35d8c2; box-shadow: 0 0 0 3px rgba(53,216,194,.1); }
.btn-full { width: 100%; padding: .75rem; border-radius: 10px; font-size: 1rem; margin-top: .3rem; }
.login-footer {
    text-align: center; margin-top: 1.2rem;
    padding-top: 1rem; border-top: 1px solid #f3f4f6;
}
.login-footer .footer-text { font-size: .85rem; color: #6b7280; margin-bottom: .5rem; }
.login-footer .btn-register-link {
    display: inline-block; padding: .5rem 1.2rem;
    border: 2px solid #35d8c2; border-radius: 10px;
    color: #35d8c2; font-size: .9rem; font-weight: 700;
    text-decoration: none; transition: all .15s;
}
.login-footer .btn-register-link:hover { background: #35d8c2; color: white; }
.login-footer a { color: #35d8c2; text-decoration: none; font-weight: 600; }
.alert { padding: .6rem .8rem; border-radius: 8px; margin-bottom: .8rem; font-size: .85rem; text-align: center; }
.alert-error { background: #e6faf7; color: #35d8c2; }
.alert-success { background: #f0fdf4; color: #16a34a; }

.auth-page {
    min-height: 100dvh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    padding: 1rem;
}
.auth-card {
    background: white; border-radius: 16px; padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    width: 100%; max-width: 380px;
}
.auth-card .logo { text-align: center; margin-bottom: 1.2rem; }
.auth-card .logo svg { width: 80px; height: 80px; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.auth-card .form-group { margin-bottom: .8rem; }
.auth-card .form-group label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.auth-card .form-group input {
    width: 100%; padding: .6rem .8rem; border: 2px solid #e5e7eb;
    border-radius: 8px; font-size: .9rem; font-family: inherit;
}
.auth-card .form-group input:focus { outline: none; border-color: #35d8c2; }
.auth-card .btn-login, .auth-card .btn-register {
    width: 100%; padding: .7rem; border: none; border-radius: 8px;
    background: #35d8c2; color: white; font-size: 1rem;
    font-weight: 700; cursor: pointer; margin-top: .5rem;
    transition: background .15s; font-family: inherit;
}
.auth-card .btn-login:hover, .auth-card .btn-register:hover { background: #2bb5a0; }
.auth-card .error { background: #e6faf7; color: #35d8c2; padding: .5rem; border-radius: 8px; margin-bottom: .8rem; font-size: .85rem; text-align: center; }
.auth-card .success { background: #f0fdf4; color: #16a34a; padding: .5rem; border-radius: 8px; margin-bottom: .8rem; font-size: .85rem; text-align: center; }
.auth-card .link { text-align: center; margin-top: 1rem; font-size: .85rem; }
.auth-card .link a { color: #35d8c2; text-decoration: none; font-weight: 600; }

/* ============================================================
   HISTORY PAGE (with week navigation)
   ============================================================ */
.week-nav {
    display: flex; align-items: center; justify-content: space-between;
    background: white; border-radius: 12px; padding: .6rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-week-nav {
    padding: .4rem .8rem; border-radius: 8px;
    border: 2px solid #e5e7eb; background: white;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit; color: #374151;
}
.btn-week-nav:hover:not(:disabled) { background: #35d8c2; color: white; border-color: #35d8c2; }
.btn-week-nav:disabled { opacity: .35; cursor: not-allowed; }
.week-nav-label { text-align: center; }
.week-nav-label .week-num { display: block; font-weight: 700; font-size: 1rem; color: #111827; }
.week-nav-label .week-year { display: block; font-size: .75rem; color: #9ca3af; }

.history-week {
    background: white; border-radius: 10px; padding: .8rem 1rem;
    margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.history-week h3 { font-size: .9rem; font-weight: 700; color: #374151; margin-bottom: .4rem; }
.history-exercise { margin-bottom: .4rem; }
.history-exercise .ex-name { font-weight: 600; font-size: .85rem; }
.history-sets { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.history-set {
    background: #f9fafb; padding: .2rem .5rem; border-radius: 6px;
    font-size: .75rem; color: #374151;
}

/* ============================================================
   PROGRESJA TAB (Admin)
   ============================================================ */
.prog-day-card { border-left: 3px solid #35d8c2; }
.prog-exercise-card {
    border-left: 3px solid #35d8c2;
    margin-bottom: .6rem;
}
.prog-exercise-card.prog-history {
    border-left-color: #9ca3af;
    opacity: .85;
}
.prog-day-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem;
}
.prog-day-header h3 { margin-bottom: 0; color: #35d8c2; }
.prog-buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-prog {
    padding: .4rem .8rem; border-radius: 8px;
    border: 2px solid; font-size: .75rem; font-weight: 700;
    cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-prog-normal {
    border-color: #16a34a; color: #16a34a; background: white;
}
.btn-prog-normal:hover { background: #16a34a; color: white; }
.btn-prog-hard {
    border-color: #35d8c2; color: #35d8c2; background: white;
}
.btn-prog-hard:hover { background: #35d8c2; color: white; }

.prog-actions {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    padding: 1rem; text-align: center;
}
.prog-actions .prog-buttons { justify-content: center; }
.prog-hint {
    font-size: .75rem; color: #9ca3af; font-style: italic;
    margin: 0;
}

.btn-current-week {
    background: #35d8c2 !important; color: white !important;
    border-color: #35d8c2 !important;
}
.btn-current-week:hover { background: #2bb5a0 !important; }

.prog-exercise {
    padding: .5rem 0; border-bottom: 1px solid #f3f4f6;
}
.prog-exercise:last-child { border-bottom: none; }
.prog-ex-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .3rem;
}
.prog-ex-name { font-weight: 700; font-size: .9rem; color: #111827; }
.prog-ex-info { font-size: .75rem; color: #6b7280; }
.prog-sets { display: flex; gap: .5rem; flex-wrap: wrap; }
.prog-set {
    display: flex; align-items: center; gap: .3rem;
    background: #f9fafb; padding: .3rem .6rem; border-radius: 8px;
    font-size: .8rem;
}
.prog-weight { font-weight: 700; color: #35d8c2; }
.prog-reps { font-weight: 700; color: #374151; }

/* ============================================================
   WEEK TOGGLE (Home page)
   ============================================================ */
.week-toggle {
    display: flex; gap: .5rem; margin-bottom: .6rem;
}
.week-toggle-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: .15rem; padding: .6rem .4rem; border-radius: 12px;
    border: 2px solid #e5e7eb; background: #f9fafb;
    cursor: pointer; transition: border-color .15s, background .15s;
    font-family: inherit;
}
.week-toggle-btn .wt-label {
    font-size: .85rem; font-weight: 700; color: #374151;
}
.week-toggle-btn.active {
    background: #35d8c2; border-color: #35d8c2;
}
.week-toggle-btn.active .wt-label { color: white; }
.week-toggle-btn:not(.active):hover { border-color: #35d8c2; background: #e6faf7; }

/* ============================================================
   SAVE WORKOUT BAR (Home page)
   ============================================================ */
.save-workout-bar {
    position: fixed; bottom: 5rem; left: 0; right: 0;
    display: flex; justify-content: center;
    z-index: 90; pointer-events: none;
}
.btn-save-workout {
    pointer-events: auto;
    background: #16a34a; color: white;
    border: none; border-radius: 999px;
    padding: .75rem 2rem; font-size: .95rem; font-weight: 700;
    box-shadow: 0 4px 16px rgba(22,163,74,.4);
    cursor: pointer; font-family: inherit;
    transition: background .15s, transform .1s;
}
.btn-save-workout:hover { background: #15803d; transform: scale(1.03); }
.btn-save-workout:active { transform: scale(.98); }

/* ============================================================
   LAST LOG PANEL (AdminPanel – Assign tab)
   ============================================================ */
.last-log-panel {
    margin-top: .6rem; padding: .5rem .7rem;
    background: #f0fdf4; border-radius: 10px;
    border: 1px solid #bbf7d0;
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
}
.last-log-panel.last-log-plan {
    background: #f0f9ff; border-color: #bae6fd;
}
.last-log-label {
    font-size: .75rem; font-weight: 600; color: #166534; white-space: nowrap;
}
.last-log-plan .last-log-label { color: #0369a1; }
.last-log-sets {
    display: flex; flex-wrap: wrap; gap: .3rem;
}
.last-log-badge {
    background: #dcfce7; border: 1px solid #86efac;
    color: #166534; font-size: .72rem; font-weight: 600;
    padding: .2rem .5rem; border-radius: 8px; white-space: nowrap;
}
.last-log-badge.plan-badge {
    background: #e0f2fe; border-color: #7dd3fc; color: #0369a1;
}

/* ============================================================
   DEV DATE BAR (AdminPanel)
   ============================================================ */
.dev-date-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    background: #fefce8; border: 1px solid #fde047;
    border-radius: 10px; padding: .5rem .8rem;
    margin-bottom: .8rem; font-size: .82rem;
}
.dev-date-icon { font-size: 1rem; }
.dev-date-title { font-weight: 600; color: #854d0e; }
.dev-date-input {
    border: 1px solid #fde047; border-radius: 6px;
    padding: .25rem .5rem; font-size: .82rem; background: white;
}
.dev-date-active {
    font-weight: 700; color: #854d0e;
    background: #fef08a; padding: .2rem .6rem;
    border-radius: 6px;
}

/* ============================================================
   GENERIC REUSABLE CLASSES
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600; border: 1px solid #d1d5db; background: white; color: #374151; cursor: pointer; transition: all .15s; }
.btn:hover { background: #f3f4f6; }
.btn-primary { background: #35d8c2; color: white; border-color: #35d8c2; }
.btn-primary:hover { background: #2bb5a0; border-color: #2bb5a0; }
.btn-danger { background: #ef4444; color: white; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: .3rem .6rem; font-size: .78rem; }
.form-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: .25rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: #374151; }
.form-group input, .form-group select, .form-group textarea { border: 1px solid #d1d5db; border-radius: 8px; padding: .45rem .6rem; font-size: .85rem; background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #35d8c2; box-shadow: 0 0 0 3px rgba(53,216,194,.12); }
.form-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.day-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .8rem; }
.day-tab { padding: .4rem .8rem; border-radius: 8px; border: 1px solid #d1d5db; background: white; font-size: .8rem; font-weight: 500; color: #64748b; cursor: pointer; transition: all .15s; }
.day-tab:hover { border-color: #35d8c2; color: #35d8c2; }
.day-tab.active { background: #35d8c2; color: white; border-color: #35d8c2; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: #94a3b8; font-size: .9rem; }
.empty-state span { display: block; font-size: 2rem; margin-bottom: .5rem; }
.type-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.type-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 500; }
.type-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.btn-x { background: none; border: none; cursor: pointer; font-size: .75rem; color: inherit; opacity: .6; padding: 0 0 0 .2rem; }
.btn-x:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .page-content { padding: .6rem; padding-bottom: 5rem; }
    .week-selector { gap: .3rem; }
    .day-circle { width: 46px; height: 46px; }
    .day-circle .day-num { font-size: .9rem; }
    .ex-card { padding: .65rem .7rem .5rem; }
    .ex-card-name { font-size: .95rem; }
    .ex-cell { min-height: 38px; }
    .ex-cell-val { font-size: .85rem; }
    .ex-adj-btn { width: 24px; height: 24px; font-size: .85rem; }
    .form-row { flex-direction: column; }
    .admin-tabs { gap: .2rem; }
    .admin-tabs .tab { padding: .4rem .5rem; font-size: .7rem; }
    .day-tabs { gap: .2rem; }
    .day-tab { padding: .3rem .5rem; font-size: .7rem; }
    .set-admin-row { flex-wrap: wrap; }
    .form-group.compact input { width: 70px; }
    .schedule-entry-row { flex-wrap: wrap; gap: .3rem; }
    .schedule-filter-bar { gap: .3rem; }
    .filter-chip { padding: .3rem .6rem; font-size: .75rem; }
    .login-card { padding: 1.5rem 1.2rem; }
    .prog-day-header { flex-direction: column; align-items: flex-start; }
    .prog-buttons { width: 100%; }
    .prog-buttons .btn-prog { flex: 1; text-align: center; }
    .prog-actions .prog-buttons { width: 100%; }
    .btn-week-nav { padding: .3rem .5rem; font-size: .75rem; }
}

@media (min-width: 640px) {
    .schedule-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; }
}

/* ============================================================
   MEASUREMENTS PAGE
   ============================================================ */

/* Period tabs */
.meas-period-tabs {
    display: flex; gap: 0; border-radius: 10px; overflow: hidden;
    border: 1px solid #d1d5db; background: #f9fafb;
    margin-bottom: .75rem;
}
.meas-period-tab {
    flex: 1; padding: .5rem 0; font-size: .85rem; font-weight: 500;
    color: #6b7280; background: transparent; border: none; cursor: pointer;
    font-family: inherit; transition: all .15s;
}
.meas-period-tab.active {
    background: white; color: #35d8c2; font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: 8px;
}

/* Navigation bar */
.meas-nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.meas-nav-arrow {
    width: 38px; height: 38px; border-radius: 50%;
    background: #35d8c2; color: white; border: none; cursor: pointer;
    font-size: 1.4rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; font-family: inherit;
}
.meas-nav-arrow:hover { background: #2bb5a0; }
.meas-nav-arrow:disabled { background: #d1d5db; cursor: not-allowed; }
.meas-nav-label {
    font-size: .95rem; font-weight: 600; color: #374151;
}

/* Measurement card */
.meas-card {
    background: white; border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    margin-bottom: .75rem; overflow: hidden;
}
.meas-card-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem .4rem;
}
.meas-card-title { font-size: .95rem; font-weight: 700; color: #1f2937; }
.meas-plus-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: transparent; border: 2px solid #d1d5db;
    color: #6b7280; font-size: 1.1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-family: inherit; transition: all .15s;
}
.meas-plus-btn:hover { border-color: #35d8c2; color: #35d8c2; }

/* Chart */
.meas-chart-wrap { padding: .25rem .5rem .1rem; position: relative; }
.meas-dot-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}
.meas-dot-btn:active { background: rgba(53,216,194,.10); }
.meas-svg { width: 100%; height: auto; display: block; }

/* Card footer */
.meas-card-ftr {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem .75rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.meas-ftr-date { font-size: .8rem; color: #6b7280; display: flex; align-items: center; gap: .25rem; flex: 1; }
.meas-ftr-val  { font-size: .9rem; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: .25rem; }
.meas-unit     { font-size: .75rem; font-weight: 400; color: #6b7280; }
.meas-icon-cal, .meas-icon-tag { font-size: .9rem; }
.meas-edit-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 1rem; color: #9ca3af; padding: .2rem .3rem;
    border-radius: 6px; transition: color .15s; margin-left: auto;
}
.meas-edit-btn:hover { color: #35d8c2; }

/* ── Summary ─────────────────────────────────────── */
.meas-summary {
    background: white; border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    padding: 1rem; margin-top: .5rem; margin-bottom: 5rem;
}
.meas-summary-title {
    font-size: 1rem; font-weight: 700; color: #1f2937;
    margin-bottom: .75rem;
}
.meas-sum-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 0; border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.meas-sum-row:last-child { border-bottom: none; }
.meas-sum-label {
    font-size: .8rem; color: #6b7280; min-width: 120px; flex: 1;
}
.meas-sum-vals {
    display: flex; align-items: center; gap: .3rem;
    font-size: .85rem; color: #374151;
}
.meas-sum-first { color: #9ca3af; }
.meas-sum-last  { font-weight: 600; color: #1f2937; }
.meas-sum-arrow { color: #d1d5db; }
.meas-sum-change {
    font-size: .82rem; font-weight: 700; padding: .2rem .5rem;
    border-radius: 999px; white-space: nowrap;
}
.meas-sum-change.down    { background: #dcfce7; color: #15803d; }
.meas-sum-change.up      { background: #d1faf0; color: #35d8c2; }
.meas-sum-change.neutral { background: #f3f4f6; color: #6b7280; }

/* ── Modal ────────────────────────────────────────── */
.meas-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 300; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.meas-modal {
    background: white; border-radius: 16px; padding: 1.5rem;
    width: 100%; max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.meas-modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.meas-modal-type { font-size: .85rem; color: #6b7280; margin-bottom: 1rem; }
.meas-form-group { margin-bottom: .75rem; }
.meas-form-group label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.meas-input {
    width: 100%; padding: .55rem .75rem; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .95rem; font-family: inherit;
    outline: none; transition: border-color .15s;
}
.meas-input:focus { border-color: #35d8c2; box-shadow: 0 0 0 3px rgba(53,216,194,.12); }
.meas-modal-error { font-size: .8rem; color: #35d8c2; margin-bottom: .5rem; }
.meas-modal-btns { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.meas-btn {
    padding: .5rem 1rem; border-radius: 8px; border: 1px solid #d1d5db;
    background: white; color: #374151; font-size: .85rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .15s;
}
.meas-btn:hover { background: #f9fafb; }
.meas-btn-primary { background: #35d8c2; color: white; border-color: #35d8c2; }
.meas-btn-primary:hover { background: #2bb5a0; }
.meas-btn-danger { background: white; color: #e74c3c; border-color: #f5c6cb; margin-right: auto; }
.meas-btn-danger:hover { background: #fdf2f2; }

/* ── Summary View (Podsumowanie tab) ───────────────────────────── */
.meas-summary-view {
    padding-bottom: 5rem;
}
.meas-summary-title {
    font-size: 1.2rem; font-weight: 700; color: #1f2937;
    text-align: center; margin: .5rem 0 .2rem;
}
.meas-summary-subtitle {
    font-size: .85rem; color: #6b7280; text-align: center;
    margin-bottom: 1rem;
}
.meas-sum-card {
    background: white; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: .75rem; overflow: hidden;
}
.meas-sum-card-hdr {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem; background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}
.meas-sum-card-icon { font-size: 1.3rem; }
.meas-sum-card-label { font-size: .95rem; font-weight: 600; color: #1f2937; }
.meas-sum-card-body {
    display: flex; align-items: baseline; justify-content: center;
    gap: .5rem; padding: 1rem;
    font-size: 1.4rem; font-weight: 700; color: #1f2937;
}
.meas-sum-card-body .meas-sum-first { color: #9ca3af; font-weight: 500; }
.meas-sum-card-body .meas-sum-arrow { color: #d1d5db; font-size: 1.1rem; }
.meas-sum-card-body .meas-sum-last { color: #1f2937; }
.meas-sum-card-body .meas-unit { font-size: .9rem; font-weight: 500; color: #6b7280; }
.meas-sum-card-body .meas-sum-single { font-size: 1.3rem; color: #6b7280; font-weight: 600; }
.meas-sum-card-ftr {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 1rem; background: #fafafa;
    border-top: 1px solid #f3f4f6;
}
.meas-sum-badge {
    font-size: .8rem; font-weight: 700; padding: .25rem .6rem;
    border-radius: 999px;
}
.meas-sum-card-ftr.down .meas-sum-badge { background: #dcfce7; color: #15803d; }
.meas-sum-card-ftr.up .meas-sum-badge { background: #d1faf0; color: #35d8c2; }
.meas-sum-card-ftr.neutral .meas-sum-badge { background: #f3f4f6; color: #6b7280; }
.meas-sum-count { font-size: .75rem; color: #9ca3af; }
.meas-empty-summary {
    text-align: center; padding: 3rem 1rem; color: #6b7280;
}
.meas-empty-summary p:first-child { font-size: 1.5rem; margin-bottom: .5rem; }
.meas-empty-summary p:last-child { font-size: .9rem; }

/* ============================================================
   MICROCYCLE (Admin tab)
   ============================================================ */
.mc-list {
    display: flex; flex-direction: column; gap: .6rem;
    margin-bottom: 1.2rem;
}
.mc-card {
    background: white; border-radius: 12px; padding: .8rem 1rem;
    border: 2px solid #e5e7eb; cursor: pointer;
    transition: all .15s;
}
.mc-card:hover { border-color: #35d8c2; }
.mc-card-active { border-color: #35d8c2; background: #e6faf7; }
.mc-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mc-card-name { font-weight: 700; font-size: 1rem; }
.mc-badge-active {
    background: #16a34a; color: white; font-size: .7rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 10px;
}
.mc-card-meta { display: flex; gap: 1rem; margin-top: .3rem; font-size: .8rem; }
.mc-card-actions { display: flex; gap: .4rem; margin-top: .5rem; }

.mc-editor {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}
.mc-ex-card {
    background: white; border-radius: 10px; padding: .7rem .9rem;
    border-left: 3px solid #35d8c2; margin-bottom: .5rem;
}
.mc-ex-header {
    display: flex; align-items: center; justify-content: space-between;
}
.mc-ex-name { font-weight: 700; font-size: .95rem; }
.mc-ex-details {
    display: flex; align-items: center; gap: .5rem; margin-top: .4rem;
    flex-wrap: wrap;
}
.mc-ex-details input { width: 75px; }
.mc-ex-summary {
    font-size: .75rem; color: #6b7280; background: #f3f4f6;
    padding: .2rem .5rem; border-radius: 6px; white-space: nowrap;
}

.mc-deploy-section {
    margin-top: 1.5rem; padding: 1rem; background: #e6faf7;
    border-radius: 12px; border: 1px solid #a7f3d0;
}
.mc-deploy-hint { font-size: .85rem; color: #6b7280; margin-bottom: .8rem; }
.mc-deploy-users {
    display: flex; flex-direction: column; gap: .3rem;
    margin-bottom: 1rem;
}
.mc-deploy-check-all { padding-bottom: .4rem; border-bottom: 1px solid #a7f3d0; margin-bottom: .3rem; }
.mc-deploy-user { display: flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
.mc-deploy-user input { accent-color: #35d8c2; }
.mc-deploy-check-all input { accent-color: #35d8c2; }
.btn-deploy {
    width: 100%; padding: .7rem; font-size: .95rem; font-weight: 700;
    border-radius: 10px;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.acct-page { padding-bottom: 6rem !important; }

.acct-avatar {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.2rem 0 .6rem;
}
.acct-avatar-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #e6faf7, #d1faf0);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: .5rem;
    box-shadow: 0 2px 12px rgba(53,216,194,.15);
}
.acct-name {
    font-size: 1.15rem; font-weight: 700; color: #111827;
}
.acct-email {
    font-size: .82rem; color: #9ca3af; margin-top: .1rem;
}

/* Collapsible section */
.acct-section {
    background: white; border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: .6rem; overflow: hidden;
}
.acct-section-hdr {
    width: 100%; display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1rem; background: none; border: none;
    cursor: pointer; font-family: inherit; transition: background .12s;
    text-align: left;
}
.acct-section-hdr:hover { background: #fafafa; }
.acct-section-hdr:active { background: #f3f4f6; }
.acct-section-icon { font-size: 1.2rem; flex-shrink: 0; }
.acct-section-title { font-size: .95rem; font-weight: 600; color: #1f2937; flex: 1; }
.acct-chevron {
    font-size: 1.3rem; font-weight: 300; color: #9ca3af;
    transition: transform .2s; transform: rotate(0deg);
}
.acct-chevron.open { transform: rotate(90deg); }

.acct-section-body {
    padding: 0 1rem 1rem;
    animation: fadeIn .2s ease;
}

/* Form fields */
.acct-field { margin-bottom: .7rem; }
.acct-field label {
    display: block; font-size: .75rem; font-weight: 600;
    color: #6b7280; text-transform: uppercase; margin-bottom: .25rem;
}
.acct-field input {
    width: 100%; padding: .55rem .75rem;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: .92rem; font-family: inherit; background: #fafafa;
    transition: border-color .15s, background .15s;
}
.acct-field input:focus {
    outline: none; border-color: #35d8c2; background: white;
    box-shadow: 0 0 0 3px rgba(53,216,194,.08);
}

/* Gender selector */
.acct-gender-row { display: flex; gap: .5rem; }
.acct-gender-btn {
    flex: 1; padding: .55rem .5rem; border-radius: 10px;
    border: 1.5px solid #e5e7eb; background: #fafafa;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all .15s; color: #374151;
}
.acct-gender-btn.active {
    border-color: #35d8c2; background: #e6faf7; color: #35d8c2;
}
.acct-gender-btn:hover:not(.active) { border-color: #d1d5db; background: #f3f4f6; }

/* Save button */
.acct-save-btn { margin-top: .5rem; border-radius: 10px !important; }

/* Toast message */
.acct-toast {
    font-size: .82rem; font-weight: 600; text-align: center;
    padding: .4rem .6rem; border-radius: 8px; margin-bottom: .5rem;
}
.acct-toast.ok { background: #f0fdf4; color: #16a34a; }
.acct-toast.err { background: #e6faf7; color: #35d8c2; }

/* Toggle rows */
.acct-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 0; border-bottom: 1px solid #f3f4f6;
    font-size: .88rem; color: #374151;
}
.acct-toggle-row:last-of-type { border-bottom: none; }

/* Info rows */
.acct-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .45rem 0; border-bottom: 1px solid #f3f4f6;
    font-size: .88rem; color: #374151;
}
.acct-info-row:last-child { border-bottom: none; }

/* Terms */
.acct-terms p { font-size: .88rem; color: #374151; line-height: 1.5; }

/* Logout button */
.acct-logout-btn {
    display: flex; align-items: center; justify-content: center;
    gap: .4rem; width: 100%; padding: .8rem;
    background: white; border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    color: #35d8c2; font-size: .95rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
    margin-bottom: 1rem;
}
.acct-logout-btn:hover { background: #e6faf7; }

/* =====================================================
   ADMIN PANEL – HORIZONTAL TABS
   ===================================================== */

.admin-tabs {
    display: flex; gap: .3rem; flex-wrap: wrap;
    background: white; border-radius: 14px;
    padding: .4rem; margin-bottom: .8rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-tabs .tab {
    flex: 1; min-width: 100px;
    padding: .5rem .6rem; border-radius: 10px;
    background: transparent; border: none;
    font-size: .82rem; font-weight: 600;
    color: #6b7280; cursor: pointer;
    transition: all .15s; text-align: center;
    white-space: nowrap;
}
.admin-tabs .tab:hover { background: #e6faf7; color: #35d8c2; }
.admin-tabs .tab.active {
    background: #35d8c2; color: white;
    box-shadow: 0 2px 8px rgba(53,216,194,.25);
}

/* =====================================================
   FILTER CHIPS
   ===================================================== */

.filter-chip {
    padding: .25rem .7rem; border-radius: 20px;
    border: 1.5px solid #e5e7eb; background: white;
    font-size: .78rem; font-weight: 500; color: #6b7280;
    cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: #35d8c2; color: #35d8c2; }
.filter-chip.active {
    background: #35d8c2; color: white;
    border-color: #35d8c2;
}

/* =====================================================
   BULK ACTION BAR
   ===================================================== */

.bulk-action-bar {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap; padding: .6rem .8rem;
    background: #e6faf7; border: 1.5px solid #35d8c2;
    border-radius: 12px; margin-top: .6rem;
    animation: slideUp .2s ease;
}
.bulk-count {
    font-size: .85rem; font-weight: 700; color: #35d8c2;
    margin-right: .3rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.table-responsive {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* =====================================================
   ADMIN TABLE
   ===================================================== */

.admin-table {
    width: 100%; border-collapse: collapse;
    background: white; border-radius: 12px;
    overflow: hidden; font-size: .85rem;
}
.admin-table th {
    background: #f3f4f6; padding: .5rem .6rem;
    text-align: left; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .03em;
    color: #6b7280; font-weight: 600;
    white-space: nowrap;
}
.admin-table td {
    padding: .5rem .6rem; border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}
.admin-table tr:hover { background: #f9fafb; }
.admin-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #35d8c2; cursor: pointer; }

/* =====================================================
   BADGES (status/option pills)
   ===================================================== */

.badge {
    display: inline-block; padding: .15rem .5rem;
    border-radius: 10px; font-size: .72rem; font-weight: 600;
    background: #f3f4f6; color: #6b7280;
}
.badge-ok { background: #d1faf0; color: #047857; }
.badge-no { background: #fde8e8; color: #e74c3c; }

/* =====================================================
   TOGGLE SWITCH (access on/off)
   ===================================================== */

.toggle { position: relative; display: inline-block; width: 38px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d1d5db; border-radius: 20px;
    transition: .2s;
}
.toggle-slider::before {
    content: ""; position: absolute;
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background: white; border-radius: 50%;
    transition: .2s;
}
.toggle input:checked + .toggle-slider { background: #35d8c2; }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* =====================================================
   MC EXERCISE CARD (microcycle editor)
   ===================================================== */

.mc-ex-card {
    background: white; border-radius: 12px;
    padding: .6rem .8rem; margin-bottom: .5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border-left: 3px solid #35d8c2;
}
.mc-ex-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: .4rem;
}
.mc-ex-name { font-weight: 700; font-size: .92rem; color: #111827; }
.mc-ex-details {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap;
}
.mc-ex-summary {
    font-size: .78rem; color: #6b7280; font-weight: 500;
    margin-left: auto;
    background: #f3f4f6; padding: .2rem .5rem; border-radius: 8px;
}

/* ==================== TRENINGI TAB LAYOUT ==================== */

.admin-training-layout {
    display: flex;
    gap: 1.2rem;
    min-height: 500px;
}

.admin-training-users {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    align-self: flex-start;
    position: sticky;
    top: 1rem;
}

.admin-input-sm {
    width: 100%;
    padding: .4rem .6rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .82rem;
}

.admin-user-list {
    max-height: 480px;
    overflow-y: auto;
}

.admin-user-item {
    padding: .5rem .65rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    transition: background .15s;
    gap: .3rem;
}
.admin-user-item:hover { background: #f1f5f9; }
.admin-user-item.selected { background: #e6faf7; border-left: 3px solid #35d8c2; font-weight: 600; }
.admin-user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-training-content {
    flex: 1;
    min-width: 0;
}

.admin-training-weeks {
    display: flex;
    gap: 1rem;
}
.admin-training-weeks:not(.two-weeks) {
    max-width: 700px;
}

.admin-training-week {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    min-width: 0;
}
.admin-training-week.next {
    border: 2px dashed #35d8c2;
}

.admin-week-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}
.admin-week-header h3 { margin: 0; font-size: .95rem; }

.admin-draft-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.admin-published-badge {
    background: #35d8c2;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.admin-exercise-card.compact {
    padding: .7rem .9rem;
    margin-bottom: .5rem;
}

/* Training sets display */
.admin-tr-sets { margin-top: .4rem; }
.admin-tr-row {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-bottom: .25rem;
}
.admin-tr-label {
    font-size: .75rem;
    color: #64748b;
    width: 72px;
    flex-shrink: 0;
    font-weight: 500;
}
.admin-tr-unit {
    font-size: .65rem;
    color: #94a3b8;
    font-weight: 500;
    align-self: center;
    margin-left: 2px;
    flex-shrink: 0;
}
.admin-sync-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    user-select: none;
    white-space: nowrap;
}
.admin-sync-toggle input[type="checkbox"] {
    margin: 0;
    accent-color: #6366f1;
}
.admin-sync-toggle:has(input:checked) {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}
.admin-tr-cell {
    background: #f1f5f9;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    min-width: 32px;
}
.admin-tr-cell.ok { background: #e6faf7; color: #0d9488; }
.admin-tr-cell.up { background: #dcfce7; color: #16a34a; }
.admin-tr-cell.down { background: #fee2e2; color: #dc2626; }
.admin-tr-cell.plan { background: #f1f5f9; color: #475569; }

.admin-tr-weight {
    margin-left: .35rem;
    font-size: .78rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* Top sticky action bar */
.admin-training-actions-top {
    background: white;
    border: 1px solid #e2e8f0;
    padding: .75rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Bottom action bar (legacy) */
.admin-training-actions {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: .75rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.06);
    margin-top: 1rem;
}
.admin-training-selected {
    font-size: .85rem;
    color: #475569;
}
.admin-training-buttons {
    display: flex;
    gap: .5rem;
}

/* Modal */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.admin-modal {
    background: white;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    min-width: 360px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.admin-modal h3 {
    margin: 0 0 .5rem 0;
    font-size: 1.05rem;
}

/* Tag warn */
.admin-opt-tag.warn {
    background: #fef3c7;
    color: #92400e;
}

/* Week navigation (Home.razor) */
.week-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: .8rem;
}
.week-nav-btn {
    flex: 1;
    padding: .55rem .8rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
}
.week-nav-btn.active {
    border-color: #35d8c2;
    background: #e6faf7;
    color: #0d9488;
}
.week-nav-btn:hover:not(.active) {
    border-color: #94a3b8;
}

/* Treningi tab filters */
.admin-tr-filters {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .5rem;
}
.admin-tr-filters select {
    font-size: .75rem;
    padding: .3rem .4rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.admin-tr-select-actions {
    display: flex;
    gap: .3rem;
    margin-top: .4rem;
}
.admin-btn-xs {
    font-size: .7rem;
    padding: .2rem .5rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
}
.admin-btn-xs:hover {
    background: #e6faf7;
    border-color: #35d8c2;
}
.admin-btn-xs.active {
    background: #35d8c2;
    color: #fff;
    border-color: #35d8c2;
}
.admin-user-item label, label.admin-user-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}
.admin-user-item input[type="checkbox"] {
    accent-color: #35d8c2;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.admin-mode-tag.online {
    font-size: .7rem;
    opacity: .7;
}
/* Inline edit inputs for next week plan */
.admin-tr-edit-input {
    width: 52px;
    min-width: 52px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: .2rem .1rem;
    font-size: .8rem;
    font-weight: 600;
    background: #f0fdfa;
    transition: border-color .15s;
    box-sizing: border-box;
}
.admin-tr-edit-input:focus {
    outline: none;
    border-color: #35d8c2;
    box-shadow: 0 0 0 2px rgba(53, 216, 194, .2);
}
.admin-tr-edit-input.weight {
    width: 52px;
    min-width: 52px;
}
.admin-tr-weight-edit {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .8rem;
    color: #64748b;
    margin-left: .3rem;
}
.admin-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
}
.admin-btn.danger:hover {
    background: #dc2626;
}
/* Admin weight cells */
.admin-tr-cell.weight {
    font-size: .72rem;
    color: #64748b;
    border-color: #e2e8f0;
}
.admin-tr-cell.weight.ok {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.admin-tr-cell.weight.up {
    background: #f0fdf4;
    border-color: #4ade80;
    color: #166534;
}
.admin-tr-cell.weight.down {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.admin-tr-cell.plan.weight {
    background: #f1f5f9;
    color: #64748b;
    font-size: .72rem;
}
/* Exercise swap row */
.admin-tr-swap-row {
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ========== Grafik (Schedule) ========== */
.admin-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.admin-schedule-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .8rem;
    background: #1e293b;
    border-radius: 8px;
}
.admin-schedule-day {
    font-weight: 700;
    color: #35d8c2;
    min-width: 40px;
    font-size: .9rem;
}
.admin-schedule-time {
    color: #e2e8f0;
    font-weight: 600;
    font-size: .9rem;
    min-width: 80px;
}

/* ========== User Grafik page (light theme) ========== */
.grafik-header { text-align: center; margin-bottom: 1.5rem; }
.grafik-header h1 { font-size: 1.5rem; color: #1f2937; margin-bottom: .3rem; }
.grafik-subtitle { color: #6b7280; font-size: .9rem; }

.grafik-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .8rem;
}

.grafik-day-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    transition: border-color .2s, transform .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.grafik-day-card:hover { transform: translateY(-2px); border-color: #35d8c2; box-shadow: 0 4px 12px rgba(53,216,194,.12); }
.grafik-today { border-color: #35d8c2 !important; box-shadow: 0 0 16px rgba(53,216,194,.15); }
.grafik-rest { opacity: .55; }

.grafik-day-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e5e7eb;
}
.grafik-day-name { font-weight: 600; color: #1f2937; font-size: .95rem; flex: 1; }
.grafik-day-abbr { display: none; }
.grafik-today-badge {
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    background: #35d8c2;
    padding: .15rem .5rem;
    border-radius: 999px;
    letter-spacing: .05em;
}

.grafik-day-body { min-height: 50px; }

.grafik-times { display: flex; flex-direction: column; gap: .4rem; }
.grafik-time-chip {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(53,216,194,.08);
    color: #0d9488;
    padding: .4rem .7rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    border: 1px solid rgba(53,216,194,.2);
}
.grafik-clock-icon { font-size: .85rem; }

.grafik-rest-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .5rem 0;
}
.grafik-rest-icon { font-size: 1.4rem; }
.grafik-rest-text { color: #9ca3af; font-size: .85rem; }

@media (max-width: 600px) {
    .grafik-week-grid { grid-template-columns: 1fr 1fr; }
    .grafik-day-name { display: none; }
    .grafik-day-abbr { display: inline; font-weight: 600; color: #1f2937; font-size: .9rem; }
}

/* ========== Load Position Reorder/Edit ========== */
.admin-pos-list { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .6rem; }
.admin-pos-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: .3rem .5rem;
    transition: border-color .15s, box-shadow .15s, opacity .15s;
    cursor: grab;
}
.admin-pos-item:hover { border-color: #35d8c2; box-shadow: 0 1px 4px rgba(53,216,194,.12); }
.admin-pos-item:active { cursor: grabbing; }
.admin-pos-dragging { opacity: .4; }
.admin-pos-drop-target { border-color: #35d8c2; box-shadow: 0 0 0 2px rgba(53,216,194,.25); background: #ccfbf1; }
.admin-pos-handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 0 .15rem;
    user-select: none;
    line-height: 1;
    letter-spacing: -1px;
}
.admin-pos-handle:hover { color: #35d8c2; }
.admin-pos-value {
    flex: 1;
    color: #1f2937;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    padding: .15rem .3rem;
    border-radius: 4px;
}
.admin-pos-value:hover { background: rgba(53,216,194,.12); }
.admin-pos-edit-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #35d8c2;
    color: #1f2937;
    border-radius: 4px;
    padding: .2rem .4rem;
    font-size: .85rem;
    outline: none;
}
.admin-pos-unit { color: #64748b; font-size: .8rem; }
.admin-pos-del {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: .75rem; padding: .1rem .2rem;
}
.admin-pos-del:hover { color: #ef4444; }

/* ========== Attendance Calendar Modal ========== */
.att-cal-header {
    display: flex; align-items: center; justify-content: center;
    gap: .8rem; margin-bottom: .8rem;
}
.att-cal-header button {
    background: #1e293b; border: 1px solid #334155; color: #94a3b8;
    border-radius: 6px; padding: .3rem .7rem; cursor: pointer; font-size: .85rem;
}
.att-cal-header button:hover { border-color: #35d8c2; color: #35d8c2; }
.att-cal-header .att-cal-title {
    font-size: 1rem; font-weight: 600; color: #e2e8f0;
    min-width: 180px; text-align: center;
}
.att-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.att-cal-dow {
    text-align: center; font-size: .7rem; font-weight: 600;
    color: #64748b; padding: .2rem 0; text-transform: uppercase;
}
.att-cal-day {
    text-align: center;
    padding: .35rem .1rem;
    border-radius: 6px;
    font-size: .8rem;
    color: #64748b;
    min-height: 32px;
    display: flex; align-items: center; justify-content: center;
}
/* Attended (green) - user trained on this assigned day */
.att-cal-day.att-attended {
    background: rgba(76,175,80,.15);
    color: #4caf50;
    font-weight: 700;
    border: 1px solid rgba(76,175,80,.4);
}
/* Missed (red) - assigned day passed without training */
.att-cal-day.att-missed {
    background: rgba(229,57,53,.15);
    color: #e53935;
    font-weight: 700;
    border: 1px solid rgba(229,57,53,.4);
}
/* Pending (turquoise) - assigned day today or in future */
.att-cal-day.att-pending {
    background: rgba(0,188,212,.15);
    color: #00bcd4;
    font-weight: 700;
    border: 1px solid rgba(0,188,212,.4);
}
.att-cal-day.is-today {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
}
.att-cal-day.empty { visibility: hidden; }
.att-cal-stats {
    margin-top: .8rem; text-align: center;
    color: #94a3b8; font-size: .85rem;
}
.att-cal-stats strong { color: #35d8c2; }

/* ========== Frekwencja (Tab 8) ========== */
.freq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin-bottom: 1.2rem;
}
.freq-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.freq-card-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #35d8c2;
    line-height: 1.2;
}
.freq-card-label {
    font-size: .8rem;
    color: #64748b;
    margin-top: .3rem;
}
.freq-bar-chart {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .4rem 0;
}
.freq-bar-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.freq-bar-label {
    width: 100px;
    font-size: .85rem;
    font-weight: 500;
    color: #374151;
    text-align: right;
    flex-shrink: 0;
}
.freq-bar-track {
    flex: 1;
    height: 22px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.freq-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #35d8c2, #2dd4bf);
    border-radius: 6px;
    min-width: 4px;
    transition: width .3s ease;
}
.freq-bar-count {
    width: 40px;
    font-size: .85rem;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}
@media (max-width: 600px) {
    .freq-cards { grid-template-columns: 1fr 1fr; }
    .freq-bar-label { width: 70px; font-size: .78rem; }
}

/* ============================================================
   TRAINING NOTES (user view)
   ============================================================ */
.training-notes-wrap {
    margin-top: 1rem;
    padding: .8rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
.training-notes-label {
    font-weight: 600;
    font-size: .95rem;
    color: #1f2937;
    margin-bottom: .5rem;
    display: block;
    width: 100%;
}
.training-notes-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: .6rem .7rem;
    font-size: .92rem;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    color: #1f2937;
    background: #fafafa;
    transition: border-color .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.training-notes-input:focus {
    outline: none;
    border-color: #35d8c2;
    background: #fff;
}
.training-notes-saved {
    display: inline-block;
    margin-top: .3rem;
    font-size: .8rem;
    color: #22c55e;
    font-weight: 500;
}

/* ============================================================
   ADMIN NOTES (admin view — read-only)
   ============================================================ */
.admin-notes-section {
    margin-top: .8rem;
    padding: .7rem .8rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}
.admin-notes-label {
    font-weight: 600;
    font-size: .85rem;
    color: #92400e;
    margin-bottom: .3rem;
}
.admin-notes-content {
    font-size: .88rem;
    color: #78350f;
    line-height: 1.4;
    white-space: pre-wrap;
}
