/*
 * Minimal production fallback CSS.
 *
 * Used when Vite build output (public/build/manifest.json) is missing.
 * Contains ONLY our custom dashboard/auth styles (no Tailwind utilities).
 */

/* ------------------------------------------------------------
   Dashboard: Professional layout with left sidebar
   ------------------------------------------------------------ */

.dash-shell {
    min-height: 100vh;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(900px 600px at 15% 15%, rgba(245, 158, 11, 0.16), transparent 60%),
        radial-gradient(900px 600px at 95% 25%, rgba(234, 88, 12, 0.14), transparent 55%),
        radial-gradient(800px 500px at 40% 110%, rgba(251, 191, 36, 0.10), transparent 55%),
        linear-gradient(135deg, #070a10 0%, #0b1020 45%, #070a10 100%);
}

.dash-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.dash-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.dash-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.dash-mobilebar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    margin-bottom: 16px;
}

.dash-hamburger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.25);
    color: rgba(255, 255, 255, 0.90);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.dash-hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dash-mobilebar-title {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    flex: 1;
    min-width: 0;
}

.dash-mobilebar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.dash-brand-link {
    display: block;
    max-width: 180px;
    transition: transform 140ms ease;
}

.dash-brand-link:hover {
    transform: translateY(-1px);
}

.dash-brand-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.dash-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 60%, #fb923c 100%);
    color: #111827;
    box-shadow:
        0 10px 24px rgba(245, 158, 11, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.dash-brand-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.dash-brand-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
}

.dash-nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.dash-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.dash-nav a.is-active {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
    color: rgba(255, 255, 255, 0.95);
}

.dash-nav-ico {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.65);
}

.dash-nav a.is-active .dash-nav-ico {
    color: rgba(245, 158, 11, 0.9);
}

.dash-nav a.dash-subitem {
    margin-left: 26px;
}

.dash-accordion {
    display: grid;
    gap: 6px;
}

.dash-accordion__summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.dash-accordion__summary::-webkit-details-marker {
    display: none;
}

.dash-accordion__summary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.dash-accordion__summary.is-active {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
    color: rgba(255, 255, 255, 0.95);
}

.dash-accordion__left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dash-accordion__chev {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 140ms ease;
}

.dash-accordion[open] .dash-accordion__chev {
    transform: rotate(180deg);
}

.dash-accordion__panel {
    display: grid;
    gap: 6px;
}

.dash-sidebar-footer {
    margin-top: auto;
    padding: 14px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    display: grid;
    gap: 10px;
}

.dash-user {
    display: grid;
    gap: 2px;
}

.dash-user strong {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 600;
}

.dash-logout {
    justify-self: start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.84);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}

.dash-logout:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
}

.dash-main {
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.dash-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
}

.dash-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dash-h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dash-sub {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.dash-card {
    grid-column: span 4;
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(14px);
}

.dash-card-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dash-card-value {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dash-card-foot {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.dash-card-wide {
    grid-column: span 8;
}

.dash-card-full {
    grid-column: span 12;
}

.dash-table-wrap {
    margin-top: 10px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* ------------------------------------------------------------
   Schedule (Ramówka) table: fixed layout + aligned actions
   (fallback CSS - when Vite build is not present)
   ------------------------------------------------------------ */

.dash-table.dash-table--schedule {
    table-layout: fixed;
}

/* kolumny: Audycja | Prezenter | Godzina | Opcje */
.dash-table.dash-table--schedule th:nth-child(1),
.dash-table.dash-table--schedule td:nth-child(1) {
    width: 34%;
}

.dash-table.dash-table--schedule th:nth-child(2),
.dash-table.dash-table--schedule td:nth-child(2) {
    width: 26%;
}

.dash-table.dash-table--schedule th:nth-child(3),
.dash-table.dash-table--schedule td:nth-child(3) {
    width: 20%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dash-table.dash-table--schedule th:nth-child(4),
.dash-table.dash-table--schedule td:nth-child(4) {
    width: 160px;
    white-space: nowrap;
    text-align: right;
}

/* dopnij wyrównanie przycisków w komórce opcji */
.dash-table.dash-table--schedule td:nth-child(4) .greet-actions {
    display: inline-flex;
    width: 100%;
    justify-content: flex-end;
}

/* przypadek gdy użytkownik nie ma uprawnień i pokazujemy tylko "—" */
.dash-table.dash-table--schedule td:nth-child(4) > span {
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
}

/* małe ekrany / dużo kolumn: pozwól przewijać w poziomie */
.dash-table-wrap {
    overflow-x: auto;
}

/* ------------------------------------------------------------
   Greetings console: table layout (message + actions)
   ------------------------------------------------------------ */

.greet-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.greet-controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.greet-topbar-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.greet-toggle-form {
    display: inline-flex;
    margin: 0;
}

/* ------------------------------------------------------------
   Dashboard: Switch (slider) – używany do włączania formularza
   ------------------------------------------------------------ */

.dash-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    user-select: none;
}

.dash-switch__text {
    white-space: nowrap;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.dash-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.dash-switch__track {
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10) inset;
    transition: background 140ms ease;
}

.dash-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 140ms ease;
}

.dash-switch__input:checked + .dash-switch__track {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #fb923c 100%);
}

.dash-switch__input:checked + .dash-switch__track .dash-switch__thumb {
    transform: translateX(20px);
}

.dash-switch__track:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.9);
    outline-offset: 3px;
}

.greet-refresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    user-select: none;
}

.greet-refresh-pill.is-ok {
    border-color: rgba(34, 197, 94, 0.40);
    background: rgba(34, 197, 94, 0.10);
}

.greet-refresh-pill.is-error {
    border-color: rgba(244, 63, 94, 0.40);
    background: rgba(244, 63, 94, 0.08);
}

.greet-refresh-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.greet-refresh-text {
    white-space: nowrap;
}

.dash-table.dash-table--greetings {
    table-layout: fixed;
}

/* Szerokości kolumn: Dzień | Treść | Lokalizacja | Akcja */
.dash-table.dash-table--greetings th.greet-th-day,
.dash-table.dash-table--greetings td.greet-td-day {
    width: 110px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.70);
    font-variant-numeric: tabular-nums;
}

.dash-table.dash-table--greetings th.greet-th-nick,
.dash-table.dash-table--greetings td.greet-td-nick {
    width: 160px;
}

.dash-table.dash-table--greetings th.greet-th-location,
.dash-table.dash-table--greetings td.greet-td-location {
    width: 240px;
}

.dash-table.dash-table--greetings th.greet-th-actions,
.dash-table.dash-table--greetings td.greet-td-actions {
    width: 110px;
    white-space: nowrap;
}

.dash-table.dash-table--greetings td.greet-td-message {
    white-space: normal;
}

.dash-table.dash-table--greetings td.greet-td-actions {
    vertical-align: top;
}

.greet-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

/* <form> jest blokowe domyślnie, więc trzymamy przyciski w linii */
.greet-actions form {
    display: inline-flex;
    margin: 0;
}

.greet-message {
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.86);
}

/* Godzina pod datą (konsola pozdrowień) */
.greet-time {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #f59e0b; /* pomarańczowy */
}

@supports (-webkit-background-clip: text) {
    .greet-time {
        background: linear-gradient(135deg, #f59e0b 0%, #ea580c 60%, #fb923c 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.greet-ip {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.greet-sign {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.greet-sign::before {
    content: "— ";
    opacity: 0.75;
}

/* Nick w pomarańczowym stylu panelu */
.greet-nick {
    font-weight: 800;
    color: #f59e0b; /* fallback */
}

/* Gradient jak w brandingu panelu (spójny z .dash-logo) */
@supports (-webkit-background-clip: text) {
    .greet-nick {
        background: linear-gradient(135deg, #f59e0b 0%, #ea580c 60%, #fb923c 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* Ikonowe akcje */
.greet-icon-btn {
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.greet-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.greet-meta {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.70);
}

.greet-meta__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.greet-meta__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.52);
}

.greet-meta__value {
    color: rgba(255, 255, 255, 0.80);
    text-align: right;
    word-break: break-word;
}

@media (max-width: 620px) {
    .dash-table.dash-table--greetings th.greet-th-location,
    .dash-table.dash-table--greetings td.greet-td-location {
        width: 180px;
    }
}

.dash-table th,
.dash-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
    transition: background-color 0.2s ease;
}

.dash-table tr.is-selected {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

.dash-table tr.is-selected td {
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

/* Table row hover effect */
.dash-table tbody tr:hover td {
    background-color: rgba(245, 158, 11, 0.14);
}

.bulk-actions-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bulk-actions-bar.is-visible {
    transform: translateX(-50%) translateY(0);
}

.bulk-actions-info {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-table th {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------------------------------------
   Recruitment: pomarańczowe linki (profil/próbka/email)
   ------------------------------------------------------------ */

/* W tabeli i w widokach szczegółów */
.dash-table a.recruit-link,
.recruit-link {
    color: #f59e0b;
    text-decoration: none;
}

.dash-table a.recruit-link:hover,
.recruit-link:hover {
    color: #fb923c;
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Dashboard: Small action buttons (greetings console)
   ------------------------------------------------------------ */

.dash-pill.is-danger {
    border-color: rgba(244, 63, 94, 0.40);
    background: rgba(244, 63, 94, 0.12);
}

.dash-pill.is-danger:hover {
    border-color: rgba(244, 63, 94, 0.55);
}

.dash-pill.is-ok {
    border-color: rgba(34, 197, 94, 0.40);
    background: rgba(34, 197, 94, 0.10);
}

.dash-pill.is-ok:hover {
    border-color: rgba(34, 197, 94, 0.55);
}

.dash-pill.is-warn {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
}

.dash-actions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.dash-action-link {
    justify-content: center;
    padding: 10px 12px;
}

.dash-hint {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Dashboard: Forms (Settings etc.)
   ------------------------------------------------------------ */

.dash-form {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.dash-field {
    display: grid;
    gap: 6px;
}

.dash-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.70);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dash-help {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

.dash-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(2, 6, 23, 0.55);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

/* Small input loading state (used by YouTube autofill) */
.dash-input.is-loading,
.chart-input.is-loading {
    background-image: linear-gradient(90deg, rgba(245, 158, 11, 0.0), rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.0));
    background-size: 200% 100%;
    animation: dashInputLoading 1.2s ease-in-out infinite;
}

@keyframes dashInputLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dash-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.dash-input:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.15),
        0 10px 26px rgba(0, 0, 0, 0.35);
}

.dash-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.dash-button {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #fb923c 100%);
    color: #111827;
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 0 16px;
    cursor: pointer;
    box-shadow:
        0 16px 34px rgba(245, 158, 11, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
    transition: transform 120ms ease, filter 120ms ease;
}

.dash-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.05);
}

.dash-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.panel-alert {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    margin-bottom: 12px;
}

.panel-alert--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.10);
}

.panel-alert--error {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.10);
}

@media (max-width: 1400px) {
    /* Optimization for 1366x768 laptop screens */
    /* Sidebar remains at default 280px width */

    .dash-card {
        padding: 12px;
    }

    .dash-card-value {
        font-size: 22px;
    }

    /* Fix greetings table layout on 1366px screens */
    .dash-table.dash-table--greetings th.greet-th-location,
    .dash-table.dash-table--greetings td.greet-td-location {
        width: 180px;
    }

    .dash-table.dash-table--greetings th.greet-th-nick,
    .dash-table.dash-table--greetings td.greet-td-nick {
        width: 140px;
    }

    .dash-table.dash-table--greetings th.greet-th-day,
    .dash-table.dash-table--greetings td.greet-td-day {
        width: 90px;
    }

    .dash-table.dash-table--greetings th.greet-th-message,
    .dash-table.dash-table--greetings td.greet-td-message {
        width: auto;
    }
}

@media (max-width: 980px) {
    .dash-layout {
        grid-template-columns: 92px 1fr;
    }

    .dash-brand-text,
    .dash-nav span {
        display: none;
    }

    .dash-nav a {
        justify-content: center;
        padding: 10px;
    }

    .dash-accordion__summary {
        justify-content: center;
    }

    .dash-accordion__left span {
        display: none;
    }

    /* Na mobile/tablet dalej pokazujemy duże logo (bez "RT"). */
    .dash-brand {
        justify-content: center;
    }

    .dash-brand-link {
        display: block;
        max-width: 64px;
    }

    .dash-brand-img {
        max-height: 44px;
    }
}

@media (max-width: 620px) {
    .dash-mobilebar {
        display: flex;
    }

    .dash-layout {
        grid-template-columns: 1fr;
    }

    /* Drawer: sidebar jako wysuwane menu */
    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(86vw, 320px);
        max-width: 320px;
        border-right: 1px solid rgba(255, 255, 255, 0.10);
        border-bottom: none;
        transform: translateX(-105%);
        transition: transform 200ms ease;
        z-index: 1500;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.is-drawer-open {
        overflow: hidden;
        touch-action: none;
    }

    body.is-drawer-open .dash-sidebar {
        transform: translateX(0);
    }

    body.is-drawer-open .dash-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* chmurka w sidebarze chowamy na mobile (jest w topbarze) */
    #notif-trigger-sidebar {
        display: none;
    }

    /*
     * Na etapie <=980px chowamy teksty w sidebarze (tryb „ikonki”).
     * Drawer na mobile (<=620px) ma być pełnym menu, więc przywracamy napisy.
     */
    .dash-nav span {
        display: inline;
    }

    .dash-accordion__left span {
        display: inline;
    }

    .dash-nav a {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .dash-accordion__summary {
        justify-content: space-between;
    }

    /* Logo w drawerze ma być czytelne */
    .dash-brand {
        justify-content: flex-start;
    }

    .dash-brand-link {
        max-width: 180px;
    }

    .dash-card {
        grid-column: span 12;
    }
}

/* ------------------------------------------------------------
   Dashboard: Toggle switch (used in greetings console)
   ------------------------------------------------------------ */

.dash-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.dash-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.dash-toggle__label {
    white-space: nowrap;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.dash-toggle__track {
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10) inset;
    transition: background 140ms ease;
}

.dash-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 140ms ease;
}

.dash-toggle.is-on .dash-toggle__label {
    color: rgba(255, 255, 255, 0.90);
}

.dash-toggle.is-on .dash-toggle__track {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #fb923c 100%);
}

.dash-toggle.is-on .dash-toggle__thumb {
    transform: translateX(20px);
}
