.active-calendar {
  background-color: #007EA71A;
  color: #003459;
}

.active-calendar-modal {
  background-color: #015794;
  color: #003459;
}

.active-calendar-modal {
  background-color: #015794;
  color: #003459;
}

/* Calendar Styles */
.hover-not-active:hover:not(.active) {
  background-color: #f1f3f4;
}

.hover-not-active-modal:hover:not(.active) {
  background-color: #015794;;
}

/* Day View */
.dv-header {
  display: grid;
  grid-template-columns: 60px 1fr;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
  border-bottom: 1px solid #dadce0;
}

.dv-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  position: relative;
}

.dv-header-spacer {
  border-right: 1px solid #dadce0;
  height: 60px;
}

.dv-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 8px;
  color: #70757a;
  position: relative;
}
.dv-day-name {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.dv-day-number {
  font-size: 26px;
  font-weight: 400;
  margin-top: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #1a73e8;
  color: #fff;
}

.dv-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  position: relative;
}

.dv-time-column {
  grid-column: 1;
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #fff;
}

.dv-time-label {
    height: 48px;
    padding-right: 8px;
    text-align: right;
    font-size: 10px;
    color: #70757a;
    position: relative;
    /* top: -8px; */
    top: 15px;
  }

  .dv-time-label-mini {
    height: 24px;
    padding-right: 8px;
    text-align: right;
    font-size: 10px;
    color: #70757a;
    position: relative;
    top: 2px;
  }

.dv-day-column {
  grid-column: 2;
  grid-row: 1 / span 24;
  background-color: rgba(26, 115, 232, 0.05);
  position: relative;
}

.dv-hour-row {
  border-bottom: 1px solid #dadce0;
  grid-column: 1 / -1;
  height: 48px;
}

.dv-half-hour {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #dadce0;
  top: 50%;
  opacity: 0.5;
}

.dv-quarter-hour {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #dadce0;
  opacity: 0.2;
}

.dv-quarter-hour-1 {
  top: 25%;
}

.dv-quarter-hour-3 {
  top: 75%;
}

.dv-current-time {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ea4335;
  z-index: 3;
}

.dv-current-time::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #ea4335;
  border-radius: 50%;
  left: 55px;
  top: -5px;
}

.dv-event {
  position: absolute;
  border-radius: 4px;
  padding: 2px 8px;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  color: #3c4043;
  z-index: 4;
  width: calc(100% - 16px);
  left: 8px;
}

.dv-event:hover {
  opacity: 0.9;
}

.dv-event-title {
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-event-time {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-event-location {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5f6368;
}

.dv-all-day-container {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid #dadce0;
}

.dv-all-day-label {
  font-size: 10px;
  color: #70757a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.dv-all-day-cells {
  min-height: 24px;
  display: flex;
  flex-direction: column;
}

.dv-all-day-event {
  margin: 2px 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 20px;
  cursor: pointer;
}

.dv-now-marker {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.dv-date-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
}

.dv-date-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-date-nav-btn:hover {
  background-color: #f1f3f4;
}

.dv-date-nav-icon {
  color: #5f6368;
  width: 18px;
  height: 18px;
}

/* Week View */

.wkv-day-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #70757a;
    border-right: 1px solid #dadce0;
    position: relative;
  }
  
  .wkv-day-header:last-child {
    border-right: none;
  }
  
  .wkv-day-name {
    font-size: 11px;    
    color: #003459;    
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .wkv-day-number {
    /* font-size: 26px; */
    font-size: 22px;    
    font-weight: 400;
    margin-top: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

.wkv-day-header:last-child {
  border-right: none;
}

.wkv-day-name {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.wkv-day-number {
  font-size: 26px;
  font-weight: 400;
  margin-top: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.wkv-today .wkv-day-number {
  background-color: #1a73e8;
  color: #fff;
}

.wkv-time-grid-container-mini {
  display: flex;
  flex: 1;
  position: relative;
}

.wkv-time-column {
  width: 60px;
  flex-shrink: 0;
  border-right: 1px solid #dadce0;
  position: sticky;
  left: 0;
  background: white;
  z-index: 5;
}

.wkv-time-label {
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 10px;
  color: #70757a;
  position: relative;
  /* top: -6px; */
  top: 17px;
}

.wkv-days-grid {
  display: flex;
  flex: 1;
  position: relative;
}

.wkv-day-column {
  flex: 1;
  border-right: 1px solid #dadce0;
  position: relative;
  height: 1152px; /* 24 hours * 48px per hour */
  overflow-x: hidden;
}

.wkv-all-day-container {
  display: flex;
  border-bottom: 1px solid #dadce0;
}

.wkv-all-day-label {
  width: 61px;
  flex-shrink: 0;
  font-size: 10px;
  color: #70757a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  border-right: 1px solid #dadce0;
}

.wkv-all-day-grid {
  display: flex;
  flex: 1;
}

.wkv-all-day-col {
  flex: 1;
  min-height: 24px;
  border-right: 1px solid #dadce0;
  padding: 2px 0;
}

.wkv-all-day-col:last-child {
  border-right: none;
}

.wkv-all-day-event {
  margin: 2px 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 20px;
  cursor: pointer;
}

/* Time grid */
.wkv-time-grid-container {
  display: flex;
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.wkv-time-grid-container-mini {
  display: flex;
  flex: 1;
  position: relative;
}

.wkv-time-column {
  width: 60px;
  flex-shrink: 0;
  border-right: 1px solid #dadce0;
  position: sticky;
  left: 0;
  background: white;
  z-index: 5;
}

.wkv-time-label {
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 10px;
  color: #70757a;
  position: relative;
  top: -6px;
}

.wkv-day-column {
  flex: 1;
  border-right: 1px solid #dadce0;
  position: relative;
  height: 1152px; /* 24 hours * 48px per hour */
  overflow-x: hidden;
}

.wkv-day-column:last-child {
  border-right: none;
}

.wkv-day-column.wkv-today {
  background-color: rgba(26, 115, 232, 0.04);
}

/* Hour lines */
  .wkv-hour-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  .wkv-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dadce0;
  }

 .wkv-hour-lines-mini {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }
  
  .wkv-hour-line-mini {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dadce0;
  }
  
  .wkv-half-hour-line-mini {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #f1f3f4;
  }

  /* Today highlight */
  .wkv-today-mini {
    background-color: rgba(26, 115, 232, 0.04);
    color: #fff;
  }

/* Current time indicator */
.wkv-current-time {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ea4335;
  z-index: 3;
  pointer-events: none;
}

/* Scrollbars */
.wkv-time-grid-container-mini::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.wkv-time-grid-container-mini::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.wkv-current-time::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #ea4335;
  border-radius: 50%;
  left: -6px;
  top: -5px;
}

.wkv-day-column-mini {
  flex: 1;
  border-right: 1px solid #dadce0;
  position: relative;
  height: 300px; /* 12 hours * 25px per hour */
}

.wkv-day-column-mini:last-child {
  border-right: none;
}

#weekView-mini {
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.wkv-day-header-mini {
  padding: 2px;
  font-size: 9px;
  text-align: center;
  flex: 1;
}

.wkv-all-day-container-mini {
  max-height: 18px;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
}

.wkv-all-day-label-mini {
  font-size: 7px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dadce0;
  padding: 0;
}

.wkv-all-day-grid-mini {
  display: flex;
  flex: 1;
}

.wkv-all-day-col-mini {
  flex: 1;
  border-right: 1px solid #dadce0;
  height: 18px;
  position: relative;
}

.wkv-all-day-col-mini:last-child {
  border-right: none;
}

.wkv-all-day-event-mini {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  bottom: 1px;
  font-size: 7px;
  padding: 1px 2px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optimize the time grid container */
.wkv-time-grid-container-mini {
  display: flex;
  position: relative;
  border-top: none;
  flex: 1;
  overflow: hidden;
}

.wkv-time-column-mini {
  width: 40px; /* Reduce from 60px */
  font-size: 7px;
  border-right: 1px solid #dadce0;
  flex-shrink: 0;
}
  
.wkv-time-label-mini {
  height: 32px;
  line-height: 38px;
  padding-right: 4px;
  text-align: right;
  color: #70757a;
  font-size: 8px;
}

.wkv-days-grid-mini {
  display: flex;
  flex: 1;
  position: relative;
}

 /* Style for event elements */
.wkv-event-mini {
  position: absolute;
  left: 1px;
  right: 1px;
  border-radius: 2px;
  padding: 1px 2px;
  font-size: 7px;
  overflow: hidden;
  z-index: 1;
} 

.wkv-event-title-mini {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  
.wkv-event-time-mini {
  font-size: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Events */
.wkv-event {
  position: absolute;
  border-radius: 4px;
  padding: 2px 8px;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  color: #3c4043;
  z-index: 4;
  width: calc(100% - 10px);
  left: 5px;
}

.wkv-event:hover {
  opacity: 0.9;
}

.wkv-event-title {
  width: 100%;
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.wkv-event-time {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wkv-event-title,
.wkv-event-time {
  max-width: 100%;
}
  
/* Event colors */

/* Month View */
.mv-container {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 0;
  background-color: #fff;
}

.mv-grid-container {
  /* flex: 1; */
  overflow: auto;
  border: 1px solid #e2e2e5;
  /* border-radius: 8px; */
}

.mv-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 2;
  border-bottom: 1px solid #dadce0;
}

 /* .weekdays{
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:.5rem;
    margin-bottom:.5rem;
    color:#6B7280;         
    font-weight:600;
    font-size:.75rem;         
    letter-spacing:.04em;
    text-transform:uppercase;
  } */

.mv-weekday {
  padding: 8px;
  text-align: center;
  /* font-size: 11px; */
  font-size: 14px;
  font-weight: 500;
  /* color: #70757a; */
  color: #003459;
  border-right: 1px solid #dadce0;
}

.mv-weekday:last-child {
  border-right: none;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* grid-auto-rows: minmax(81px, 1fr); */
  grid-auto-rows: minmax(86px, 1fr);
}

.mv-grid-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(67px, 1fr);
}

.mv-day {
  border-right: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  padding: 3px;
  position: relative;
  background-color: #fff;
  overflow: auto; 
  max-height: 86px;
}

.mv-day-mini-calendar {
  border-right: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  padding: 3px;
  position: relative;
  background-color: #fff;
  overflow: auto; 
  max-height: 67px;
}


.mv-day:nth-child(7n) {
  border-right: none;
}

.mv-day:nth-last-child(-n + 7) {
  border-bottom: none;
}

.mv-other-month {
  background-color: #f8f9fa;
}

.mv-other-month-day {
  color: #015794;
}

.mv-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  /* font-size: 12px; */
  font-size: 16px;
  margin-bottom: 4px;
  /* font-weight: 500; */
  font-weight: 400;
  /* color: #3c4043; */
  /* color:#003459; */
  border-radius: 50%;
}

.mv-today {
  background-color: #1a73e8;
  color: #fff;
}

.mv-selected .mv-day-number {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.mv-add-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  color: #5f6368;
}

.mv-day:hover .mv-add-btn {
  opacity: 1;
}

.mv-add-btn:hover {
  background-color: #f1f3f4;
}

.wv-add-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  color: #5f6368;
}

.wkv-day-header:hover .wv-add-btn {
  opacity: 1;
}

.wkv-day-header .wv-add-btn {
  opacity: 0;
}

.wv-add-btn:hover {
  background-color: #f1f3f4;
}

.dv-add-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  color: #5f6368;
}

.flex:hover .dv-add-btn {
  opacity: 1;
}

.dv-add-btn:hover {
  background-color: #f1f3f4;
}

.mv-events {
  margin-top: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mv-event {
  display: flex;
  font-size: 12px;
  line-height: 1.3;
  padding: 0 4px;
  height: 20px;
  border-radius: 4px;
  color: #3c4043;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 500;
  align-items: center;
}

.mv-event:hover {
  opacity: 0.9;
}

.mv-event-dot {
  /* width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0; */
}

.mv-event-more {
  font-size: 11px;
  color: #70757a;
  padding: 2px 4px;
  cursor: pointer;
}

.mv-event-more:hover {
  background-color: #f1f3f4;
  border-radius: 4px;
}

/* Event colors */
.mv-event-blue {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.mv-event-yellow {
  background-color: #feefc3;
  color: #f9ab00;
}

.mv-event-green {
  background-color: #e6f4ea;
  color: #0b8043;
}

.mv-event-red {
  background-color: #fce8e6;
  color: #d93025;
}

.mv-event-yellow {
  background-color: #fef7e0;
  color: #f9ab00;
}

.mv-event-purple {
  background-color: #f3e8fd;
  color: #a142f4;
}

/* Icon style */
.mv-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.event-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.event-modal-container {
  background-color: white;
  border-radius: 8px;
  width: 800px;
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.event-modal-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f3f4;
}

.event-modal-header-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1a73e8;
  margin-right: 12px;
}

.event-modal-body {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.event-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 24px 16px;
  gap: 8px;
}

.event-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.event-form-control {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #dadce0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.event-form-control:focus {
  border-bottom: 2px solid #1a73e8;
  margin-bottom: -1px;
}

.event-form-control::placeholder {
  color: #80868b;
}

.event-time-picker-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-time-picker {
  flex: 1;
}

.event-date-time-row {
  display: flex;
  gap: 16px;
}

.event-date-picker,
.event-time-picker-container {
  flex: 1;
}

.event-btn {
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-btn-text {
  background-color: transparent;
  color: #1a73e8;
}

.event-btn-text:hover {
  background-color: rgba(26, 115, 232, 0.04);
}

.event-btn-primary {
  background-color: #1a73e8;
  color: white;
}

.event-btn-primary:hover {
  background-color: #1765cc;
}
