:root {
    --bg-dark: #0f1117;
    --bg-card: #1c1f2e;
    --bg-card-hover: #25293d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-purple: #a855f7;
    --accent-purple-hover: #9333ea;
    --accent-green: #34d399;
    --accent-blue: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
}

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

.app-container {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.logo span {
    color: var(--accent-purple);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(168, 85, 247, 0.1);
    color: var(--text-main);
}

.nav-menu a.active {
    border-left: 4px solid var(--accent-purple);
}

.agent-status-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.status-indicator.online { background: var(--accent-green); color: var(--accent-green); }

.agent-status-card h4 { font-size: 0.9rem; }
.agent-status-card p { font-size: 0.8rem; color: var(--accent-green); }

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

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

.avatar {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent-purple);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.stat-icon.green { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

.stat-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-info h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.trend { font-size: 0.8rem; color: var(--text-muted); }
.trend.positive { color: var(--accent-green); }

/* Main Cards */
.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.splitter-section {
    grid-column: span 2;
}

.activity-section {
    grid-column: span 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.badge.primary {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Splitter UI */
.description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.hardware-visual {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.gpu-base {
    display: flex;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    gap: 4px;
}

.partition {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.partition span { font-weight: 600; margin-bottom: 0.3rem; }
.partition small { font-size: 0.8rem; opacity: 0.8; }

.partition.p1 { background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); }
.partition.p2 { background: var(--bg-card-hover); border: 2px dashed rgba(255,255,255,0.2); }

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.slider {
    width: 100%;
    accent-color: var(--accent-purple);
    height: 6px;
    border-radius: 5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dropdown {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.btn {
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--bg-dark);
}

.activity-details h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.activity-details p { font-size: 0.8rem; color: var(--text-muted); }

.activity-meta {
    margin-left: auto;
    text-align: right;
}

.status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.status.running { background: rgba(52, 211, 153, 0.2); color: var(--accent-green); }
.status.completed { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.activity-meta .time { display: block; font-size: 0.8rem; color: var(--text-muted); }
