body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
}

h2 {
    margin-bottom: 20px;
}

/* --- Toolbar --- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.left-buttons {
    display: flex;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* Przyciski glowne */
.btn-new-folder, .btn-upload, .btn-level-up {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-new-folder {
    background: #4285f4;
    color: white;
}

.btn-upload {
    background: #34a853;
    color: white;
}

.btn-level-up {
    background: #1a73e8;
    color: white;
}

/* Hover efekty */
.btn-new-folder:hover { background: #3367d6; }
.btn-upload:hover { background: #2c8c47; }
.btn-level-up:hover { background: #0b5cc7; }

/* przycisk wyloguj */
.btn-logout {
    padding: 6px 10px;
    font-size: 13px;
    background: #c9c2c2;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #d6d6d6;
}

/* --- Lista plików/folderów --- */
.file-list {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item:last-child {
    border-bottom: none;
}

.item a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.delete-btn {
    cursor: pointer;
    font-size: 14px;
    padding-left: 10px;
}

/* --- Modal Tworzenia folderu --- */
.modal-bg {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
}

.modal {
    background:white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
}

.modal input[type="text"] {
    width:92%;
    padding:8px;
    margin-top:10px;
}

.modal button {
    margin-top: 10px;
    padding:8px 12px;
    background:#4285f4;
    color:white;
    border:none;
    border-radius:4px;
    cursor:pointer;
}

/* --- Modal upload pliku --- */
.upload-modal-bg {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
}

.upload-modal {
    background:white;
    padding:20px;
    border-radius:8px;
    min-width:300px;
    text-align:center;
}

.upload-modal h3 {
    margin-top:0;
}

.upload-modal input[type="file"] {
    width: 90%;
    margin: 15px 0;
}

.upload-modal button {
    padding: 10px 16px;
    background: #34a853;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-modal button:hover {
    background: #2c8c47;
}

.upload-modal a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.upload-modal a:hover {
    text-decoration: underline;
}
/* podglad */
.file-thumb {
    width: 40px;
    height: 40px;
    object-fit:cover;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}
audio, video {
    display: block;
    margin-top: 5px;
    max-width: 650px;
}
.media-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-thumb {
    width:50px;
    height:50px;
    object-fit:cover;
    margin-right:8px;
    vertical-align:middle;
    cursor:pointer;
}

.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

.alert-danger { background: #f8d7da; color: #842029; }
.alert-success { background: #d1e7dd; color: #0f5132; }
.playlist-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.playlist-card {
    background: #cdd3df;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 10px;
}

.playlist-status {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.btn-playlist {
    margin-top: 10px;
    padding: 6px 12px;
    text-align: center;
    border-radius: 6px;
    background: #4285f4;
    color: white;
    text-decoration: none;
}

.btn-playlist:hover {
    background: #3367d6;
}
#playlist-player {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    max-width: 650px;
    margin-bottom: 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

#track-info {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

#player-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#player-buttons button {
    background: #4285f4;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#player-buttons button:hover {
    background: #3367d6;
}

.media-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.media-row:hover {
    background: #e4e7eb;
}

.media-row.active {
    background: #d1e7dd;
    font-weight: bold;
}

.track-details {
    flex-grow: 1;
}

.file-thumb {
    width: 50px;
    height: 50px;
    background: #ccc;
    border-radius: 6px;
}


