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

/* Light theme (default) */
:root,
[data-theme="light"] {
  --color-background: #f0f2f5;
  --color-background-secondary: #ffffff;
  --color-background-tertiary: #e8eaf0;
  --color-text: #1a1d2e;
  --color-text-secondary: #5a6275;
  --color-text-light: #9ba3b5;
  --color-border: #d2d7e0;
  --color-border-light: #e8eaf0;
  
  --color-primary: #3d7ff5;
  --color-primary-hover: #2563d9;
  --color-success: #1aaa55;
  --color-success-hover: #148a44;
  --color-danger: #e03535;
  --color-danger-hover: #b82b2b;
  --color-warning: #f0960c;
  --color-warning-hover: #c97a09;
  
  --color-info-bg: #deeaff;
  --color-error-bg: #fde8e8;
  --color-success-bg: #e4f7ec;
  
  --shadow-light: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 3px 10px rgba(0, 0, 0, 0.10);
  --shadow-heavy: 0 6px 20px rgba(0, 0, 0, 0.13);
  
  --gradient-primary: linear-gradient(135deg, #4a6fc7 0%, #6b44a8 100%);
  --gradient-light: linear-gradient(135deg, #c470d8 0%, #e0556c 100%);
}

/* Dark theme */
[data-theme="dark"] {
  --color-background: #161820;
  --color-background-secondary: #1f2230;
  --color-background-tertiary: #272a3a;
  --color-text: #dde1f0;
  --color-text-secondary: #9aa0b8;
  --color-text-light: #606880;
  --color-border: #333751;
  --color-border-light: #272a3a;
  
  --color-primary: #5294ff;
  --color-primary-hover: #7aaeff;
  --color-success: #2ec76b;
  --color-success-hover: #4ade80;
  --color-danger: #f05454;
  --color-danger-hover: #f47878;
  --color-warning: #f5a623;
  --color-warning-hover: #f8be5c;
  
  --color-info-bg: #1a2a4a;
  --color-error-bg: #3a1e1e;
  --color-success-bg: #152a1f;
  
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.75);
  
  --gradient-primary: linear-gradient(135deg, #2d3a6e 0%, #42236b 100%);
  --gradient-light: linear-gradient(135deg, #7a3a9a 0%, #9e2f4a 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gradient-primary);
  min-height: 100vh;
  color: var(--color-text);
  transition: background 0.3s ease, color 0.3s ease;
}

#root {
  min-height: 100vh;
}

/* Calendar & clock picker icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  filter: invert(40%) sepia(60%) saturate(400%) hue-rotate(190deg) brightness(1.2);
  transition: opacity 0.15s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.8) sepia(0.3) hue-rotate(190deg);
  opacity: 0.7;
}

