#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

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

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
/* ExileGuard Dashboard Styles - Custom CSS supplement to MUI theming */

:root {
  /* Colors from theme for CSS custom properties access */
  --primary-bg: #121212;
  --secondary-bg: #1E1E1E;
  --tertiary-bg: #2D2D2D;
  --primary-red: #E31B23;
  --dark-red: #C41017;
  --light-red: #FF3B42;
  --blue-accent: #2874A6;
  --blue-accent-light: #3498DB;
  --success-green: #27AE60;
  --warning-amber: #F39C12;
  --white-text: #FFFFFF;
  --light-gray: #CCCCCC;
  --medium-gray: #888888;
  --divider-gray: #333333;
}

/* Global styles */
body {
  margin: 0;
  padding: 0;
  background-color: var(--primary-bg);
  color: var(--white-text);
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left; /* Override Vite default styles */
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App Layout Styles */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

.scale-on-hover {
  transition: opacity 0.2s ease-out;
}

.scale-on-hover:hover {
  opacity: 0.8;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes alertPulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(227, 27, 35, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(227, 27, 35, 0); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(227, 27, 35, 0.2); }
  50% { box-shadow: 0 0 20px rgba(227, 27, 35, 0.6), 0 0 30px rgba(227, 27, 35, 0.4); }
  100% { box-shadow: 0 0 5px rgba(227, 27, 35, 0.2); }
}

@keyframes highlight {
  0% { background-color: rgba(227, 27, 35, 0); }
  50% { background-color: rgba(227, 27, 35, 0.2); }
  100% { background-color: rgba(227, 27, 35, 0); }
}

/* Data value highlight animation */
.data-update {
  animation: highlight 0.8s ease-out;
}

/* Statistics Cards */
.stat-card {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.stat-card__title {
  font-size: 1rem;
  color: var(--light-gray);
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin: 8px 0;
  line-height: 1.2;
  font-family: 'Roboto Mono', monospace;
}

.stat-card__change {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.stat-card__change--positive {
  color: var(--success-green);
}

.stat-card__change--negative {
  color: var(--light-red);
}

/* Chart Styles */
.chart-container {
  padding: 16px;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  height: 100%;
  position: relative;
}

.chart-title {
  font-size: 1rem;
  color: var(--white-text);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Custom tooltip for D3 charts */
.chart-tooltip {
  position: absolute;
  padding: 8px 12px;
  background-color: var(--tertiary-bg);
  color: var(--white-text);
  border-radius: 4px;
  pointer-events: none;
  font-size: 0.75rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 200px;
}

.chart-tooltip__label {
  font-weight: 700;
  margin-bottom: 4px;
}

.chart-tooltip__value {
  color: var(--primary-red);
  font-family: 'Roboto Mono', monospace;
}

/* Chart lines and dots */
.chart-line {
  fill: none;
  stroke-width: 2;
  transition: opacity 0.3s ease;
}

.chart-line--primary {
  stroke: var(--primary-red);
}

.chart-line--secondary {
  stroke: var(--blue-accent-light);
}

.chart-line--tertiary {
  stroke: var(--success-green);
}

.chart-dot {
  transition: r 0.2s ease-out;
}

.chart-dot:hover {
  r: 6;
}

.chart-grid line {
  stroke: var(--divider-gray);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart-axis text {
  fill: var(--light-gray);
  font-size: 0.75rem;
}

.chart-axis path {
  stroke: var(--divider-gray);
}

/* Specialized Dashboard Elements */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease-out, border 0.2s ease-out;
}

.dashboard-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--primary-red);
}

.dashboard-card__header {
  padding: 16px;
  border-bottom: 1px solid var(--divider-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.dashboard-card__content {
  padding: 16px;
}

.dashboard-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--divider-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Alert Styling */
.alert-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  transition: background-color 0.15s ease;
}

.alert-item:hover {
  background-color: var(--tertiary-bg);
}

.alert-item--critical {
  border-left: 4px solid var(--light-red);
}

.alert-item--high {
  border-left: 4px solid var(--warning-amber);
}

.alert-item--medium {
  border-left: 4px solid var(--blue-accent-light);
}

.alert-item--low {
  border-left: 4px solid var(--success-green);
}

.alert-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.alert-description {
  color: var(--light-gray);
  font-size: 0.875rem;
}

.alert-time {
  color: var(--medium-gray);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Enhanced Alert Styles */
.alert-card {
  animation: slideInUp 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-card--critical {
  animation: alertPulse 3s infinite ease-in-out;
}

.alert-card:hover {
  background-color: var(--tertiary-bg);
}

.severity-chip {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 200px 100%;
}

.alert-stats-card {
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.alert-stats-card:hover {
  background-color: var(--tertiary-bg);
}

.filter-chip {
  transition: background-color 0.2s ease-out;
}

.filter-chip:hover {
  background-color: var(--primary-red);
  color: var(--white-text);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .stat-card__value {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .chart-container {
    padding: 12px;
  }

  /* Mobile adjustments for timetables */
  .main-content {
    padding: 16px !important;
  }
}

/* Timetables specific styles */
.schedule-grid {
  display: grid;
  grid-template-columns: auto repeat(7, 1fr);
  gap: 2px;
  font-size: 0.75rem;
  overflow-x: auto;
  min-width: 600px;
}

.schedule-grid__header {
  padding: 8px 4px;
  font-weight: 600;
  text-align: center;
  color: var(--white-text);
  background-color: var(--tertiary-bg);
  border-radius: 4px;
}

.schedule-grid__hour-label {
  padding: 8px;
  text-align: right;
  font-weight: 500;
  color: var(--light-gray);
  border-radius: 4px;
  min-width: 60px;
}

.schedule-grid__hour-label--even {
  background-color: var(--tertiary-bg);
}

.schedule-grid__time-slot {
  width: 100%;
  height: 32px;
  border: 2px solid var(--divider-gray);
  border-radius: 4px;
  background-color: var(--secondary-bg);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.schedule-grid__time-slot--selected {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.schedule-grid__time-slot:hover:not(.schedule-grid__time-slot--selected) {
  background-color: var(--tertiary-bg);
  border-color: var(--light-gray);
}

.schedule-grid__checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Day control grid */
.day-controls-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.day-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background-color: var(--tertiary-bg);
  border-radius: 4px;
}

.day-control__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-text);
  min-width: 40px;
}

.day-control__button {
  padding: 4px 8px;
  font-size: 0.75rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.day-control__button:hover {
  opacity: 0.8;
}

.day-control__button--fill {
  background-color: var(--success-green);
  color: var(--white-text);
}

.day-control__button--clear {
  background-color: var(--light-red);
  color: var(--white-text);
}

/* Mobile responsiveness for schedule editor */
@media (max-width: 768px) {
  .schedule-grid {
    min-width: 500px;
    font-size: 0.7rem;
  }
  
  .schedule-grid__time-slot {
    height: 28px;
  }
  
  .day-controls-grid {
    grid-template-columns: 1fr;
  }
  
  .day-control {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .schedule-grid {
    min-width: 450px;
  }
  
  .schedule-grid__hour-label {
    min-width: 50px;
    padding: 6px;
  }
  
  .schedule-grid__header {
    padding: 6px 2px;
  }
}

/* Divine History Graph Styles */
.divine-history-graph {
  position: relative;
  height: 300px;
  width: 100%;
  padding: 0;
}

.divine-history-graph .recharts-cartesian-grid-horizontal line,
.divine-history-graph .recharts-cartesian-grid-vertical line {
  stroke: rgba(255, 255, 255, 0.1);
}

.divine-history-graph .recharts-tooltip-wrapper {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.divine-history-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.divine-history-summary__gain {
  color: var(--success-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.divine-history-summary__total {
  color: var(--light-gray);
  font-size: 0.9rem;
}:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #121212;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Custom CSS variables for consistent styling */
  --primary-red: #E31B23;
  --dark-red: #C41017;
  --light-red: #FF3B42;
  --primary-bg: #121212;
  --secondary-bg: #1E1E1E;
  --tertiary-bg: #2D2D2D;
  --white-text: #FFFFFF;
  --light-gray: #CCCCCC;
  --divider-gray: #333333;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Global animations and utilities for consistent styling across all pages */

/* Fade in animation for page transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in animation for content sections */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom in animation for cards and modals - DISABLED */
/* @keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
} */

/* Pulse animation for critical alerts */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Shimmer loading animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Utility classes */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.4s ease-out forwards;
}

.zoom-in {
  animation: zoomIn 0.3s ease-out forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

.shimmer {
  background: linear-gradient(90deg, var(--secondary-bg) 25%, var(--tertiary-bg) 50%, var(--secondary-bg) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Staggered animations for lists */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Enhanced scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--divider-gray) var(--primary-bg);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--primary-bg);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: var(--divider-gray);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--light-gray);
}

/* Focus outline consistency */
*:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection styling */
::selection {
  background: rgba(227, 27, 35, 0.3);
  color: var(--white-text);
}

::-moz-selection {
  background: rgba(227, 27, 35, 0.3);
  color: var(--white-text);
}
