﻿/* Podstawowe resetowanie i czcionka */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Główny panel aplikacji na środku ekranu */
#app-container {
    background: #fff;
    width: 100%;
    max-width: 1000px; /* Zwiększone z 800px, by test był szerszy i niższy */
    padding: 40px 50px; /* Nieco mniejszy margines na górze/dole, by zyskać miejsce */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}

/* Ukrywanie i pokazywanie ekranów */
.hidden {
    display: none !important;
}

.active {
    display: block;
}

/* Stylizacja nagłówków i tekstów */
h1 {
    color: #0056b3;
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.5;
    font-size: 1.4rem;
}

p {
    line-height: 1.6;
    color: #555;
}

/* Przyciski (Buttony) */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    padding: 16px 32px;
    font-weight: bold;
    width: auto;
    margin-top: 20px;
}

    .btn-primary:hover {
        background-color: #004494;
        transform: translateY(-2px);
    }

/* Odpowiedzi do wyboru (lista) */
#answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 16px 20px;
    text-align: left;
    font-size: 18px;
    line-height: 1.5; /* Zwiększony odstęp między wierszami tekstu */
    border-radius: 8px;
    color: #333;
    letter-spacing: 0.3px; /* Zapobiega sklejaniu się tekstu w odpowiedziach */
    transition: all 0.2s ease-in-out;
}

    .answer-btn:hover {
        background-color: #eaf2fb;
        border-color: #0056b3;
    }

/* Pasek postępu */
#progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.5s ease;
}

#question-counter {
    color: #6c757d;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* 📱 RESPONSYWNOŚĆ - Ustawienia dla smartfonów */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    #app-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        width: 100%;
    }

    .answer-btn {
        padding: 15px 16px;
        font-size: 15px;
    }
}
/* <-- TUTAJ ZAMKNĘLIŚMY BLOK DLA TELEFONÓW! WSZYSTKO PONIŻEJ ZADZIAŁA WSZĘDZIE --> */

/* --- ZAZNACZONA ODPOWIEDŹ (Wyraźne podświetlenie) --- */
.answer-btn.selected {
    background-color: #dbeafe !important;
    border-color: #0056b3 !important;
    box-shadow: 0 0 0 2px rgba(0,86,179,0.2) !important;
}

/* --- NAWIGACJA (STRZAŁKI) --- */
#nav-container {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 40px !important;
    gap: 20px !important;
}

    #nav-container .nav-btn {
        padding: 18px 36px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.2s ease-in-out !important;
        border: none !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    }

    /* Przycisk POPRZEDNIE - elegancki, ciemniejszy szary z białym tekstem */
    #nav-container #prev-btn {
        background-color: #6c757d !important;
        color: #ffffff !important;
    }

        #nav-container #prev-btn:hover {
            background-color: #5a6268 !important;
            transform: translateY(-2px) !important;
        }

    /* Przycisk NASTĘPNE - wyraźny, nasycony zielony */
    #nav-container #next-btn {
        background-color: #28a745 !important;
        color: #ffffff !important;
    }

        #nav-container #next-btn:hover:not(:disabled) {
            background-color: #218838 !important;
            transform: translateY(-2px) !important;
        }

        #nav-container #next-btn:disabled {
            background-color: #a5d8b0 !important;
            color: #ffffff !important;
            cursor: not-allowed !important;
            box-shadow: none !important;
            transform: none !important;
        }

/* --- PRZYCISK PDF (EFEKT WOW) --- */
#download-pdf-btn {
    background: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%) !important;
    color: white !important;
    padding: 20px 40px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 40px !important;
    width: 100% !important;
    max-width: 450px !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

    #download-pdf-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 25px rgba(0, 168, 255, 0.6) !important;
    }

/* --- FORMULARZ DANYCH DO PDF --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px auto;
    max-width: 400px;
}

    .input-group input {
        padding: 16px;
        font-size: 16px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
        transition: border-color 0.3s;
    }

        .input-group input:focus {
            outline: none;
            border-color: #0056b3;
        }

.privacy-notice {
    font-size: 13px;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
    text-align: left;
    margin: 0 auto 30px auto;
    max-width: 600px;
    line-height: 1.6;
}
