:root {
    color-scheme: dark;
}

/* Tarjetas del soundboard */
.sound-card {
    position: relative;
}

.sound-btn {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Drag & drop */
.dragging {
    opacity: 0.5;
}

.drag-over {
    outline: 2px dashed #6366f1;
    outline-offset: -2px;
}

/* Animación para el estado de bucle */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.is-looping {
    animation: pulse-border 1.5s infinite;
    border-color: #6366f1; /* Indigo 500 */
}

/* Visualizador de audio */
#visualizer {
    width: 100%;
    max-width: 480px;
    height: 48px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
}

/* Teclas de atajo */
kbd {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    color: #a5b4fc;
    background: #1e1b4b;
    border: 1px solid #3730a3;
    border-bottom-width: 2px;
    border-radius: 4px;
}

/* Sliders */
input[type="range"] {
    accent-color: #6366f1;
    cursor: pointer;
}

/* Notificaciones (toast) */
#toastContainer {
    pointer-events: none;
}

.toast {
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: toast-in 0.25s ease;
}

.toast-error {
    background: #7f1d1d;
    border-color: #b91c1c;
}

.toast-success {
    background: #064e3b;
    border-color: #059669;
}

.toast-out {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
