:root {
    --bg-dark: #050505;
    --card-bg: #0f0f0f;
    --border: #222;
    --text-primary: #fff;
    --text-secondary: #888;
    --accent: #FF3366; 
    --success: #00ff66;
    --code-bg: #111;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
header {
    height: 60px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.brand { font-weight: 900; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; margin-left: 20px; font-size: 14px; transition: 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn { background: #fff; color: #000; padding: 6px 14px; border-radius: 4px; font-weight: 600; }

/* Main Layout */
.layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    border-right: 1px solid var(--border);
    background: #0a0a0a;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    padding: 10px 24px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.sidebar-item:hover { color: #fff; background: rgba(255,255,255,0.03); }
.sidebar-item.active { color: var(--accent); background: rgba(255, 51, 102, 0.05); border-right: 2px solid var(--accent); }
.sidebar-header {
    font-size: 11px; text-transform: uppercase; color: #555; font-weight: 700; 
    padding: 20px 24px 8px; letter-spacing: 1px;
}

/* Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-dark);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Console/Playground */
.console-wrapper {
    display: flex;
    flex: 1;
    height: 100%;
}

.request-panel {
    flex: 1;
    padding: 30px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.response-panel {
    width: 45%;
    background: #080808;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Elements */
.input-group { margin-bottom: 24px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #ccc; }
.input-field {
    width: 100%;
    background: #151515;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    transition: 0.2s;
}
.input-field:focus { outline: none; border-color: var(--accent); }

.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 8px;
}
.get { background: rgba(0, 255, 100, 0.1); color: #00ff66; border: 1px solid rgba(0, 255, 100, 0.2); }
.post { background: rgba(255, 200, 0, 0.1); color: #ffcc00; border: 1px solid rgba(255, 200, 0, 0.2); }

.btn-execute {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-execute:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3); }

/* Code Viewer */
#response-viewer {
    flex: 1;
    padding: 20px;
    overflow: auto;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #a9b7c6;
    line-height: 1.5;
}
.string { color: #6a8759; }
.number { color: #6897bb; }
.boolean { color: #cc7832; }
.null { color: #cc7832; }
.key { color: #9876aa; }

.status-line {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    margin-right: 15px;
}
.status-200 { color: var(--success); }
.status-error { color: var(--accent); }

/* Dashboard View (Hidden by default) */
#view-dashboard { display: none; padding: 40px; }
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.stat-val { font-size: 32px; font-weight: 800; margin: 10px 0; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

.api-key-box {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
