/* Debug Console Styles */
.debug-console {
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.debug-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-3);
    border-bottom: 1.5px solid var(--border);
}

.debug-console-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-1);
}

.debug-console-badge {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.debug-console-actions {
    display: flex;
    gap: 0.5rem;
}

.debug-console-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: none;
    background: var(--bg-1);
    color: var(--text-2);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.debug-console-btn:hover {
    background: var(--bg-2);
    color: var(--text-1);
}

.debug-console-btn.active {
    background: var(--primary);
    color: white;
}

.debug-console-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.debug-console-body.collapsed {
    max-height: 0;
    overflow: hidden;
}

.debug-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.debug-log-entry:hover {
    background: var(--bg-3);
}

.debug-log-entry:last-child {
    border-bottom: none;
}

.debug-log-time {
    color: var(--text-3);
    font-size: 0.75rem;
    min-width: 70px;
    flex-shrink: 0;
}

.debug-log-type {
    min-width: 60px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.debug-log-type.log {
    color: #5865F2;
}

.debug-log-type.info {
    color: #3BA55C;
}

.debug-log-type.warn {
    color: #FAA61A;
}

.debug-log-type.error {
    color: #ED4245;
}

.debug-log-type.debug {
    color: #9B59B6;
}

.debug-log-message {
    flex: 1;
    color: var(--text-2);
    word-break: break-word;
    line-height: 1.4;
}

.debug-log-details {
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-1);
    border-radius: 4px;
    color: var(--text-3);
    font-size: 0.75rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

.debug-console-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-3);
}

.debug-filter-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-1);
    border-bottom: 1.5px solid var(--border);
}

.debug-filter-btn {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.debug-filter-btn:hover {
    background: var(--bg-2);
}

.debug-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Scrollbar for debug console */
.debug-console-body::-webkit-scrollbar {
    width: 8px;
}

.debug-console-body::-webkit-scrollbar-track {
    background: var(--bg-1);
}

.debug-console-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.debug-console-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}

/* Animation for new entries */
@keyframes debugEntrySlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.debug-log-entry.new {
    animation: debugEntrySlide 0.2s ease-out;
}