@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #07070a;
    --card-bg: rgba(20, 20, 25, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #3182f6;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-blur: blur(25px);
}

body, html {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, .premium-font { font-family: 'Outfit', sans-serif; }

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-container {
    display: grid;
    grid-template-columns: 400px 1fr 400px;
    grid-template-rows: 80px 1fr 300px;
    height: 100vh;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.main-view {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: hidden;
}

.bottom-view {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Neon Stat Cards */
.neon-card {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.neon-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.card-purple { 
    background: rgba(168, 85, 247, 0.1); 
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}
.card-green { 
    background: rgba(34, 197, 94, 0.1); 
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}
.card-blue { 
    background: rgba(49, 130, 246, 0.1); 
    border-color: rgba(49, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(49, 130, 246, 0.1);
}
.card-orange { 
    background: rgba(245, 158, 11, 0.1); 
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.neon-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.neon-value {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit';
    margin-top: 10px;
}

.neon-sub { font-size: 12px; font-weight: 600; margin-top: 5px; }

/* AI Thought Feed */
.thought-feed {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.thought-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--accent-blue);
    position: relative;
}

.thought-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.thought-time { font-family: 'Space Mono'; font-size: 11px; opacity: 0.5; display: block; margin-bottom: 4px; }
.thought-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Dashboard Widgets */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* Table Styling */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px; color: var(--text-secondary); font-size: 11px; text-transform: uppercase; }
td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

.terminal-window {
    background: #000;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #4ade80;
    overflow-y: auto;
    height: 100%;
    line-height: 1.6;
}

.log-line { margin-bottom: 4px; opacity: 0.9; }

@media (max-width: 1400px) {
    .app-container { grid-template-columns: 320px 1fr 320px; }
}
