/* ======================
   Debug Panel Styles
   ====================== */

/* Main app container layout */
.app-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Debug Panel */
.debug-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 300px;
    background: #1a1a1a;
    color: #f0f0f0;
    box-shadow: -4px 0 12px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

/* Debug Header */
.debug-header {
    background: #2a2a2a;
    padding: 16px;
    border-bottom: 1px solid #3a3a3a;
}

.debug-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Debug Content */
.debug-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.debug-content::-webkit-scrollbar {
    width: 6px;
}

.debug-content::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.debug-content::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 3px;
}

/* Debug Sections */
.debug-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3a3a3a;
}

.debug-section:last-child {
    border-bottom: none;
}

.debug-section h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #6F7B55;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Model Selector */
#model-selector {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#model-selector:hover {
    background: #3a3a3a;
}

#model-selector:focus {
    outline: none;
    border-color: #6F7B55;
}

/* Stats Items */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.stat-label {
    color: #999;
    font-weight: 500;
}

.stat-value {
    color: #fff;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
}

.stat-value.cost {
    color: #4caf50;
    font-weight: 600;
}

.stat-value.error {
    color: #ff5252;
}

/* Delete button */
.delete-btn {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: rgba(255, 82, 82, 0.1);
    transform: scale(1.1);
}

/* Actions Log */
.actions-log {
    max-height: 200px;
    overflow-y: auto;
    background: #2a2a2a;
    border-radius: 4px;
    padding: 8px;
}

.actions-log::-webkit-scrollbar {
    width: 4px;
}

.actions-log::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 2px;
}

.log-item {
    font-size: 11px;
    margin-bottom: 6px;
    padding: 4px 6px;
    background: #1a1a1a;
    border-radius: 3px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.log-item .log-time {
    color: #666;
    margin-right: 8px;
}

.log-item .log-action {
    color: #6F7B55;
    font-weight: 500;
}

.log-item .log-detail {
    color: #999;
    font-size: 10px;
    display: block;
    margin-top: 2px;
}

.log-empty {
    text-align: center;
    color: #666;
    font-size: 12px;
    font-style: italic;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .debug-panel {
        width: 260px;
    }
}

@media (max-width: 768px) {
    /* Hide debug panel on mobile */
    .debug-panel {
        display: none;
    }
    
    .app-container {
        display: block;
    }
}

/* Chat container stays centered regardless of debug panel */
@media (min-width: 769px) {
    .chat-container {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
}