html, body {
    height: 100%;
    margin: 0;
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

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

/* --- Sidebar (desktop) --- */
.main-nav {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: #252525;
    border-right: 2px solid #111;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow-x: hidden;
    z-index: 900;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
}
.logo-box img { width: 48px; height: 48px; }
.logo-text { color: #FFD600; font-weight: 600; font-size: 1.2rem; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.main-nav li { width: 100%; }

.main-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #EEE;
    transition: background 0.15s ease, transform 0.1s ease;
}
.main-nav a:hover {
    background: #333;
    color: #FFD600;
    transform: translateX(4px);
}
.icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Content --- */
.content {
    flex: 1;
    padding: 32px;
    z-index: 1;
}

/* --- Footer --- */
footer {
    text-align: center;
    background-color: #111;
    color: #AAA;
    padding: 12px;
    font-size: 0.9rem;
}

/* --- Hamburger --- */
.menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #FFD600;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

img.upload {
    max-width: 50vw;
    max-height: 30vh;
}

.active a {
    background-color: #444;
    border: 2px black solid;
    box-sizing: border-box;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .content {
        padding: 20px 16px;
    }
}

/* Małe ekrany — tylko ikony */
@media (max-width: 50px) {
    .main-nav a span:last-child {
        display: block !important;
    }
}
