/* === OGÓLNE === */
body {
    margin: 0;
    font-family: "Trebuchet MS", sans-serif;
    display: flex;
    min-height: 100vh;
    background: #111;
    color: #fff;
}

/* === SIDEBAR === */
.sidebar {
    width: 220px;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(6px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 4px 0 25px #ffffff40;
    border-radius: 0 20px 20px 0;

    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}


.sidebar h2 {
    color: #FFD1DC;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #FFD1DC;
}

.sidebar nav a {
    color: #FFD1DC;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 12px;
    display: block;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar nav a:hover {
    background: #ffffff26;
    text-shadow: 0 0 8px #FFD1DC;
}

.sidebar hr {
    border: none;
    height: 1px;
    background: #333;
    margin: 10px 0;
}

/* === GŁÓWNY CONTENT === */
.content {
    flex: 1;
    margin-left: 240px; /* przestrzeń dla sidebar */
    display: flex;
    justify-content: center; /* wycentrowanie treści w poziomie */
    padding: 30px;
    min-height: 100vh;
}

/* Kontener treści wycentrowany */
.content-inner {
    width: 100%;
    max-width: 900px; /* szerokość ograniczona, żeby nie było za szeroko */
    display: flex;
    flex-direction: column;
    align-items: center; /* wycentrowanie elementów w kontenerze */
}

/* === NAGŁÓWKI === */
h1, h3 {
    color: #FFD1DC;
    text-shadow: 0 0 12px #FFD1DC;
    margin-bottom: 20px;
}

/* === FORMULARZE PRODUKTÓW === */
.product-form {
    background: rgba(26,26,26,0.95);
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: 0 0 25px #ffffff40;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 400px;
    margin-bottom: 25px;
    margin-left: 300px;
}

/* === TABELA === */
#invoice-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26,26,26,0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

#invoice-table th,
#invoice-table td {
    padding: 12px 15px;
    text-align: center;
}

#invoice-table th {
    background: #111;
    color: #FFD1DC;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

#invoice-table tr:hover {
    background: rgba(138,226,232,0.05);
}

#invoice-table td {
    color: #ddd;
    border-bottom: 1px solid #333;
}

#invoice-table td button {
    background: #FFD1DC;
    color: #111;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

#invoice-table td button:hover {
    background: #FFD1DC;
}

/* === SUMA PARAGONU === */
#total {
    font-size: 18px;
    color: #7CFF7C;
    font-weight: bold;
    margin-top: 10px;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 992px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        border-radius: 0;
        padding: 15px 0;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .content-inner {
        width: 100%;
    }

    .product-form {
        width: 95%;
    }
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD1DC, #ffffff);
    color: #0f0f14;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 15px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #FFD1DC;
}
