/* ==========================================
   NeoNutraCalc – szczyt.css
   Stylizacja nagłówka, stopki i layoutu globalnego.
   Identyczna na wszystkich stronach aplikacji.
   data utworzenia: 19.09.2025
   data modyfikacji: 18.05.2026
   autor: Marcin Kalisiak
   Wszelkie prawa zastrzeżone
   ========================================== */

/* ===== Layout globalny ===== */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: sans-serif;
    /* Tło pobierane z publicznego katalogu /imagen/ */
    background: url('/imagen/tlo.webp') no-repeat center center fixed;
    background-size: cover;
}

body {
    display: grid;
    grid-template-rows: auto 1fr;
}

/* ===== Panel języków (prawy górny róg) ===== */
.jezyki-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.jezyki {
    display: flex;
    gap: 4px;
}

.jezyki a {
    display: inline-block;
    transition: transform 0.15s;
}

.jezyki a:hover,
.jezyki a.lang-active {
    transform: scale(1.15);
}

.jezyki a.lang-active img {
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.jezyki img {
    width: 32px;
    height: 24px;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    display: block;
}

#zegar-sesji {
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    margin-top: 8px;
}

/* ===== Nagłówek (środkowany) ===== */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 10vh;
    padding-bottom: 0;
}

.naglowek {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-style: italic;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 3px 5px #000;
    margin: 0;
}

.naglowek-podtytul {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 4px #000;
    margin: 4px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ===== Przycisk główny (globalny) ===== */
button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== Komunikat sukcesu (toast) ===== */
.komunikat-sukces {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e0ffe0;
    color: #2d662d;
    border: 2px solid #2d662d;
    padding: 14px 24px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    font-size: 1.1em;
    font-weight: 700;
}

/* ===== Stopka ===== */
.stopka {
    font-size: 0.85em;
    color: whitesmoke;
    text-shadow: 1px 1px 3px #000;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}
