/* Wahrscheinlichkeit – Custom CSS (Ergänzungen zu Tailwind CDN) */


/* Basis: dunkles Theme, Partysituation */
body {
    background-color: #0f172a;
    color: #f1f5f9;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Touch-Target-Mindestgröße für Buttons */
button, .btn {
    min-height: 44px;
    min-width: 44px;
}

/* Zahlen-Pad Buttons: groß und gut tippbar */
.number-btn {
    min-height: 56px;
    min-width: 56px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: transform 0.1s, background-color 0.1s;
}

.number-btn:active {
    transform: scale(0.95);
}

/* Toggle-Switch für Sonderregeln */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #334155;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #6366f1;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Toast-Benachrichtigungen */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    z-index: 50;
    max-width: 90vw;
    text-align: center;
    animation: toast-in 0.2s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Timer-Balken in PICKING */
.timer-bar {
    height: 6px;
    border-radius: 3px;
    background-color: #6366f1;
    transition: width 1s linear;
}

/* Karten-Container */
.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Spieler-Liste */
.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #0f172a;
}

.player-item.online {
    border-left: 3px solid #22c55e;
}

.player-item.offline {
    border-left: 3px solid #475569;
    opacity: 0.6;
}
