/* Calendar view styles */

.view-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 3px 5px;
    outline: 3px solid black;
    box-shadow: 3px 6px 6px black;
    background-color: white;
}

.calendar-navigation h2 {
  margin: 0;
  font-size: clamp(1rem, calc(2vw + 0.5rem), 1.5rem);
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.calendar-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 3px solid var(--text);
  border-radius: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 50px repeat(auto-fit, minmax(50px, 1fr));
  min-width: 80vw;
  background-color: var(--background);
}

.calendar-header {
  position: sticky;
  top: 0;
  background-color: var(--primary);
  color: var(--background);
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid var(--text);
  z-index: 10;
}

.calendar-header.time-column {
  background-color: var(--accent);
}

.time-slot {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem;
  min-height: 60px;
  position: relative;
  background-color: var(--background);
  overflow: visible;
}

.time-slot.time-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  position: sticky;
  left: 0;
  z-index: 5;
}

.calendar-event {
  position: absolute;
  left: 2px;
  right: 2px;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  border: 3px solid;
  background-color: var(--background);
  color: var(--text);
  text-decoration: none;
  display: block;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-event:hover {
  transform: scale(1.02);
  z-index: 100;
}

.calendar-event-title {
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.calendar-event-time {
  font-size: 0.5rem;
  opacity: 0.8;
}

/* Hide calendar by default */
.calendar-view {
  display: none;
}

.calendar-view.active {
  display: block;
}

.schedule-list-view.active {
  display: block;
}

.schedule-list-view {
  display: none;
}
