:root {
    --bg-color: #f4f7f6;
    --sidebar-bg: #1a1c23;
    --sidebar-text: #ffffff;
    --accent-color: #3b82f6;
    --text-primary: #333;
    --text-secondary: #666;
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}


p {
    text-align: justify;
    line-height: 1.9;
}

li {
    margin-left: 1.5rem;
}

/* Reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- UKŁAD GŁÓWNY (LAYOUT) --- */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - na desktopie stały, na mobile ukryty */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
}

/* Kontener na treść i stopkę */
.content-wrapper {
    margin-left: var(--sidebar-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0; 
}

/* --- GŁÓWNA TREŚĆ I STOPKA --- */

main {
    flex: 1;
    width: 100%;
    padding: 2rem 4rem;
}

footer {
    background-color: #cad5e4; 
    color: rgb(0, 0, 0);
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- STYLE ELEMENTÓW TREŚCI --- */

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Karty (np. sekcje z treścią) */
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* --- NAGŁÓWEK MOBILNY --- */
/* Domyślnie ukryty na komputerach */
.mobile-header {
    display: none;
}

/* Styl dla kontenera powrotu */
.back-nav {
    padding-top: 1rem;
    padding-left: 1rem;
    
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Ikona strzałki */
.back-link svg {
    transition: transform 0.3s ease;
}

/* Efekty Hover */
.back-link:hover {
    color: var(--accent-color); /* Zmiana koloru na Twój akcent */
}

.back-link:hover svg {
    transform: translateX(-5px); /* Przesunięcie strzałki w lewo */
}

/* Responsywność - na mobile dajemy trochę więcej miejsca */
@media (max-width: 768px) {
    .back-nav {
        margin-top: 0.5rem;
    }
}

/* --- RESPANSYWNOŚĆ (TABLET I TELEFON) --- */

@media (max-width: 768px) {
    /* 1. Resetujemy marginesy contentu */
    .content-wrapper {
        margin-left: 0;
        padding: 0; 
        padding-top: 60px;
    }

    /* 2. Zmniejszamy padding wewnątrz treści na małych ekranach */
    main {
        padding: 1.5rem;
    }

    /* 3. Sidebar zmienia się w wysuwaną szufladę */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);

        height: 100dvh; 
        overflow-y: auto;
    }

    /* Klasa dodawana przez JS po kliknięciu hamburgera */
    .sidebar.active {
        transform: translateX(0);
    }

    /* 4. Pokazujemy pasek górny na mobile */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        padding: 0 1.5rem;
        z-index: 900;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .logo-mobile {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--text-primary);
    }
}