/* Header Styles blue */
.calendar-white {
  background-color: #fff;
  border-radius: 20px;
  margin-bottom: 50px;
  min-height: 50vh;
}
.common-section__header {
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  background-color: #23559b;
  color: #fff;
}

.common-section__header-left {
  display: flex;
  align-items: center;
  padding: 0px 0px;
}

.common-section__icon-container {
  background-color: #d0bb68;
  padding: 15px;
  border-radius: 15px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.common-section__main-icon {
  font-size: 28px;
  color: white;
}

.common-section__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.common-section__header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-top: 30px; */
  margin-bottom: 50px;
}

.common-section__breadcrumbs {
  font-size: 14px;
  color: #666;
  margin-right: 20px;
}

.common-section__filter-button {
  background-color: transparent;
  border: 0px;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 16px;
  color: #86868b;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.common-section__filter-button img {
  margin-left: 8px;
}

.common-section__filter-button i {
  margin-left: 8px;
  color: #0056b3;
}
/* breadcrumb */
.breadcrumb {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumb a {
  text-decoration: none;
  color: #86868b;
}
.breadcrumb strong {
  text-decoration: none;
  color: #23559b;
}
.breadcrumb span {
  margin: 0 5px;
}
/* calendar */
.calendar-white div.sidebar {
  width: 250px;
  background-color: #f5f5f5;
  padding: 20px;
  border-right: 1px solid #e0e0e0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #5f6368;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 24px;
  height: 24px;
  fill: #4285f4;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  /* border-bottom: 1px solid #e0e0e0; */
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-arrows button,
.today-btn {
  background: none;
  border: 1px solid #c5c5c566;
  font-size: 14px;
  /* align-items: center; */
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  display: flex;
}

.nav-arrows button:hover,
.today-btn:hover {
  background-color: #f1f1f1;
}

.today-btn {
  border: 1px solid #c5c5c566;
  font-weight: bold;
  padding: 5px 10px;
  font-size: 16px;
}

.current-date {
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
}

.view-tabs {
  display: flex;
}

.view-tab {
  padding: 8px 16px;
  margin-left: 10px;
  /* border: 1px solid #e0e0e0; */
  border-radius: 4px;
  cursor: pointer;
  color: #71717a;
  font-size: 14px;
}

.view-tab.active {
  background-color: #23559b;
  color: #ffffff;
  border-color: #23559b;
}

.calendar {
  flex: 1;
  overflow: auto;
}

/* Day View */
.day-view {
  display: flex;
  height: 100%;
}

/* .time-column {
  width: 60px;
  padding-top: 40px;
} */

.time-slot {
  height: 60px;
  position: relative;
  text-align: right;
  padding-right: 10px;
  font-size: 12px;
  color: #70757a;
}

.events-column {
  flex: 1;
  padding: 0 40px;
  position: relative;
}

/* Day View Header */
.day-view-header {
  font-size: 16px;
  font-weight: 700;
  color: #202020;
  padding: 20px 20px 15px 20px;
  /* border-bottom: 2px solid #e0e0e0; */
  margin-bottom: 20px;
  text-align: left;
}

.event {
  position: relative;
  width: calc(100% - 10px);
  left: 5px;
  border-radius: 4px;
  padding: 15px;
  font-size: 14px;
  overflow: hidden;
  cursor: pointer;
  border-left: 4px solid #4285f4;
  background-color: #e8f0fe;
  color: #1967d2;
  text-decoration: none;
  display: block;
  margin-bottom: 0;
}

.event.event {
  border-left-color: #f97316;
  background-color: #fff7ed;
  color: #c2410c;
  width: fit-content;
}

.event.announcement {
  border-left-color: #22c55e;
  background-color: #f0fdf4;
  color: #15803d;
  width: fit-content;
}

.event:hover {
  background-color: #d2e3fc;
}

.event.event:hover {
  background-color: #fed7aa;
}

.event.announcement:hover {
  background-color: #bbf7d0;
}

.event-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.event-time {
  font-size: 11px;
}

/* Event divider line */
.event-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Week View */
.week-view {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

.week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e0e0e0;
}

.day-header {
  border: 0.5px solid #e0e0e0;
  border-top: none;
  border-bottom: none;
  text-align: center;
  padding: 10px;
  font-weight: 500;
  font-size: 14px;
}

.day-header.today {
  color: #23559b;
  font-weight: 700;
}

.week-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.day-column {
  border-right: 1px solid #e0e0e0;
  position: relative;
}

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

/* Month View */
.month-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.month-day {
  border: 0.5px solid #e0e0e0;
  padding: 25px 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #70757a;
  align-items: center;
  text-align: center;
  background-color: #f9f9f9;
  min-height: 120px;
}

.month-day.today {
  background-color: #e8f0fe;
}

.month-day.other-month {
  color: #70757a;
  background-color: #f9f9f9;
  filter: blur(0.5px);
  opacity: 0.6;
}

.month-day.other-month .day-number {
  color: #a0a0a0;
}

.day-number {
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 22px;
  color: #000000;
  text-align: center;
  width: 100%;
}

.month-events-container {
  width: 100%;
  display: flex;
  /* flex-direction:column; */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  overflow: hidden;
}

.month-event {
  font-size: 11px;
  padding: 3px 6px;
  margin-bottom: 2px;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  /* max-width: calc(50% - 2px); */
  text-align: center;
  flex-shrink: 0;
  min-width: 0;
}

.month-event.event {
  background-color: #fff7ed;
  color: #202020;
  border: 1px solid #f97316;
}

.month-event.announcement {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #22c55e;
}
.month-event.news {
  background-color: #fee1e167;
  color: #202020;
  border: 1px solid #ff8c8c;
}
.month-event:hover {
  opacity: 0.8;
}

.more-events {
  font-size: 11px;
  color: #202020;
  cursor: pointer;
  padding: 3px 6px;
  background-color: #f0f9f2;
  border-radius: 4px;
  border: 1px solid #c0e1ff;
  display: inline-block;
  flex-shrink: 0;
  margin-left: 2px;
  white-space: nowrap;
}

.more-events:hover {
  background-color: #e5e7eb;
  text-decoration: none;
}

/* Ensure proper spacing for days with events */
.month-day:has(.month-events-container) {
  padding-bottom: 15px;
}

/* Event Popup */
.event-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 20px;
  display: none;
}

.event-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.event-popup-title {
  font-size: 20px;
  font-weight: bold;
}

.close-popup {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.event-popup-content {
  margin-bottom: 20px;
}
.event-popup-content div a{
  text-decoration: underline;
    text-decoration-color: #2a2e6d1f;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    color: #23559b;
}
.event-popup-footer {
  display: flex;
  justify-content: flex-end;
}

.popup-btn {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-btn.primary {
  background-color: #4285f4;
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}
/* calendar date */
/* tab css main */
#calendarTab {
  display: flex;
  gap: 30px;
}
#calendarTab .tab-heading {
  padding: 0 0 50px 0;
}

#calendarTab .active[data-tab-content] {
  display: block;
  color: #000000;
}

#calendarTab .tab.active {
  font-size: 18px;
  color: #23559b;
  font-weight: 600;
  border-color: #23559b;
  padding: 15px 20px;
  cursor: pointer;
  background-color: transparent;
}

#calendarTab [data-tab-content] {
  visibility: hidden;
  opacity: 0;
  height: 0;
  /* overflow: hidden; */
  transition: opacity 0.3s ease, height 0.3s ease;
}
#calendarTab .tab-contents{
  flex: 1;
}
#calendarTab .active[data-tab-content] {
  visibility: visible;
  opacity: 1;
  height: auto;
}

#calendarTab .common-tab {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

#calendarTab .common-tab li {
  border-bottom: 2px solid #cfcfcf;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  line-height: 25px;
  font-weight: 400;
  color: #858687;
  white-space: nowrap;
}
#calendarTab .tab-container .tabs .tab.active {
  white-space: nowrap;
  font-size: 18px;
  color: #23559b;
  font-weight: 600;
  border-color: #23559b;
  padding: 20px;
  cursor: pointer;
  background-color: transparent;
}
@media (max-width: 1199px) {
  #calendarTab {
    display: grid;
    gap: 30px;
  }
  #calendarTab .common-tab {
    display: flex;
    gap: 30px;
  }
  #calendarTab .tab-heading {
    padding: 0 0 0px 0;
}
#calendarTab .tab.active{
  color: #000;
  border-color: #000;
  background: #D0BB68;
}
}

/* Holidays Calendar Styles */
.holidays-calendar {
  background-color: #fff;
  border-radius: 20px;
  margin-bottom: 50px;
}

/* Holidays Calendar Navigation */
.current-date-holidays {
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
}

.view-tabs-holidays {
  display: flex;
}

.view-tab-holidays {
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  color: #71717a;
  font-size: 14px;
}

.view-tab-holidays.active {
  background-color: #23559b;
  color: #ffffff;
  border-color: #23559b;
}

/* Holidays Calendar Views */
.month-view-holidays {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.month-grid-holidays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.week-view-holidays {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

.week-header-holidays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e0e0e0;
}

.week-body-holidays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.day-view-holidays {
  display: flex;
  height: 100%;
}

/* Holidays Popup */
.overlay-holidays {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.event-popup-holidays {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 20px;
  display: none;
}

/* Holiday Event Styling */
.month-event.holiday {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.month-event.holiday:hover {
  background-color: #fde68a;
}

.event.holiday {
  border-left-color: #f59e0b;
  background-color: #fef3c7;
  color: #92400e;
}

.event.holiday:hover {
  background-color: #fde68a;
}

/* Exams Calendar Styles */
.exams-calendar {
  background-color: #fff;
  border-radius: 20px;
  margin-bottom: 50px;
}

/* Exams Calendar Navigation */
.current-date-exams {
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
}

.view-tabs-exams {
  display: flex;
}

.view-tab-exams {
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  color: #71717a;
  font-size: 14px;
}

.view-tab-exams.active {
  background-color: #23559b;
  color: #ffffff;
  border-color: #23559b;
}

/* Exams Calendar Views */
.month-view-exams {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.month-grid-exams {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.week-view-exams {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

.week-header-exams {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e0e0e0;
}

.week-body-exams {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.day-view-exams {
  display: flex;
  height: 100%;
}

/* Exams Popup */
.overlay-exams {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.event-popup-exams {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 20px;
  display: none;
}

/* Exam Event Styling */
.month-event.exam {
  background-color: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #a855f7;
}

.month-event.exam:hover {
  background-color: #e9d5ff;
}

.event.exam {
  border-left-color: #8b5cf6;
  background-color: #f3e8ff;
  color: #7c3aed;
}

.event.exam:hover {
  background-color: #e9d5ff;
}

/* Rambo colour */
.cum-Green{
  background-color: Green !important;
  color: white !important;
  border: 1px solid Green !important;
}

.cum-Red{
  background-color: Red !important;
  color: white !important;
  border: 1px solid Red !important;
}

.cum-Blue{
  background-color: Blue !important;
  color: white !important;
  border: 1px solid Blue !important;
}

.cum-Yellow{
  background-color: Yellow !important;
  color: black !important;
  border: 1px solid Yellow !important;
}

.cum-Blue{
  background-color: Black !important;
  color: white !important;
  border: 1px solid Black !important;
}

.cum-White{
  background-color: White !important;
  color: black !important;
  border: 1px solid black !important;
}
@media (max-width:991px) {
  #calendarTab {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    #calendarTab .tab-heading{
      overflow-x: scroll;
    }

  .week-header {
    display: grid;
    grid-template-columns: repeat(7, 100px);
    border-bottom: 1px solid #e0e0e0;
  }
  .month-grid{
    display: grid;
    grid-template-columns: repeat(7, 100px);
  }
  .month-events-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.header{
  flex-direction: column;
}
}