:root {
    --bg-color: #05080e;
    --panel-bg: rgba(13, 17, 30, 0.7);
    --border-color: rgba(0, 255, 204, 0.15);
    --accent-primary: #00ffcc;
    --accent-secondary: #00a2ff;
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 162, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 204, 0.05), transparent 25%);
    background-size: cover;
    color: var(--text-main);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard {
    width: 96vw;
    height: 94vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

header p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    margin-top: 5px;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
    background: rgba(0, 255, 204, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0,255,204,0.2);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary);
    animation: pulse 2s infinite;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
    height: 100%;
    overflow: hidden;
}

.panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.panel h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    border-bottom: 1px solid rgba(0, 162, 255, 0.2);
    padding-bottom: 1rem;
}

.api-endpoint {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.api-endpoint:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 204, 0.03);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.08);
}

.api-endpoint h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-endpoint p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem 0;
    line-height: 1.4;
}

button {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 204, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

button:hover {
    background: rgba(0, 255, 204, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

button:active {
    transform: scale(0.98);
}

.response-box {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a7f3d0;
    background: #020617;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(167, 243, 208, 0.1);
    white-space: pre-wrap;
    display: none;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

.terminal {
    background: #02040a;
    border-radius: 12px;
    flex-grow: 1;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.02);
}

.log-entry { margin: 0; line-height: 1.5; opacity: 0; animation: slideIn 0.3s forwards; }
.log-time { color: var(--text-muted); margin-right: 0.75rem; font-size: 0.8rem; }
.log-info { color: #e2e8f0; }
.log-success { color: var(--accent-primary); text-shadow: 0 0 8px rgba(0, 255, 204, 0.4); }
.log-warning { color: #fbbf24; }

.blink { animation: blink 1.2s step-end infinite; }

.metric {
    margin-bottom: 2rem;
}
.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-primary);
}

.font-mono { font-family: var(--font-mono); }

.chart-container {
    flex-grow: 1;
    position: relative;
    min-height: 220px;
    margin-top: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar styles */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 204, 0.3); }
