/**
 * DJ Config Modal - Styles (Compact Version)
 * Modal de configuración para activar/desactivar módulos DJ
 */

/* ===============================================
   BOTÓN CONF EN PANTALLA CDJ
   =============================================== */
.config-btn {
    position: absolute;
    top: 10px;
    right: 55px;
    padding: 2px 5px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, rgba(60, 60, 80, 0.9) 0%, rgba(40, 40, 55, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.config-btn:hover {
    background: linear-gradient(180deg, rgba(80, 80, 100, 0.95) 0%, rgba(60, 60, 75, 0.98) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #818cf8;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
}

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

/* ===============================================
   MODAL OVERLAY
   =============================================== */
.dj-config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dj-config-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===============================================
   MODAL CONTAINER (COMPACT)
   =============================================== */
.dj-config-modal {
    background: linear-gradient(180deg, #1a1a25 0%, #12121a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    width: 320px;
    max-width: 95%;
    max-height: 70vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
}

.dj-config-overlay.active .dj-config-modal {
    transform: scale(1) translateY(0);
}

/* ===============================================
   MODAL HEADER (COMPACT)
   =============================================== */
.dj-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dj-config-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dj-config-title svg {
    width: 14px;
    height: 14px;
    color: #818cf8;
}

.dj-config-close {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dj-config-close:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff4444;
}

.dj-config-close svg {
    width: 12px;
    height: 12px;
}

/* ===============================================
   MODAL BODY (COMPACT)
   =============================================== */
.dj-config-body {
    padding: 8px 10px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
}

.dj-config-body::-webkit-scrollbar {
    width: 4px;
}

.dj-config-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.dj-config-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 2px;
}

/* ===============================================
   SECCIÓN DE CATEGORÍA (COMPACT)
   =============================================== */
.config-section {
    margin-bottom: 10px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section-title {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===============================================
   ITEM DE CONFIGURACIÓN (COMPACT - SINGLE LINE)
   =============================================== */
.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.15s ease;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.config-item-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.config-item-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.config-item-desc {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    display: none;
}

/* ===============================================
   DIFERENCIACIÓN: DEFAULT vs PRO
   =============================================== */
/* Módulos DEFAULT - Cyan/Verde (disponibles para todos) */
.config-item-default .config-item-name {
    color: #4ade80;
}

.config-item-default:hover {
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(74, 222, 128, 0.05);
}

/* Módulos PRO - Naranja/Amarillo (requieren login) */
.config-item-pro .config-item-name {
    color: #fbbf24;
}

.config-item-pro:hover {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.05);
}

/* Badge PRO */
.pro-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 4px;
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    border-radius: 2px;
    vertical-align: middle;
}

/* ===============================================
   TOGGLE SWITCH (COMPACT)
   =============================================== */
.config-toggle {
    position: relative;
    width: 32px;
    height: 16px;
    flex-shrink: 0;
}

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

.config-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.config-toggle-slider::before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 1px;
    bottom: 1px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.config-toggle input:checked + .config-toggle-slider {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-color: rgba(99, 102, 241, 0.5);
}

.config-toggle input:checked + .config-toggle-slider::before {
    transform: translateX(16px);
    background: #fff;
}

/* Estado disabled */
.config-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===============================================
   MODAL FOOTER (COMPACT)
   =============================================== */
.dj-config-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modules-active-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.modules-active-indicator .count {
    font-weight: 700;
    color: #00ff88;
}

.config-reset-btn {
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 600;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.25);
    border-radius: 3px;
    color: #ff6666;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-reset-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 400px) {
    .dj-config-modal {
        width: 95%;
    }

    .config-item {
        padding: 4px 6px;
    }

    .config-item-name {
        font-size: 9px;
    }

    .config-toggle {
        width: 28px;
        height: 14px;
    }

    .config-toggle-slider::before {
        height: 10px;
        width: 10px;
    }

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