/**
 * Base Styles - Material Design
 * Global resets, typography, and foundational styles
 */

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
    background: #121212;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Design Elevation System */
.elevation-0 {
    box-shadow: none;
}

.elevation-1 {
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),
                0px 1px 1px 0px rgba(0,0,0,0.14),
                0px 1px 3px 0px rgba(0,0,0,0.12);
}

.elevation-2 {
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),
                0px 2px 2px 0px rgba(0,0,0,0.14),
                0px 1px 5px 0px rgba(0,0,0,0.12);
}

.elevation-4 {
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),
                0px 4px 5px 0px rgba(0,0,0,0.14),
                0px 1px 10px 0px rgba(0,0,0,0.12);
}

.elevation-8 {
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),
                0px 8px 10px 1px rgba(0,0,0,0.14),
                0px 3px 14px 2px rgba(0,0,0,0.12);
}

.elevation-16 {
    box-shadow: 0px 8px 10px -5px rgba(0,0,0,0.2),
                0px 16px 24px 2px rgba(0,0,0,0.14),
                0px 6px 30px 5px rgba(0,0,0,0.12);
}

/* Material Design Colors */
:root {
    --md-primary: #00BCD4;
    --md-primary-dark: #00ACC1;
    --md-secondary: #6200EA;
    --md-secondary-dark: #5200C6;
    --md-error: #ff3b30;
    --md-success: #34a853;
    --md-warning: #fbbc05;
    --md-info: #4285f4;

    /* Surface colors */
    --md-surface: #121212;
    --md-surface-1: rgba(255,255,255,0.05);
    --md-surface-2: rgba(255,255,255,0.07);
    --md-surface-3: rgba(255,255,255,0.08);
    --md-surface-4: rgba(255,255,255,0.09);
    --md-surface-5: rgba(255,255,255,0.11);

    /* Text colors */
    --md-text-high: rgba(255,255,255,0.87);
    --md-text-medium: rgba(255,255,255,0.60);
    --md-text-disabled: rgba(255,255,255,0.38);

    /* Border colors */
    --md-divider: rgba(255,255,255,0.12);
}

/* Material Design Transitions */
.md-transition {
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.md-transition-fast {
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.md-transition-slow {
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Material Design Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Material Design ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
