/* Wyśrodkowanie całej strony */
.auth-style {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
}

.track-grid {
    flex-grow: 1;
}

header.playlist-header {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer.playlist-footer {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

main.track-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
}

/* Estetyczne okno formularza */
.form-container {
    width: 350px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Nagłówek */
.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #2c3e50;
}

/* Formularz */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    font-weight: bold;
    color: #34495e;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.auth-form button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.auth-form button:hover {
    background-color: #2980b9;
}

/* Komunikat błędu */
.error-box {
    background-color: #ffe6e6;
    padding: 15px;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.error-box .error {
    color: #c0392b;
    font-weight: bold;
}

.error-box a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.error-box a:hover {
    text-decoration: underline;
}

/* Link do rejestracji */
.form-container p {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
}

.auth-footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #e0eafc, #cfdef3);

    
}

/* ------------------------------ */
/* 🌸 GLOBAL STYLE – PASTELOWY UI */
/* ------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", "Inter", sans-serif;
    background: linear-gradient(135deg, #FFD3B6, #FFB7D5, #A8E6CF, #D7C7FF);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
    color: #333;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
}

h1, h2 {
    text-align: center;
    font-weight: 700;
    color: #333;
}

/* ------------------------------ */
/* 🌈 TOP BAR */
/* ------------------------------ */

.top-bar {
    
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ffffff55;
}

.user-panel, .guest-panel {
    display: flex;
    gap: 15px;
    align-items: center;
}

.welcome {
    font-size: 15px;
    font-weight: 600;
}

/* ------------------------------ */
/* 🌸 BUTTONS */
/* ------------------------------ */

.btn, .pastel-btn {
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFB7D5, #FFD3B6);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: 0.2s;
}

.btn:hover, .pastel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #00000030;
}

.btn-add {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, #A8E6CF, #D7C7FF);
    border-radius: 14px;
    font-weight: 700;
    color: #333;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #00000030;
}

/* ------------------------------ */
/* 🌸 FORUM CONTAINER */
/* ------------------------------ */

.forum-container {
    width: 75%;
    margin: 40px auto;
    padding: 25px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 6px 20px #00000025;
}

/* ------------------------------ */
/* 🌸 TOPICS LIST */
/* ------------------------------ */

.topics-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.topic-box {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF5A5, #FFD3B6);
    box-shadow: 0 4px 12px #00000020;
    transition: 0.2s;
}

.topic-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px #00000030;
}

.topic-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.topic-meta {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.delete-btn {
    float: right;
    padding: 6px 12px;
    background: #ff8a8a;
    border-radius: 10px;
    color: white;
    font-weight: 600;
}

.delete-btn:hover {
    background: #ff6b6b;
}

/* ------------------------------ */
/* 🌸 AUTH PAGES (login/register) */
/* ------------------------------ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.form-container {
    width: 380px;
    padding: 30px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 6px 20px #00000025;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.auth-form button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #A8E6CF, #D7C7FF);
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.auth-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #00000030;
}

/* ------------------------------ */
/* 🌸 ERROR BOX */
/* ------------------------------ */

.error-box {
    padding: 12px;
    background: #ffb3b3;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}
.edit-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #ffd27f;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    transition: 0.2s;
}

.edit-btn:hover {
    background: #ffbe4d;
}


/* NAVBAR */
.navbar {
    background: #ffffffdd;
    backdrop-filter: blur(6px);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px #00000015;
}

.navbar a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: 600;
    color: #4a5ac9;
}

.navbar a.active {
    color: #2f3fb8;
}

.logout-btn {
    color: #d9534f;
    font-weight: 700;
}

/* ADMIN GRID */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.admin-box {
    padding: 25px;
    border-radius: 12px;
    background: #ffffffcc;
    box-shadow: 0 0 15px #00000015;
}

/* TABELA */
.pastel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.pastel-table th {
    background: #e8edff;
    padding: 12px;
    color: #4a5ac9;
}

.pastel-table td {
    background: #ffffff;
    padding: 12px;
    border-bottom: 1px solid #dfe6ff;
}

.pastel-table tr:hover td {
    background: #f3f6ff;
}

/* PRZYCISKI W TABELI */
.table-btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 6px;
    transition: 0.2s;
}

.table-btn.red {
    background: #ffb3b3;
    color: #700;
}

.table-btn.red:hover {
    background: #ff9a9a;
}

.table-btn.orange {
    background: #ffd9a3;
    color: #7a4a00;
}

.table-btn.orange:hover {
    background: #ffcc85;
}

/* GRID */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* BOXY */
.admin-box {
    padding: 25px;
    border-radius: 12px;
    background: #ffffffcc;
    box-shadow: 0 0 15px #00000015;
}

/* TABELA */
.pastel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.pastel-table th {
    background: #e8edff;
    padding: 12px;
    color: #4a5ac9;
}

.pastel-table td {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
}

.pastel-table tr:hover td {
    background: #f3f6ff;
}

/* PRZYCISKI W TABELI */
.table-btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 6px;
    transition: 0.2s;
}

.table-btn.red {
    background: #ffb3b3;
    color: #700;
}

.table-btn.red:hover {
    background: #ff9a9a;
}

.table-btn.orange {
    background: #ffd9a3;
    color: #7a4a00;
}

.table-btn.orange:hover {
    background: #ffcc85;
}