/* --- Language Switcher --- */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-radius: 4px;
    margin-left: 5px;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #eef2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 420px;
    max-width: 100%;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- STYLE ZAKŁADEK (TABS) --- */
.tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ----------------------------- */

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

/* Ukrywanie nieaktywnych grup */
.group-content {
    display: none;
}

.group-content.active {
    display: block;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input[type="text"],
input[type="file"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

/* Suwak */
input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Kolory */
.color-pickers {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.color-box {
    flex: 1;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 2px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
}

/* Kontener QR */
#qrcode-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    max-width: 100%;
    overflow: hidden;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 10px;
    background: #fafafa;
}

#qrcode-container canvas,
#qrcode-container img {
    width: 100% !important;
    height: auto !important;
    max-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-download {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    width: 100%;
}

.btn-download:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.footer {
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}

.value-display {
    float: right;
    font-weight: normal;
    color: #888;
}

.indeks-hd {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 2px;
}

.space-title {
    margin-top: -16px;
    margin-bottom: 40px;
    font-size: small;
    background: #008eff0f;
    border-radius: 10px;
    padding: 10px;
}

#author {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: small;
    color: #717171;
}

.linia-z-tekstem {
    display: flex;
    align-items: center;
    text-align: center;
    color: #555;
    font-size: small;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* To tworzy kreski przed i po tekście */
.linia-z-tekstem::before,
.linia-z-tekstem::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}

/* Dodaje odstępy między tekstem a liniami */
.linia-z-tekstem::before {
    margin-right: 15px;
}

.linia-z-tekstem::after {
    margin-left: 15px;
}
/* --- Support Button --- */
.support-section {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.coffee-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #eee;
    padding: 8px 16px;
    border-radius: 50px; /* Zaokrąglony kształt "kapsułki" */
    font-size: 13px;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coffee-btn svg {
    stroke: #555; /* Kolor ikony */
    transition: stroke 0.3s;
}

.coffee-btn:hover {
    border-color: #FFDD00; /* Kolor marki BuyCoffee (żółty) lub inny */
    background-color: #fff9e6; /* Bardzo jasne tło po najechaniu */
    color: #333;
    transform: translateY(-2px); /* Lekkie uniesienie */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.coffee-btn:hover svg {
    stroke: #f59e0b; /* Ikona zmienia kolor na 'kawowy/bursztynowy' */
}
/* Styl dla końcówki .app */
.domain-ext {
    font-size: 0.8em;      /* Nieco mniejsze niż główny tytuł */
    color: #888;           /* Szary kolor zamiast czarnego */
    font-weight: 400;      /* Cieńsza czcionka */
}
/* --- Branding Header --- */
.header-brand {
    display: flex;
    align-items: center; /* Wyrównanie w pionie (środek) */
    justify-content: center; /* Wyśrodkowanie całości na stronie */
    gap: 12px; /* Odstęp między logo a tekstem */
    margin-bottom: 20px; /* Odstęp pod tytułem */
}

.app-logo {
    width: 36px; /* Rozmiar logo - dopasowany do wysokości h2 */
    height: 36px;
    /* Opcjonalnie: lekki cień pod logo dla efektu głębi */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); 
}
