/* Base styles and CSS reset */
:root {
    /* Material Design 3 Color System */
    --md-sys-color-primary: #BB86FC;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-secondary: #03DAC6;
    --md-sys-color-secondary-container: #005047;
    --md-sys-color-tertiary: #FFB74D;
    --md-sys-color-tertiary-container: #663C00;
    --md-sys-color-error: #CF6679;
    --md-sys-color-background: #121212;
    --md-sys-color-surface: #1E1E1E;
    --md-sys-color-surface-variant: #2C2C2C;
    --md-sys-color-surface-container: #242424;
    --md-sys-color-surface-container-high: #2A2A2A;
    --md-sys-color-surface-container-highest: #363636;
    --md-sys-color-on-background: #E1E1E1;
    --md-sys-color-on-surface: #E1E1E1;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-on-secondary: #00382E;
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    
    /* Elevation shadows */
    --md-sys-elevation-1: 0 1px 2px 0 rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
    --md-sys-elevation-2: 0 1px 2px 0 rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
    --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.3);
    --md-sys-elevation-4: 0 6px 10px 4px rgba(0,0,0,0.15), 0 2px 3px 0 rgba(0,0,0,0.3);
    --md-sys-elevation-5: 0 8px 12px 6px rgba(0,0,0,0.15), 0 4px 4px 0 rgba(0,0,0,0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    color: var(--md-sys-color-primary);
}

p {
    line-height: 1.5;
}

/* Links */
a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Forms */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }