/* Debug Control Panel Styles */
.debug-control-modal {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.debug-control-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Module/Level Toggle Buttons */
.debug-toggle-btn {
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debug-toggle-btn.enabled {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.debug-toggle-btn.disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.debug-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Performance Metrics Cards */
.metric-card {
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Log Console */
.log-console {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    background: #0d1117;
    color: #58a6ff;
    border: 1px solid #30363d;
    border-radius: 6px;
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

.log-console::-webkit-scrollbar {
    width: 8px;
}

.log-console::-webkit-scrollbar-track {
    background: #0d1117;
}

.log-console::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.log-console::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Global Control Buttons */
.global-control-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.global-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.global-control-btn:hover::before {
    left: 100%;
}

.global-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Status Indicator */
.debug-status {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.debug-status.enabled {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #22c55e;
}

.debug-status.disabled {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Floating Debug Button */
#debug-floating-button {
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#debug-floating-button:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

/* Dark mode adjustments */
.dark .debug-control-modal {
    color: #f9fafb;
}

.dark .metric-card {
    background: #374151;
    border-color: #4b5563;
}

.dark .debug-toggle-btn.disabled {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .debug-control-modal .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .debug-toggle-btn {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 6px 12px;
    }
    
    .metric-card {
        padding: 12px;
    }
    
    .log-console {
        height: 200px;
        font-size: 0.75rem;
    }
}

/* Animation for modal open */
.debug-control-modal.show {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Performance indicator colors */
.perf-excellent { color: #22c55e; }
.perf-good { color: #3b82f6; }
.perf-warning { color: #f59e0b; }
.perf-critical { color: #ef4444; }