.fullcalendar-container {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

#calendar {
  max-width: 100%;
  margin: 0 auto;
}

.fc-header-toolbar {
  margin-bottom: 1.5em;
  align-items: center;
  direction: ltr;
}

.fc-toolbar-chunk:first-child {
  flex: 1;
  display: flex !important;
  align-items: center !important;
}

.fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation arrows */
.fc-prev-button,
.fc-next-button {
  background: none !important;
  border: none !important;
  color: #000 !important;
  font-size: 20px !important;
  padding: 4px 8px !important;
}

.fc-prev-button {
  margin-right: 4px !important;
}

.fc-prev-button:hover,
.fc-next-button:hover {
  background: none !important;
  color: #666 !important;
}

/* Month and year display */
.fc-toolbar-title {
  font-size: 1.2em !important;
  font-weight: normal !important;
  display: inline-block !important;
  margin-right: 8px !important;
  text-transform: capitalize !important;
  color: #333 !important;
  vertical-align: middle !important;
  order: -1 !important;
}

/* Year dropdown button */
.fc-yearDropdown-button {
  background: none !important;
  border: none !important;
  padding: 2px 16px 2px 4px !important;
  position: relative;
  color: #000 !important;
  font-size: 1.2em !important;
}

.fc-yearDropdown-button:after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #000;
}

/* Calendar grid */
.fc-daygrid-day-number {
  padding: 8px;
}

.fc-col-header-cell {
  padding: 8px 0;
  text-transform: uppercase;
}

.fc-col-header-cell-cushion {
  font-weight: normal;
}

/* Hide all event content in date cells */
.fc-daygrid-event-harness {
  display: none !important;
}

.fc-event {
  cursor: pointer;
  padding: 2px 4px;
}

/* Year select styling */
.fc-yearSelect-button {
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
  background: none !important;
  border: none !important;
  display: inline-block !important;
  min-width: 70px !important;
}



/* Year dropdown container */
.year-dropdown-container {
  position: absolute;
  top: -45px;
  left: 0;
  z-index: 1000;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Year display */
.year-display {
  border: 2px solid #0088cc;
  border-radius: 4px;
  padding: 4px 12px;
  background-color: #fff;
  text-align: center;
  font-size: 1em;
}



/* Year dropdown select styling */
.calendar-year-select {
  padding: 4px 12px;
  border: 2px solid #0088cc;
  border-radius: 4px;
  background: white;
  font-size: 1em;
  cursor: pointer;
  outline: none;
  text-align: center;
  min-width: 70px;
  color: #333;
  font-weight: normal;
  height: auto;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  margin-right: 8px;
  display: inline-block;
}

.calendar-year-select option {
  padding: 4px;
  text-align: center;
}

/* Event popup styling */
.event-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 300px;
  max-width: 500px;
}

.event-popup h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.event-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-popup li {
  margin: 8px 0;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #007cba;
}

.event-popup li:before {
  content: "•";
  color: #007cba;
  font-weight: bold;
  margin-right: 8px;
}

.event-popup a {
  color: #007cba;
  text-decoration: none;
  font-weight: 500;
}

.event-popup a:hover {
  text-decoration: underline;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

/* Date cells with events styling */
.fc-day-has-events {
  background-color: #f0f8ff !important;
  cursor: pointer !important;
}

.fc-day-has-events:hover {
  background-color: #e6f3ff !important;
}
