/* Debug Panel Styles */

.debug-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.2s;
}

.debug-toggle:hover {
    transform: scale(1.1);
}

.debug-icon {
    font-size: 1.25rem;
}

.debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: #1e293b;
    color: #e2e8f0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.debug-panel.hidden {
    transform: translateY(100%);
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.debug-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #38bdf8;
}

.debug-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
}

.debug-close:hover {
    color: white;
}

.debug-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.debug-section {
    margin-bottom: 1.5rem;
}

.debug-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #334155;
}

.debug-section pre {
    background: #0f172a;
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Method Call List */
.method-item {
    background: #0f172a;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    border-left: 3px solid #38bdf8;
}

.method-item.has-error {
    border-left-color: #ef4444;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.method-name {
    color: #38bdf8;
    font-weight: 500;
}

.method-class {
    color: #a78bfa;
}

.method-time {
    color: #22c55e;
    font-size: 0.75rem;
}

.method-args {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.method-result {
    color: #fbbf24;
    font-size: 0.8rem;
}

.method-error {
    color: #ef4444;
    font-size: 0.8rem;
}

/* Query List */
.query-item {
    background: #0f172a;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.query-time {
    color: #22c55e;
    font-size: 0.75rem;
}

.query-sql {
    color: #e2e8f0;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.query-params {
    color: #fbbf24;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Summary Stats */
.debug-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.debug-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-stat-value {
    font-weight: 600;
    color: #38bdf8;
}

.debug-stat-label {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Empty State */
.debug-empty {
    color: #64748b;
    font-style: italic;
    padding: 0.5rem;
}
