/* ==============================================
   DEBUG PANEL - Estilos
   ============================================== */

.debug-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 350px;
    max-height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.debug-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px;
    border-bottom: 1px solid #2980b9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.debug-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.debug-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    transition: background 0.2s;
}

.debug-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.debug-content {
    padding: 15px;
    color: #ecf0f1;
}

.debug-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}

.debug-section:last-child {
    border-bottom: none;
}

.debug-section h4 {
    margin: 0 0 12px 0;
    color: #3498db;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.debug-select,
.debug-input {
    padding: 8px 12px;
    background: #0f3460;
    border: 1px solid #3498db;
    color: #ecf0f1;
    border-radius: 5px;
    font-size: 12px;
}

.debug-select:focus,
.debug-input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.debug-select option {
    background: #1a1a2e;
    color: #ecf0f1;
}

.btn-debug {
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-debug:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-debug:active {
    transform: translateY(0);
}

.debug-help {
    margin: 10px 0 0 0;
    font-size: 11px;
    color: #95a5a6;
    font-style: italic;
}

.debug-stats {
    background: rgba(52, 152, 219, 0.1);
    padding: 12px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.debug-stats p {
    margin: 6px 0;
    font-size: 12px;
    color: #bdc3c7;
}

.debug-stats strong {
    color: #2ecc71;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .debug-panel {
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 60vh;
    }
}

/* Dark mode compatibility */
body.dark-mode .debug-panel {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #3498db;
}

body.dark-mode .debug-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

body.dark-mode .debug-section {
    border-bottom-color: #1a252f;
}

body.dark-mode .debug-select,
body.dark-mode .debug-input {
    background: #1a252f;
    border-color: #3498db;
    color: #ecf0f1;
}
