/* --- FUNDAMENTY I ZMIENNE --- */
:root {
    --olza-blue: #08C2EE;
    --olza-dark: #0056b3;
    --bg-light: #f3f6fb;
    --transition: 0.3s ease;
}

body {
    background-color: var(--bg-light);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- KARTA GŁÓWNA --- */
.claim-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 940px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 35, 52, 0.1);
    border: 1px solid #dde6f2;
    position: relative;
}

/* --- NAGŁÓWEK I LOGO --- */
.brand-section {
    margin-bottom: 2rem;
}

.logo-main {
    height: auto;
    width: 100%;
    max-width: 200px; /* Rozmiar optymalny dla desktopu */
    display: inline-block;
}

.brand-text h1, .brand-text h2 {
    color: #222;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

/* --- PRZEŁĄCZNIK JĘZYKÓW (UKŁAD STATYCZNY) --- */
.language-switch-static {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid #eee;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
    padding: 2px 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: #6c757d;
}

.lang-btn.active {
    color: var(--olza-blue);
}

.lang-separator {
    color: #dee2e6;
    font-size: 0.8rem;
    user-select: none;
}

/* --- KAFELKI WYBORU (INDEX.HTML) --- */
.selection-card {
    transition: transform var(--transition);
    cursor: pointer;
}

.selection-card:hover {
    transform: translateY(-8px);
}

.selection-card .card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid #edf2f7 !important;
    transition: all var(--transition);
}

.selection-card:hover .card {
    border-color: var(--olza-blue) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* --- ZAŁĄCZNIKI (FORM.HTML) --- */
.attachments-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5fbff 0%, #f0f4ff 100%);
    border: 1px dashed #9bc5ff;
}

.attachments-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olza-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
}

/* --- PRZYCISKI --- */
.btn-primary {
    background-color: var(--olza-blue);
    border-color: var(--olza-blue);
}

.btn-primary:hover {
    background-color: #06a4ca;
    border-color: #06a4ca;
}

/* --- RESPONSYWNOŚĆ (MOBILE) --- */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
        align-items: flex-start;
    }

    .claim-card {
        padding: 24px 16px;
        border-radius: 12px;
        margin-top: 5px;
    }

    .logo-main {
        max-width: 140px; /* Zmniejszone logo na mobile */
    }

    .brand-text h1 {
        font-size: 1.4rem !important;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* --- NOWY STYL PRZYCISKU WRÓĆ --- */
.top-toolbar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4f8; /* Delikatna linia oddzielająca nawigację */
}

.back-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa; /* Jasne tło */
    color: #495057; /* Ciemnoszary tekst */
    text-decoration: none;
    border-radius: 50px; /* Zaokrąglone brzegi */
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid #e9ecef;
}

.back-link i {
    font-size: 1.2rem;
    margin-right: 6px;
    color: var(--olza-blue); /* Akcent kolorystyczny na ikonie */
    transition: transform 0.2s ease;
}

.back-link:hover {
    background-color: #ffffff;
    color: var(--olza-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--olza-blue);
}

.back-link:hover i {
    transform: translateX(-3px); /* Subtelna animacja strzałki przy najechaniu */
}

/* --- DEKORACJA TYTUŁU --- */
.title-underline {
    width: 40px;
    height: 4px;
    background: var(--olza-blue);
    margin: 10px auto;
    border-radius: 10px;
}

/* --- POPRAWKI MOBILNE --- */
@media (max-width: 768px) {
    .back-link {
        padding: 6px 12px;
    }
    
    /* Na mobile ukrywamy napis "Wróć" jeśli jest ciasno, zostawiamy samą strzałkę w kółku */
    /* .back-link span { display: none; } */
}