.calendar-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px 0;
}

.fc-event {
  border: none;
  padding: 2px 5px;
  margin: 2px 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.fc-event:hover {
  transform: scale(1.02);
}

.event-popup {
  display: none;
  position: fixed;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 250px;
  max-width: 400px;
}

.event-popup h3 {
  color: #007bff;
  margin-bottom: 15px;
}

.event-popup-date {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.event-popup-description {
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.close-popup:hover {
  color: #000;
}

.fc-toolbar h2 {
  font-size: 1.8em;
  color: #007bff;
}

.fc-button {
  background: #007bff !important;
  border-color: #0056b3 !important;
  color: white !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.fc-button:hover {
  background: #0056b3 !important;
}

.event-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.event-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 500px;
  width: 90%;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.event-popup {
  position: fixed;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 250px;
  max-width: 400px;
}

.event-popup.hover {
  position: absolute;
  transform: none !important;
}

.event-tooltip {
  display: none;
  position: absolute;
  background: white;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  max-width: 300px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  animation: fadeInTooltip 0.2s ease-in-out;
}

.tooltip-header {
  color: #007bff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.tooltip-date {
  color: #666;
  margin-bottom: 8px;
  font-size: 13px;
}

.tooltip-date i {
  margin-right: 5px;
  color: #007bff;
}

.tooltip-description {
  line-height: 1.4;
  color: #333;
}

.fc-hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.fc-view-harness {
  max-height: 53vh !important;
}

@keyframes fadeInTooltip {
  from {
      opacity: 0;
      transform: translateY(5px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .calendar-container {
      padding: 10px !important;
  }
  .fc-toolbar h2 {
      font-size: 1.2em !important;
  }
  .fc-button {
      font-size: 0.8em !important;
      padding: 5px 10px !important;
  }
  .fc-daygrid-event {
      font-size: 0.8em !important;
      padding: 2px !important;
  }
  .fc-view-harness {
    height: 50vh !important;
    max-height: 50vh !important;
  }
}

@media (max-width: 768px) {
  .event-tooltip {
      display: none !important;
  }
  .fc-today-button {
      display: none !important;
  }
}