/* Animowane gwieździste tło */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0b0f1a;
    color: #fff;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0b0f1a 0%, #1a233a 100%);
    overflow-x: hidden;
}

/* Warstwy gwiazd */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    z-index: -1;
}

body::before {
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 100s linear infinite;
    opacity: 0.3;
}

body::after {
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 150s linear infinite reverse;
    opacity: 0.2;
}

@keyframes moveStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-500px, -500px); }
}

/* Layout główny */
h2, h3 {
    text-align: center;
    color: #4aa8ff;
    margin-top: 30px;
}

/* Formularze, boxy */
form {
    background: #101928;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1a2b;
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    border: 1px solid #24344e;
    padding: 12px;
    text-align: center;
}

table th {
    background-color: #15263f;
    color: #4aa8ff;
}
/* Inputy i selecty */
input, input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="url"] {
    background: #1b2a3d;
    border: 1px solid #2e4768;
    color: #fff;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
}

input[type="checkbox"] {
    transform: scale(1.3);
}

/* Buttony */
button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

/* Obrazki */
img {
    border-radius: 8px;
    max-width: 200px;
    object-fit: cover;
}

/* Linki */
a {
    color: #4aa8ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Teksty błędów i sukcesów */
p {
    text-align: center;
}

p.error {
    color: red;
}

p.success {
    color: lightgreen;
}
/* Kontener listy tapet */
.wallpaper-list {
    width: 95%;
    width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    background: #101928;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Kontener na formularz dodawania i ustawienia */
.bottom-panels {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
    gap: 20px;
}

/* Lewy i prawy panel */
.panel-left, .panel-right {
    background: #101928;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    width: 48%;
}

/* Responsywność - bloki pod sobą na wąskich ekranach */
@media (max-width: 900px) {
    .bottom-panels {
        flex-direction: column;
    }
    .panel-left, .panel-right {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        font-size: 12px;
    }

    form {
        padding: 15px;
        max-width: 100%;
    }

    button {
        padding: 8px 16px;
    }
}
