/* Events Calendar Styling */
#events-calendar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 20px 0 !important;
}

.calendar-container {
  max-width: 1200px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

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

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.calendar-nav button:hover {
  background: #45a049;
}

.calendar-nav h4 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
}

.calendar-day {
  background: white;
  min-height: 120px;
  padding: 8px;
  position: relative;
  border: 1px solid #eee;
  overflow-y: auto;
}

.calendar-day.other-month {
  background: #f9f9f9;
  color: #999;
}

.calendar-day.today {
  background: #e3f2fd;
  border: 2px solid #2196F3;
}

.day-number {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

.event-item {
  color: white;
  padding: 2px 6px;
  margin: 2px 0;
  border-radius: 3px;
  font-size: 10px;
  display: block;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.2s;
}

.event-item:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Category colors matching the legend */
.event-item.music {
  background: #ff9999;
}

.event-item.art-exhibition {
  background: #99ccff;
}

.event-item.theatre-performance {
  background: #ffcc99;
}

.event-item.dance {
  background: #cc99ff;
}

.event-item.film-cinema {
  background: #66cc99;
}

.event-item.poetry-literature {
  background: #ffccff;
}

.event-item.festival-community {
  background: #cccc66;
}

.event-item.education-art {
  background: #99ccff;
}

.weekday-header {
  background: #2196F3;
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* Responsive design */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
    padding: 4px;
  }
  
  .event-item {
    font-size: 9px;
    padding: 1px 4px;
  }
  
  .legend {
    flex-direction: column;
    align-items: center;
  }
  
  .legend-item {
    margin: 2px 0;
  }
  
  .calendar-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .calendar-nav h4 {
    font-size: 1.2em;
  }
} 