/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-secondary: #808080;
    --color-ecg-grid: #1a1a1a;
    --color-ecg-grid-minor: #0a0a0a;
    --color-ecg-trace: #00ff41;
    --color-zone-1: #404040;
    --color-zone-2: #0066ff;
    --color-zone-3: #00cc00;
    --color-zone-4: #ff9900;
    --color-zone-5: #ff0000;
    --color-error: #ff3333;
    --color-warning: #ffaa00;
    --color-success: #00cc00;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    position: relative;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Prevent text selection and context menus */
body {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}