/* ============================================================
   TOOLSPOT — FESTIVAL & HOLIDAYS CALENDAR STYLESHEET
   ============================================================ */

:root {
  --tool-gold: #f59e0b;
  --tool-gold-soft: rgba(245, 158, 11, 0.12);
  --tool-gold-glow: rgba(245, 158, 11, 0.25);
  --tool-gold-hover: #d97706;

  /* Holiday Category Colors (Dark Mode) */
  --cat-national: #10b981;    /* Emerald */
  --cat-hindu: #f97316;       /* Saffron/Orange */
  --cat-islamic: #06b6d4;     /* Cyan/Blue */
  --cat-christian: #6366f1;   /* Indigo */
  --cat-other: #ec4899;       /* Pink/Magenta */
  --cat-restricted: #eab308;  /* Amber/Yellow */
}

body.light {
  --tool-gold: #d97706;
  --tool-gold-soft: rgba(217, 119, 6, 0.08);
  --tool-gold-glow: rgba(217, 119, 6, 0.15);
  --tool-gold-hover: #b45309;

  /* Holiday Category Colors (Light Mode) */
  --cat-national: #059669;
  --cat-hindu: #ea580c;
  --cat-islamic: #0891b2;
  --cat-christian: #4f46e5;
  --cat-other: #db2777;
  --cat-restricted: #ca8a04;
}

/* ── PAGE LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
}

/* ── CALENDAR COMPONENT ── */
.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── INTEGRATED CALENDAR WIDGET CARD ── */
.calendar-widget-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 4px;
}

body.light .calendar-widget-card {
  background: rgba(0, 0, 0, 0.008);
  border-color: rgba(0, 0, 0, 0.04);
}

.calendar-view-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 16px 4px;
  background: transparent;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 0 !important;
  padding: 4px 16px 14px !important;
}

body.light .calendar-header {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: bold;
  font-size: 16px;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: scale(1.05);
}

body.light .calendar-nav-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .calendar-nav-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.calendar-selectors {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2px;
  gap: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.light .calendar-selectors {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.calendar-select {
  border: none !important;
  background: transparent !important;
  color: var(--text) !important;
  padding: 0 26px 0 12px !important;
  height: 32px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
}

.calendar-select:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Vertical divider between Month and Year */
.calendar-select:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px 0 0 10px !important;
}

body.light .calendar-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.6)' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

body.light .calendar-select:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

body.light .calendar-select:first-child {
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ── CALENDAR FILTER PILLS ── */
.filters {
  display: flex;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 6px;
  padding: 4px 0 12px !important;
  margin: 0 0 8px 0 !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  animation: fadeUp 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.filters::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.f-btn {
  flex-shrink: 0;
  padding: 7px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--text-2) !important;
}

.f-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.f-btn.active {
  border-color: var(--tool-gold) !important;
  background: var(--tool-gold-soft) !important;
  color: var(--text) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.1) !important;
}

body.light .f-btn {
  background: rgba(0, 0, 0, 0.015) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light .f-btn:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

body.light .f-btn.active {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold) !important;
}

/* ── CALENDAR GRID ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px !important;
}

body.light .calendar-grid {
  background: transparent !important;
  border-color: transparent !important;
}

.calendar-weekday {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding: 6px 0 12px;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
}

body.light .calendar-weekday {
  border-color: rgba(0, 0, 0, 0.04);
}

.calendar-day {
  aspect-ratio: 1.1;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

body.light .calendar-day {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.03);
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tool-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

body.light .calendar-day:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Today styles */
.calendar-day.is-today {
  background: rgba(245, 158, 11, 0.05) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.1) !important;
}

.calendar-day.is-today .day-number {
  background: var(--tool-gold);
  color: #ffffff !important;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

body.light .calendar-day.is-today .day-number {
  color: #ffffff !important;
}

/* Selected Day */
.calendar-day.is-selected {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

.calendar-day.is-selected .day-number {
  color: var(--text);
  font-weight: 800;
}

/* Inactive days (adjacent months) */
.calendar-day.is-sibling {
  opacity: 0.15;
}

.calendar-day.is-sibling:hover {
  opacity: 0.4;
}

/* Day content positioning */
.day-number {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  align-self: center;
}

.day-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-self: center;
  width: 100%;
  justify-content: center;
  min-height: 6px;
  margin-top: 4px;
}

/* Dot indicator style */
.indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.indicator-dot.national { background-color: var(--cat-national); }
.indicator-dot.hindu { background-color: var(--cat-hindu); }
.indicator-dot.islamic { background-color: var(--cat-islamic); }
.indicator-dot.christian { background-color: var(--cat-christian); }
.indicator-dot.other { background-color: var(--cat-other); }
.indicator-dot.restricted { background-color: var(--cat-restricted); }

/* Day special text badge - Hidden on screen to prevent ugly truncation dots (...) */
.day-badge {
  display: none !important;
}

/* Left colored borders indicating holiday type */
.calendar-day.has-holiday {
  border-left: 3px solid var(--cat-restricted) !important;
}

.calendar-day.has-holiday.public {
  border-left: 3px solid var(--cat-national) !important;
}

/* Clear old triangles */
.calendar-day.has-holiday::after {
}

/* ── DETAIL DRAWER (RIGHT PANEL) ── */
.detail-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.light .detail-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.detail-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--tool-gold-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  z-index: 1;
  position: relative;
}

body.light .detail-header {
  border-color: rgba(0, 0, 0, 0.08);
}

.detail-date {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.detail-days-remaining {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Remaining Badge States */
.remaining-badge-today { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.remaining-badge-upcoming { background: var(--tool-gold-soft); color: var(--tool-gold); }
.remaining-badge-passed { background: rgba(255, 255, 255, 0.05); color: var(--text-3); }

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  position: relative;
}

.detail-holidays-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-holiday-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.detail-holiday-item:hover {
  transform: translateY(-1px);
}

body.light .detail-holiday-item {
  background: rgba(0, 0, 0, 0.005);
  border-color: rgba(0, 0, 0, 0.04);
}

.detail-holiday-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.detail-holiday-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.detail-holiday-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Category Badge Styling */
.detail-holiday-badge.national { background: rgba(16, 185, 129, 0.1); color: var(--cat-national); border: 1px solid rgba(16, 185, 129, 0.15); }
.detail-holiday-badge.restricted { background: rgba(234, 179, 8, 0.1); color: var(--cat-restricted); border: 1px solid rgba(234, 179, 8, 0.15); }

.detail-holiday-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.detail-holiday-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  border-top: 1px dashed rgba(255, 255, 255, 0.04);
  padding-top: 8px;
  margin-top: 2px;
}

body.light .detail-holiday-desc {
  border-color: rgba(0, 0, 0, 0.04);
}

/* Empty detail box state */
.detail-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
  gap: 12px;
  z-index: 1;
}

.detail-empty-icon {
  font-size: 40px;
  opacity: 0.6;
}

/* ── COUNTDOWN PANEL ── */
.upcoming-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.light .upcoming-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.upcoming-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upcoming-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upcoming-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tool-gold);
  transform: translateX(3px);
}

body.light .upcoming-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light .upcoming-item:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--tool-gold);
}

.upcoming-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.upcoming-date {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.upcoming-countdown {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tool-gold);
  background: var(--tool-gold-soft);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── SEARCH INPUT ── */
.search-box-wrap {
  position: relative;
  display: flex;
  width: 100%;
}

.search-icon-pre {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

.search-input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-input-field:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tool-gold);
  box-shadow: 0 0 0 3px var(--tool-gold-soft);
}

body.light .search-input-field {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .search-input-field:focus {
  background: #ffffff;
  border-color: var(--tool-gold);
}

/* ── STATE SELECT FIELD ── */
.state-select-field {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-2);
  padding: 0 36px 0 14px !important;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}

body.light .state-select-field {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.6)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

.state-select-field:focus {
  border-color: var(--tool-gold);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px var(--tool-gold-soft);
}

/* ── RELIGION TAGS LEGEND ── */
.legend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  margin-top: 8px;
}

body.light .legend-wrap {
  border-color: rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-color.national { background-color: var(--cat-national); }
.legend-color.hindu { background-color: var(--cat-hindu); }
.legend-color.islamic { background-color: var(--cat-islamic); }
.legend-color.christian { background-color: var(--cat-christian); }
.legend-color.other { background-color: var(--cat-other); }
.legend-color.restricted { background-color: var(--cat-restricted); }

/* ── CUSTOM PLANNER PANEL ── */
.planner-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.planner-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-2);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.planner-btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

body.light .planner-btn-outline {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .planner-btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
}

.planner-btn-outline.active {
  background: var(--tool-gold-soft);
  color: var(--tool-gold);
  border-color: var(--tool-gold);
}

/* ── VIEW SEGMENTED TOGGLE ── */
.view-toggle-pill {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

body.light .view-toggle-pill {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.05);
}

.view-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

body.light .view-btn {
  color: rgba(0, 0, 0, 0.45);
}

.view-btn.active {
  background: var(--tool-gold);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.view-btn:hover:not(.active) {
  color: var(--text);
}

body.light .view-btn:hover:not(.active) {
  color: var(--text);
}

.calendar-select.no-divider {
  border-left: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* ── YEARLY LIST VIEW STYLING ── */
.calendar-grid.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px !important;
}

.yearly-month-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yearly-month-header {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tool-gold);
  font-family: 'Outfit', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

body.light .yearly-month-header {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

.yearly-no-holidays {
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 8px;
  font-style: italic;
}

.yearly-holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 12px;
}

body.light .yearly-holiday-row {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

.yearly-holiday-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tool-gold);
}

body.light .yearly-holiday-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.yearly-holiday-row.is-active {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1) !important;
}

.yearly-holiday-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 12px;
}

body.light .yearly-holiday-left {
  border-color: rgba(0, 0, 0, 0.06);
}

.yearly-date-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.yearly-day-label {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
}

.yearly-holiday-center {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 2px;
}

.yearly-holiday-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.yearly-holiday-desc-short {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.yearly-holiday-right {
  display: flex;
  align-items: center;
}

/* Planned Leave Day styling */
.calendar-day.is-planned-leave {
  border: 1px dashed var(--tool-gold) !important;
}

body.light .calendar-day.is-planned-leave {
  border: 1px dashed var(--tool-gold) !important;
}

/* ── PRINT-ONLY HEADER ── */
.print-only-header {
  display: none;
}

/* ── PRINT STYLING ── */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .bg-scene, .filters, .search-box-wrap, .calendar-selectors, .calendar-nav, .action-panel, .share-btn-wrap, #ts-header, #ts-footer, #ts-cookie, #ts-share, #ts-toast, .planner-actions, .tool-header, .state-wrap, .info-box, #tool-faq {
    display: none !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .tool-layout {
    display: block !important;
  }
  .tool-left, .tool-right {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .calendar-grid {
    border: 1px solid #cccccc !important;
    background: transparent !important;
    page-break-after: always;
  }
  .calendar-day {
    border: 1px solid #dddddd !important;
    background: transparent !important;
    color: #000000 !important;
  }
  .calendar-day.is-selected {
    border-color: #000000 !important;
  }
  .day-indicators {
    display: none !important;
  }
  .day-badge {
    color: #333333 !important;
    font-size: 7px !important;
    opacity: 1 !important;
  }
  .detail-box, .upcoming-box {
    border: 1px solid #cccccc !important;
    background: transparent !important;
    margin-top: 20px;
    box-shadow: none !important;
  }
  .detail-holiday-item {
    border: 1px solid #eeeeee !important;
    background: transparent !important;
  }
  .print-only-header {
    display: block !important;
    margin-bottom: 20px;
  }
  #current-view-text {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    margin: 10px 0 20px 0 !important;
    font-family: 'Outfit', sans-serif !important;
  }
}
