/* Debug Panel Styles */

.debug-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
}

.debug-toggle:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.debug-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 600px;
    max-height: 500px;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

.debug-panel.hidden {
    display: none;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2c3e50;
    color: white;
    border-radius: 6px 6px 0 0;
}

.debug-header h3 {
    margin: 0;
    font-size: 16px;
}

.debug-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.debug-close:hover {
    color: #e74c3c;
}

.debug-filters {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.filter-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.filter-btn:hover {
    background: #e8e8e8;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.debug-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.debug-actions button {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.debug-actions button:hover {
    background: #2980b9;
}

.debug-logs {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.debug-log {
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 3px;
}

.debug-log-log {
    background: rgba(255, 255, 255, 0.05);
}

.debug-log-error {
    background: rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
}

.debug-log-warn {
    background: rgba(241, 196, 15, 0.2);
    border-left: 3px solid #f1c40f;
}

.debug-log-info {
    background: rgba(52, 152, 219, 0.2);
    border-left: 3px solid #3498db;
}

.log-time {
    color: #7f8c8d;
    margin-right: 8px;
}

.log-level {
    font-weight: bold;
    margin-right: 8px;
}

.debug-log-error .log-level {
    color: #e74c3c;
}

.debug-log-warn .log-level {
    color: #f1c40f;
}

.debug-log-info .log-level {
    color: #3498db;
}

.log-message {
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-word;
}
