/* =============================================================================
   Base Styles
   CSS variables, reset, typography, utilities
   ============================================================================= */

/* Smart Home Dashboard Styles */

/* Dark Theme (default) */
:root,
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-hover-active: rgba(255, 255, 255, 0.1);
    --bg-subtle: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #a0a0a0;
    --accent: #e94560;
    --accent-green: #00d26a;
    --accent-yellow: #ffc107;
    --accent-blue: #0096ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-muted: rgba(255, 255, 255, 0.2);
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #e4e7eb;
    --bg-card: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-hover-active: rgba(0, 0, 0, 0.04);
    --bg-subtle: rgba(0, 0, 0, 0.02);
    --text-primary: #1a1a2e;
    --text-secondary: #596878;
    --text-muted: #666666;
    --accent: #e94560;
    --accent-green: #16a34a;
    --accent-yellow: #d97706;
    --accent-blue: #2563eb;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-muted: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Utility classes */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}
/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.updating {
    animation: pulse 1s infinite;
}
