/* 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;
}

ul.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

ul.file-grid li {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.file-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-name {
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

audio {
    margin-top: 10px;
    max-width: 100%;
}

.form-section {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-section form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.form-section form label {
    font-weight: bold;
}

.form-section form input[type="text"],
.form-section form input[type="file"],
.form-section form textarea,
.form-section form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-section form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

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

.dashboard {
    display: flex;
    gap: 40px;
    padding: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Lewa kolumna: utwory (75%) */
.song-list {
    flex: 3;
    min-width: 500px;
}

/* Prawa kolumna: formularz (25%) */
.upload-form {
    flex: 1;
    min-width: 280px;
}


.action-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.icon-btn {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #0077cc;
}

.btn-create-playlist {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-create-playlist:hover {
    background-color: #005fa3;
}

.playlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.playlist-card {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.playlist-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.playlist-date {
    font-size: 0.9em;
    color: #666;
}

.playlist-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-playlist, .btn-home {
    padding: 6px 12px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-home {
    background-color: #444;
}

.btn-playlist:hover {
    background-color: #005fa3;
}

.btn-home:hover {
    background-color: #222;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-back {
    padding: 6px 12px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #222;
}

.track-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.track-card {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.track-card h3 {
    margin-bottom: 8px;
    color: #333;
}

.track-artist {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.btn-remove {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #c00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-remove:hover {
    background-color: #900;
}

.playlist-header {
    text-align: center;
    margin-bottom: 30px;
}

.playlist-header h2 {
    font-size: 24px;
    color: #333;
}

.playlist-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    padding: 8px 16px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #222;
}

.playlist-header {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.track-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-bottom: 40px;
}

.playlist-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.btn-back {
    padding: 10px 20px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #005fa3;
}

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

    .btn-playlist {
    padding: 6px 12px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 5px;
}

.btn-playlist:hover {
    background-color: #005fa3;
}
}

video {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}