html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Verhindert den "Gummiband-Effekt" beim Scrollen über den Rand */
    overscroll-behavior-y: none;
    /* Optional: Verhindert Text-Markieren (macht es app-liker), 
       außer in Textfeldern natürlich */
     user-select: none;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MS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ding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


@media (min-width: 960px) {
    .desktop-paper-width {
        min-width: 250px;
    }
}

.panelPaperFull 
{
    width: 50vw;
}

.playlist-panel {
    /* Positioniert das Panel fixiert am rechten Rand */
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1300; /* Stellt sicher, dass es über dem normalen Inhalt liegt */
    /* Sorgt für einen sanften "Slide-in/out"-Effekt */
    transition: transform 0.25s ease-in-out;
    /* Wichtig, damit der Inhalt scrollbar ist */
    display: flex;
    flex-direction: column;
}



/* Zustand, wenn das Panel offen ist (im Bildschirm) */
.playlist-panel.open {
    transform: translateX(0%);
}

.playlist-panel.closed {
    transform: translateX(100%) !important;
}

.mud-scroll-to-top {
    position: fixed;
    cursor: pointer;
    z-index: 9900;
}



    .mud-scroll-to-top.visible {
        bottom: 76px;
        right: 16px;
        opacity: 1;
        transition: transform .5s;
        flex: 1;
    }

.mud-container-maxwidth-xl {
    max-width: 2560px !important; /* Oder z.B. 100% für volle Breite */
}

@media (min-width: 600px) {
    .mud-container--gutters {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/* Standard ist 16px (wird von MudBlazor gesetzt) */

/* Nur für Bildschirme kleiner als 600px (Handys) */
@media (max-width: 600px) {
    .mud-container--gutters {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Standard (Desktop) Schriftgrößen */
.song-title {
    font-size: 1rem;
    font-weight: 500;
}

.song-artist {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

/* MOBILE ANPASSUNG (Handy < 600px) */
@media (max-width: 600px) {
    .song-title {
        font-size: 0.85rem !important;
    }
    /* Kleinerer Titel */
    .song-artist {
        font-size: 0.75rem !important;
    }
    /* Viel kleinerer Interpret */

    /* Optional: Icon auf Handy kleiner machen */
    .song-icon {
        font-size: 1.25rem !important;
    }

    /* Optional: Dauer auf Handy ausblenden oder kleiner machen */
    .song-duration {
        font-size: 0.7rem !important;
    }
}


.sortable-item-dragging {
    position: fixed;
    z-index: 9999;
    opacity: 0.9;
    pointer-events: none;
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
    transform: scale(1.02);
    /* Hintergrund muss gesetzt sein, da er sonst transparent ist */
    background-color: var(--mud-palette-surface);
    border-radius: 4px;
    display: flex; /* Damit Layout erhalten bleibt */
    align-items: stretch;
}

/* Styling für den Playlist Drawer */

/* 1. GRUNDEINSTELLUNG (Mobile & Desktop) */
/* Wir setzen die Breite NUR, wenn der Drawer auch die Klasse .mud-drawer-open hat */
.playlist-drawer-custom.mud-drawer.mud-drawer--open {
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1400 !important;
}

/* 2. DESKTOP (Größer als 960px) */
@media (min-width: 960px) {
    /* Auch hier: Breite nur anwenden, wenn OFFEN */
    .playlist-drawer-custom.mud-drawer.mud-drawer--open {
        width: 33vw !important;
        max-width: 33vw !important;
        min-width: 350px !important;
        background-color: var(--mud-palette-surface);
        border-left: 1px solid var(--mud-palette-divider);
    }

}

.custom-music-table table {
    table-layout: fixed !important;
    width: 100% !important;
}


/* --- SPALTE 1: TITEL (col-titel) --- */
/* Nimmt den restlichen Platz ein und schneidet Text ab (...) */
.custom-music-table .col-titel {
    width: auto;
    max-width: 0; /* Trick für Text-Overflow in Tabellen */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- SPALTE: BEWERTUNG (col-ratings) --- */
.custom-music-table .col-ratings {
    width: 140px !important;
    text-align: right;
    /* Optional: Verhindert, dass die Sterne umbrechen */
    white-space: nowrap;
}

/* --- SPALTE: HINZUGEFÜGT (col-add) --- */
.custom-music-table .col-add {
    width: 120px !important;
    text-align: right;
    white-space: nowrap;
}

/* --- SPALTE: DAUER (col-duration) --- */
.custom-music-table .col-duration {
    /* Mobile Standard: schmal */
    width: 70px !important;
    text-align: right;
    white-space: nowrap;
}

/* --- SPALTE: MENÜ (col-menue) --- */
.custom-music-table .col-menue {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center;
    padding: 0 !important; /* Weniger Padding für den Button */
}

/* ================================================================= */
/* DESKTOP ANPASSUNGEN (Optional) */
/* ================================================================= */
@media (min-width: 960px) {

    /* Auf Desktop darf die Dauer etwas mehr Luft haben */
    .custom-music-table .col-duration {
        width: 100px !important;
        padding-right: 24px !important; /* Abstand zum Menü */
    }

    /* Mehr Abstand für die anderen Spalten auf Desktop */
    .custom-music-table .col-ratings,
    .custom-music-table .col-add {
        padding-right: 24px !important;
    }
}


/* 5. DESIGN ANPASSUNGEN */
/* Keine Linien zwischen den Zeilen */
.custom-music-table .mud-table-cell {
    border-bottom: none !important;
}
/* Hover-Effekt */
.custom-music-table .mud-table-row:hover {
    background-color: rgba(128, 128, 128, 0.05) !important;
}
/* Interpret Text (kleiner & grau) */
.artist-text {
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
    /* Falls Interpret zu lang ist, auch pünktchen */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
/* 6. MOBILE SPEZIFISCH (Handy) */
@media (max-width: 600px) {
    /* Weniger Padding, damit mehr Text reinpasst */
    .custom-music-table .mud-table-cell {
        padding: 4px 8px !important;
    }
    /* Interpret noch etwas kleiner auf dem Handy */
    .artist-text {
        font-size: 0.75rem;
    }
}

/* Kompakte Tabelle für Mobile */
@media (max-width: 600px) {
    .mobile-compact-table .mud-table-cell {
        padding: 4px 6px !important; /* Viel weniger Innenabstand */
        font-size: 0.75rem !important; /* Kleinere Schrift (ca. 12px) */
        white-space: nowrap; /* Kein Umbruch */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Icons in Buttons kleiner machen */
    .mobile-compact-table .mud-icon-button {
        padding: 4px !important;
    }

        .mobile-compact-table .mud-icon-button svg {
            font-size: 1.25rem !important;
        }

    /* Chips kleiner machen */
    .mobile-compact-table .mud-chip {
        height: 20px !important;
        font-size: 0.7rem !important;
        margin: 0 !important;
    }
}