body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #1a1a1a;
  color: white;
  margin: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.calendar-container {
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.month-year {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.nav-btn {
  background: #4a4a4a;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  min-width: 60px;
}

.nav-btn:hover {
  background: #5a5a5a;
}

.selector-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-group label {
  font-size: 0.9rem;
  color: #ccc;
  white-space: nowrap;
}

.selector {
  background: #4a4a4a;
  border: 1px solid #5a5a5a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  min-width: 140px;
  outline: none;
}

.selector:hover {
  background: #5a5a5a;
  border-color: #6a6a6a;
}

.selector:focus {
  background: #5a5a5a;
  border-color: #7a7a7a;
  box-shadow: 0 0 0 2px rgba(74, 74, 74, 0.3);
}

.selector option {
  background: #4a4a4a;
  color: white;
}

@media (max-width: 480px) {
  .selector-controls {
    flex-direction: column;
    gap: 10px;
  }

  .selector-group {
    justify-content: center;
  }

  .selector {
    min-width: 180px;
  }
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 50px;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.day-number {
  font-size: 1rem;
  margin-bottom: 2px;
}

.day-text {
  font-size: 0.6rem;
  font-weight: normal;
  text-align: center;
}


/* CSS Custom Properties for Workdays Theme */
:root {
  --color-fm: #ef4444;
  --color-em: #ef4444;
  --color-n: #ef4444;
  --color-l: #4ade80;
  --color-text: white;
}

/*
* Shift Classes
* These matches the lower case of the shift config values but lower case.
* FM = Förmiddag
* EM = Eftermiddag
* N = Natt
* L = Ledig
*/
.fm {
  background-color: var(--color-fm);
  color: var(--color-text);
}

.em {
  background-color: var(--color-em);
  color: var(--color-text);
}

.n {
  background-color: var(--color-n);
  color: var(--color-text);
}

.l {
  background-color: var(--color-l);
  color: var(--color-text);
}

.other-month {
  opacity: 0.3;
}

.today {
  box-shadow: 0 0 0 2px #fbbf24;
}

/* Mobile-specific styles */
@media (max-width: 480px) {
  body {
    padding: 5px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .calendar-container {
    padding: 10px;
    border-radius: 8px;
  }

  .month-year {
    font-size: 1.3rem;
  }

  .nav-btn {
    padding: 6px 8px;
    font-size: 0.7rem;
    min-width: 50px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 40px;
    border-radius: 4px;
  }

  .day-number {
    font-size: 0.9rem;
    margin-bottom: 1px;
  }

  .day-text {
    font-size: 0.5rem;
  }

  .weekdays {
    gap: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
}
