/* Global styles */
:root {
  --color-brand: #002856;
  --color-accent: #b68400;
  --color-bg: #f5f5f5;
  --color-text: #333;
  --color-surface: #fff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 1px 8px rgba(0,0,0,.08);
  --radius-sm: 6px;
  --radius-md: 8px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5em;
  padding: 1em;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.day-header {
  font-weight: bold;
  padding: 0.5em;
  text-align: center;
  background: var(--color-brand);
  color: white;
  border-radius: var(--radius-sm);
}

.day {
  padding: 0.5em;
  min-height: 80px;
  background: var(--color-surface);
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.day:hover {
  background: #f8f8f8;
  box-shadow: var(--shadow-sm);
}

.day.previous-month {
  background: #f5f5f5;
  color: #999;
  cursor: default;
}

/* Header & Nav */
.site-header {
  background: var(--color-brand);
  color: white;
  padding: 1rem;
  text-align: center;
}

.site-header img {
  margin: 0 auto;
  display: block;
}

.site-header h1 {
  margin: 0.5rem 0;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  background: var(--color-accent);
}

/* Layout */
.main--wide {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  text-align: center;
  background: var(--color-brand);
  color: white;
  margin-top: 2rem;
  padding: 1rem;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-brand);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateX(150%);
  transition: transform 0.3s ease-in-out;
  z-index: 2000;
}

.notification.show {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 640px) {
  .main--wide {
    margin: 0.5rem;
    padding: 0.75rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .nav-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
  }

  .site-header {
    padding: 0.75rem 0.5rem;
  }

  .site-header img {
    height: 60px !important;
  }

  .site-header h1 {
    font-size: 1.5rem;
  }

  .calendar-grid {
    gap: 0.25rem !important;
  }

  .day {
    padding: 0.5rem !important;
    min-height: 60px !important;
    font-size: 0.9rem;
  }

  .day-header {
    padding: 0.4rem !important;
    font-size: 0.9rem;
  }

  .notification {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}