#calendar {
  background-color: #f9f9f9;
  border-radius: 6px;
  height: 100%;
  width: 100%;
  min-height: 600px;
}

.fc-event-title-container {
    color: #000000;
    background-color: #eaaa02;
    border:none
}

#calendar button {
    color: #ffffff;
    background-color:#1a1a1a;
}

.fc-scrollgrid-sync-table {
    width:100%;
}

.fc-daygrid-dot-event .fc-event-title{
    font-weight: normal;
}

.fc-daygrid-event-dot{
    border: calc(var(--fc-daygrid-event-dot-width, 8px) / 2) solid var(--fc-event-border-color, #eaaa02);
}

#completeEventBtn {
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s;
  margin:0;
}

#completeEventBtn:hover {
  background-color: #31a46e;
}

.fc .fc-daygrid-day.fc-day-today{
  background-color: #ffb9001f;
}

#calendar thead {
  background-color:#1a1a1a;
  color:#ffffff;
}

.fc .fc-button-primary {
  border-color:#1a1a1a !important;
}

.fc .fc-button:disabled {
  background-color: #eaaa02 !important;
  color: #000000 !important;
  border-color:  #eaaa02 !important;
  opacity: 1 !important;
}

.fc .fc-scrollgrid-liquid {
  background-color: #ffffff;
} 



textarea#eventDescription {
  height:150px;
}

.fc-event.google-event {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #000000 !important;
}

.fc-event.user-event {
  background-color: #31a46e !important;
  border-color: #31a46e !important;
  color: #ffffff !important;
}

.fc-daygrid-dot-event.user-event .fc-daygrid-event-dot {
  border: calc(var(--fc-daygrid-event-dot-width, 8px) / 2) solid var(--fc-event-border-color, #ffffff) !important;
}

.event-completed {
  opacity: 0.3 !important;
}



.mini-modal-content p {
  margin-bottom: 10px;
  font-size: 1.1em;
  text-align: center;
}

.fc-event.google-event:hover,
.fc-event.google-event:focus {
  background-color: #e2e2e2 !important;
  border-color: #d0d0d0 !important;
  cursor: pointer;
}

.user-event .fc-event-title-container {
  background-color: #31a46e;
}

p#miniModalEventTitle {
  color: #000000;
  font-weight: normal !important;
}

.fc-listWeek-view .user-event {
  background-color: transparent !important;
  color: #000000 !important;
}

.fc-listWeek-view .fc-list-event.user-event {
  --fc-event-border-color: #31a46e; 
}

.fc-listWeek-view .fc-list-event:not(.user-event) {
  --fc-event-border-color: #eaaa02;
}

.fc-timeGridWeek-view .fc-event-time {
  display: none !important;
}

.fc-timeGridWeek-view .fc-event-title.fc-sticky {
  color: #ffffff !important;
}

.fc-v-event {
  border: 1px solid #eaaa02;
  background-color: #eaaa02;
}

.fc-theme-standard .fc-list-day-cushion {
  background-color: #1a1a1a;
  color: #ffffff;
  font-weight: normal;
}

html, body {
  height: 100%;
}

#miniCompleteBtn {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s;
  margin:0;
  width: 100%;
  height: 42px;
}

#miniCompleteBtn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: none;
  border: 6px solid #00ff88;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

#miniCompleteBtn.pulse::after {
  animation: ringPulse 0.4s ease-out;
}

@keyframes ringPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-content {
  background: #fefefe;
  padding: 40px 30px;
  border-radius: 8px;
  max-width: 95vw;
  width: 80%;
  min-width: 600px;
  height: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #101010;
}

.modal label{
  font-weight: 300;
}

.modal-title {
  height: 7%;
}

.modal-title h3 {
  color:#101010;
  font-weight: normal;
  font-size: 1.4em;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.modal-top-fields{
  height: 13%;
  display: flex;
  gap: 20px;
}

.modal-text-field {
  height: 50%;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end !important;
  margin-top: 14px;
  height: 10%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.modal-buttons .delete-button {
  margin-right: auto;
}

.modal-buttons .delete-button:hover {
  background-color: #d10000;
  transition: background-color 0.2s ease;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  padding: 8px;
  font-size: 14px;
}

.modal-buttons button:hover {
  background-color: #666;
}

.modal-content label {
  margin-top: 14px;
  font-size: 18px;
  color: #000000;
  display: block;
}

.modal-top-fields .field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-top-fields label {
  margin-top: 14px;
  font-size: 18px;
  color: #000000;
  display: block;
}

.modal-top-fields input,
.modal-top-fields select {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  color: black;
}



.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.mini-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: white;
  padding: 10px 10px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

  .eventDateRange {
    display: flex;
    gap: 20px; /* adjust spacing between the two fields */
    align-items: flex-start;
  }

  .eventDates {
    display: flex;
    flex-direction: column;
    width: 50%;
  }

  .tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  background: #ccc;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  color: #000;
  font-weight: bold;
}

.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* position above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  font-weight: normal;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}
