:root {
    --bg-color: #0f172a;
    --panel-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: #334155;
    
    --status-online: #10b981;
    --status-offline: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--panel-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.brand svg {
    color: var(--accent-color);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.status-badge .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-offline);
    box-shadow: 0 0 10px var(--status-offline);
}

.status-badge.online {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.status-badge.online .indicator {
    background: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
}

main {
    padding: 2rem;
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-header h2 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trackpad {
    width: 100%;
    height: 400px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    touch-action: none;
}

.trackpad:focus {
    border-color: var(--accent-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.trackpad .instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    color: var(--accent-color);
    font-weight: 600;
    font-family: monospace;
    font-size: 1rem;
    min-width: 2.5rem;
}

.trackpad:focus .instruction {
    opacity: 0.1;
}

.controls-hint {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.key-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

kbd {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--text-primary);
    box-shadow: 0 2px 0 var(--border-color);
}

.action-btn { background: #3b82f6; color: white; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Inter', sans-serif; margin-bottom: 12px; width: 100%; }
.action-btn:hover { background: #2563eb; }
.action-btn:active { background: #1d4ed8; }
