/* =====================================
   shared.css
   Wspólne zmienne i teksty dla edit.html i view.html
   Zmieniaj tylko tutaj, aby zachować spójność między ekranami
===================================== */

:root {
    /* === Kolory i styl === */
    --bg: #000;
    --fg: #0f172a;
    --card: #ffffff;
    --panel: #111;
    --border: #2a2a2a;
    --muted: #6b7280;
    --text: #e5e7eb;
    --accent: #e3fc02;
    --blue: #3b82f6;
    --local-elite-tv-color: #e3fc02;
    --left_w: 20vw;
    --right_w: 80vw;
    --belt_h: 10vh;
    --fonts: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);

    /* === Teksty interfejsu === */
    --txt-dashboard-title: "Pulpit Zarządzania";
    --txt-left-place-1: "Sala Balance";
    --txt-left-place-2: "Cross";
    --txt-left-place-3: "Hala Funkcjonalna";

    --txt-left-place-5: "TV";
    --txt-left-place-6: "Pasek";

    --txt-select-class: "Wybierz";
    /* Sala 1 */
    --txt-class1-name: "Zajęcia: ";
    --txt-class1-time: "Godzina:";
    --txt-class1-coach: "Instruktor:";

    /* Sala 2 */
    --txt-class2-name: "Zajęcia:";
    --txt-class2-time: "Godzina:";
    --txt-class2-coach: "Instruktor:";





    /* Sala 3 */
    --txt-class3-name: "Zajęcia:";
    --txt-class3-time: "Godzina:";
    --txt-class3-coach: "Instruktor:";

        /* blok 4 */
    --txt-left-place-4: "Recepcja";
    --txt-coach-today: "Imię i nazwisko:";
    --txt-select-coach: "Wybierz: ";
    --txt-coach-name: "Imię i nazwisko:";
    --txt-coach-duty: "Godzina:";
    --txt-coach-photo: "Zdjęcie ";

    --txt-player-choose-files: "Wybierz pliki (możesz zaznaczyć wiele):";
    --txt-player-mode: "Tryb odtwarzania:";
    --txt-player-enable: "Włącz player";
    --txt-player-set: "Ustaw playlistę";
    --txt-player-live: "Włącz LIVE";
    --txt-player-next: "Następny";
    --txt-player-disable: "Wyłącz player";
    --txt-player-no-files: "Nie wybrano plików";
    --txt-player-files: "plików";

    --txt-field-a: "Pierwszy";
    --txt-field-b: "Drugi";
    --txt-field-c: "Trzeci";
    --txt-belt-set: "Ustaw";
    --txt-belt-clear: "Wyczyść";

    --txt-emergency-title: "Awaryjne sterowanie komunikatami.";
    --txt-csv-hint: "Dane ładują się automatycznie z plików CSV. Gdy brak serwera — wybierz pliki lokalne.";
    --txt-csv-fallback: "Awaryjnie wczytaj CSV:";
    --txt-csv-classes: "Wybierz classes.csv";
    --txt-csv-coaches: "Wybierz coaches.csv";

    --txt-loading: "Ładowanie…";
    --txt-loading-error: "Nie udało się wczytać pliku";
    --txt-send: "Wyślij";
    --txt-clear: "Wyczyść";

    /* === Pasek i stopka === */
    --txt-footer: "buczek technologies";
    --footer-safe-space: 80px;
    --footer-logo-width: 230px;
    --footer-font: "Inter", "Segoe UI", sans-serif;
    --footer-bg-dark: #000000;
    --footer-fg-dark: #c9cdd2;
    --footer-muted-dark: #9fb0be;
    --footer-extra-size: 12px;
    --footer-extra-gap: 14px;
    --txt-belt-default: "";
    --txt-loading-names: "Ładowanie imienin...";
    --txt-no-names: "Brak danych o imieninach.";
}

.footer-safe {
    padding-bottom: calc(var(--footer-safe-space) + env(safe-area-inset-bottom)) !important;
}

.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 20px 0 calc(15px + env(safe-area-inset-bottom)) 0;
    min-height: 0;
    width: 100%;
    max-width: none;
    background: var(--footer-bg-dark);
    border-radius: 0;
    box-shadow: none;
    color: var(--footer-fg-dark);
    font-family: var(--footer-font);
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 2147483000;
}

.app-footer__left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--footer-extra-gap);
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    order: 2;
    opacity: 0.85;
    font-family: var(--footer-font);
    line-height: 1;
}

.app-footer__logo {
    display: block;
    width: auto;
    height: 40px;
    max-height: none;
    max-width: min(68vw, var(--footer-logo-width));
    flex: 0 0 auto;
    filter: none;
    transform: none;
}

.app-footer__separator {
    display: inline-block;
    color: #1fa2a6;
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    flex: 0 0 auto;
}

.app-footer__extra {
    display: inline-block;
    align-self: center;
    color: #c9cdd2;
    font-family: var(--footer-font);
    font-size: var(--footer-extra-size);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.5px;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(56vw, 520px);
    min-width: 0;
    flex: 0 1 auto;
    opacity: 1;
    margin-left: 0;
    transform: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.app-footer__brand {
    display: none;
}

.app-footer__title {
    display: none;
}

.app-footer__tagline {
    margin: 0;
    color: var(--footer-muted-dark);
    font-size: clamp(10px, .95vw, 12px);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}

.app-footer__copy {
    display: none;
}

@media (max-width: 760px) {
    .app-footer {
        padding: 16px 0 calc(12px + env(safe-area-inset-bottom)) 0;
    }

    .app-footer__separator {
        font-size: 14px;
    }

    .app-footer__extra {
        font-size: 12px;
        letter-spacing: 0.35px;
        max-width: min(40vw, 180px);
    }
}

.app-footer__right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.version-tag {
    font-size: 10px;
    font-weight: 900;
    background: rgba(227, 252, 2, 0.08);
    color: #e3fc02;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(227, 252, 2, 0.2);
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* Responsive Utilities */
.hide-mobile {
    display: inherit;
}
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

.touch-target {
    min-height: 44px;
    min-width: 44px;
}
