/* ==========================================================================
   LEETFX PRO TRADING CALENDAR SYSTEM - ULTRA LUXURY & RESPONSIVE
   TradeZella / TraderSync Elite Aesthetics for Dark & Light Themes
   ========================================================================== */

/* Eyebrow Dot Animation */
.cal-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3bd61;
  box-shadow: 0 0 10px #e3bd61;
  margin-right: 6px;
  animation: calPulse 2s infinite ease-in-out;
}

@keyframes calPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* CALENDAR CONTROLS */
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px !important;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Month Navigation Group */
.calendar-month-nav {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(145deg, #131a28, #0c111a);
  border: 1px solid rgba(216, 175, 89, 0.35);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cal-nav-btn {
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
  border: 0 !important;
  color: #f0d184 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cal-nav-btn:hover {
  background: rgba(227, 189, 97, 0.18) !important;
  color: #fff !important;
  transform: scale(1.08) !important;
}

.cal-nav-btn:active {
  transform: scale(0.96) !important;
}

.calendar-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.cal-title-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 4px rgba(227, 189, 97, 0.4));
}

#calendarTitle {
  font-family: 'DM Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #fff !important;
  min-width: 140px;
  text-align: center;
  text-transform: uppercase;
}

/* Today Quick Button */
.cal-today-btn {
  padding: 0 16px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-width: 68px !important;
  background: linear-gradient(145deg, #182236, #101726) !important;
  border: 1px solid rgba(216, 175, 89, 0.3) !important;
  border-radius: 11px !important;
  color: #e5c45f !important;
  font: 700 11px 'DM Mono', monospace !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.cal-today-btn:hover {
  background: linear-gradient(145deg, #22304d, #141e31) !important;
  border-color: #e5c45f !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(229, 196, 95, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Professional Year Selector */
.calendar-year-picker {
  display: inline-flex;
  align-items: center;
  height: 40px;
  background: linear-gradient(145deg, #131a28, #0b1019);
  border: 1px solid rgba(216, 175, 89, 0.4);
  border-radius: 11px;
  padding: 2px 4px 2px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.cal-year-badge {
  font: 800 9px 'DM Mono', monospace;
  color: #e5c45f;
  letter-spacing: 0.12em;
  margin-right: 6px;
  opacity: 0.9;
  user-select: none;
}

.cal-year-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#calendarYear, .cal-year-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  font: 700 12px 'DM Mono', monospace !important;
  letter-spacing: 0.04em !important;
  padding: 6px 22px 6px 6px !important;
  cursor: pointer !important;
  outline: none !important;
}

#calendarYear option {
  background: #101624 !important;
  color: #f0d184 !important;
  padding: 8px !important;
  font: 700 12px 'DM Mono', monospace !important;
}

.cal-chevron {
  position: absolute;
  right: 4px;
  pointer-events: none;
  color: #e5c45f;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.calendar-year-picker:hover {
  border-color: #f0d184;
  box-shadow: 0 0 14px rgba(229, 196, 95, 0.28);
}

/* ==========================================================================
   MONTHLY PERFORMANCE SUMMARY BAR (TradeZella Signature)
   ========================================================================== */
.calendar-month-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: radial-gradient(circle at 90% 10%, rgba(216, 175, 89, 0.1), transparent 45%),
              linear-gradient(145deg, #111726, #090e17);
  border: 1px solid rgba(216, 175, 89, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cal-strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}

.cal-strip-item:last-child {
  border-right: none;
  padding-right: 0;
}

.cal-strip-label {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  color: #aeb9cb;
}

.cal-strip-val {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cal-strip-val.positive {
  color: #69c981 !important;
  text-shadow: 0 0 12px rgba(105, 201, 129, 0.4);
}

.cal-strip-val.negative {
  color: #ef7d92 !important;
  text-shadow: 0 0 12px rgba(239, 125, 146, 0.4);
}

/* ==========================================================================
   CALENDAR LAYOUT & GRID
   ========================================================================== */
.calendar-layout {
  display: grid !important;
  grid-template-columns: 1fr 310px !important;
  background: linear-gradient(145deg, #0e1422, #080c14) !important;
  border: 1px solid rgba(216, 175, 89, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(216, 175, 89, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
}

.calendar-main {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(216, 175, 89, 0.25);
  background: #090e18;
}

/* Weekday Header Strip */
.calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  background: linear-gradient(90deg, rgba(216, 175, 89, 0.12), rgba(216, 175, 89, 0.04)) !important;
  border-bottom: 1px solid rgba(216, 175, 89, 0.25) !important;
  padding: 0 !important;
}

.calendar-weekdays span {
  padding: 12px 6px !important;
  text-align: center !important;
  font: 800 10px 'DM Mono', monospace !important;
  letter-spacing: 0.12em !important;
  color: #f0d184 !important;
  border-bottom: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
}

.calendar-weekdays span:last-child {
  border-right: none;
}

.calendar-weekdays span.weekend {
  color: #ff9fb4 !important;
}

/* Calendar Days Grid */
.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  gap: 1px !important; /* Elegant grid hairline */
  border: none !important;
}

/* Day Cell Base */
.calendar-day {
  position: relative !important;
  min-height: 104px !important;
  background: #0d1320 !important;
  border: none !important;
  padding: 8px 9px !important;
  color: #79869e !important;
  font-family: var(--sans) !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: left !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.calendar-day.other-month {
  background: #080c14 !important;
  opacity: 0.35 !important;
  cursor: default !important;
}

.calendar-day.current-month {
  color: #e5ebf5 !important;
}

/* Day Cell Header: Number + Badges */
.cal-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cal-day-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #a3b1c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.calendar-day.current-month .cal-day-num {
  color: #e4ecf7;
}

/* Today Indicator */
.calendar-day.is-today .cal-day-num {
  background: linear-gradient(135deg, #e3bd61, #bf9536);
  color: #120e06 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(227, 189, 97, 0.6);
}

.cal-today-badge {
  font: 800 8px 'DM Mono', monospace;
  letter-spacing: 0.08em;
  color: #e3bd61;
  background: rgba(227, 189, 97, 0.15);
  border: 1px solid rgba(227, 189, 97, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Trade Stat Elements inside Day Cell */
.cal-day-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.cal-day-pnl {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cal-day-pnl.positive {
  color: #69c981 !important;
  text-shadow: 0 0 10px rgba(105, 201, 129, 0.4);
}

.cal-day-pnl.negative {
  color: #ef7d92 !important;
  text-shadow: 0 0 10px rgba(239, 125, 146, 0.4);
}

.cal-day-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font: 600 9px 'DM Mono', monospace;
  color: #8b9ab4;
}

.cal-trade-count {
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
  color: #cbd5e1;
}

.cal-trade-r {
  font-weight: 700;
  color: #d8af59;
}

/* Day State Backgrounds */
.calendar-day.positive {
  background: radial-gradient(circle at 10% 90%, rgba(105, 201, 129, 0.18), transparent 60%),
              linear-gradient(145deg, #10211a, #0c1814) !important;
  border: 1px solid rgba(105, 201, 129, 0.25) !important;
}

.calendar-day.negative {
  background: radial-gradient(circle at 10% 90%, rgba(239, 125, 146, 0.16), transparent 60%),
              linear-gradient(145deg, #24111a, #180c13) !important;
  border: 1px solid rgba(239, 125, 146, 0.22) !important;
}

/* Hover Effect */
.calendar-day.current-month:hover {
  z-index: 10 !important;
  transform: translateY(-2px) scale(1.02) !important;
  background: #172133 !important;
  border: 1px solid rgba(227, 189, 97, 0.6) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(227, 189, 97, 0.25) !important;
}

/* ==========================================================================
   HIGH-VISIBILITY SELECTED DATE STATE ("date slect krna visible ho")
   ========================================================================== */
.calendar-day.selected {
  z-index: 15 !important;
  outline: none !important;
  border: 2px solid #e5c45f !important;
  background: radial-gradient(circle at 50% 50%, rgba(229, 196, 95, 0.22), transparent 75%),
              linear-gradient(145deg, #1c273c, #111a2a) !important;
  box-shadow: 0 0 24px rgba(229, 196, 95, 0.55),
              inset 0 0 16px rgba(229, 196, 95, 0.25),
              0 10px 28px rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-3px) scale(1.03) !important;
}

.calendar-day.selected .cal-day-num {
  background: #e5c45f !important;
  color: #141108 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(229, 196, 95, 0.7) !important;
}

.calendar-day.selected::after {
  content: 'SELECTED';
  position: absolute;
  top: 6px;
  right: 6px;
  font: 800 7px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  background: #e5c45f;
  color: #161208;
  padding: 1px 4px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(229, 196, 95, 0.5);
}

/* ==========================================================================
   SELECTED DAY ASIDE PANEL (Execution Inspector)
   ========================================================================== */
.calendar-aside {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px !important;
  background: linear-gradient(180deg, #131a29, #0a0f18) !important;
  border-left: 1px solid rgba(216, 175, 89, 0.25) !important;
  gap: 16px !important;
  overflow-y: auto !important;
  max-height: 800px;
}

.calendar-aside-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.aside-eyebrow {
  display: block;
  font: 800 9px 'DM Mono', monospace;
  letter-spacing: 0.12em;
  color: #e5c45f;
  margin-bottom: 6px;
}

#selectedDay {
  display: block !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 8px !important;
}

.aside-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.08em;
  background: rgba(229, 196, 95, 0.14);
  color: #f0d184;
  border: 1px solid rgba(229, 196, 95, 0.35);
}

.aside-status-badge.has-trades {
  background: rgba(105, 201, 129, 0.15);
  color: #69c981;
  border-color: rgba(105, 201, 129, 0.35);
}

/* Day Net P&L Hero Card */
.aside-pnl-card {
  padding: 16px;
  border-radius: 14px;
  background: radial-gradient(circle at 90% 10%, rgba(229, 196, 95, 0.12), transparent 50%),
              linear-gradient(145deg, #182236, #0f1624);
  border: 1px solid rgba(216, 175, 89, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.aside-pnl-sub {
  display: block;
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  color: #aeb9cb;
  margin-bottom: 4px;
}

#selectedDayPnl {
  display: block !important;
  font: 800 28px 'DM Mono', monospace !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
}

#selectedDayPnl.positive {
  color: #69c981 !important;
  text-shadow: 0 0 14px rgba(105, 201, 129, 0.45);
}

#selectedDayPnl.negative {
  color: #ef7d92 !important;
  text-shadow: 0 0 14px rgba(239, 125, 146, 0.45);
}

.aside-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aside-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-mini-stat span {
  font: 600 8px 'DM Mono', monospace;
  color: #8c9bb4;
  letter-spacing: 0.06em;
}

.aside-mini-stat strong {
  font: 700 12px 'DM Mono', monospace;
  color: #ffffff;
}

/* Day Executions List */
.aside-trades-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.aside-trades-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aside-trades-header span {
  font: 800 9px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  color: #e5c45f;
}

.aside-trades-header small {
  font: 700 9px 'DM Mono', monospace;
  color: #9daec6;
}

.aside-trades-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.aside-empty-note {
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: #8fa0ba !important;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  margin: 4px 0 !important;
}

/* Individual Trade Card in Aside */
.cal-trade-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #161e2f, #0f1624);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.15s ease;
}

.cal-trade-card:hover {
  border-color: rgba(216, 175, 89, 0.4);
  transform: translateX(2px);
}

.cal-tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-tc-sym {
  font: 800 12px 'DM Mono', monospace;
  color: #fff;
  letter-spacing: 0.02em;
}

.cal-tc-side {
  font: 800 8px 'DM Mono', monospace;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}

.cal-tc-side.long {
  background: rgba(105, 201, 129, 0.15);
  color: #69c981;
  border: 1px solid rgba(105, 201, 129, 0.35);
}

.cal-tc-side.short {
  background: rgba(239, 125, 146, 0.15);
  color: #ef7d92;
  border: 1px solid rgba(239, 125, 146, 0.35);
}

.cal-tc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #9cb0cc;
}

.cal-tc-setup {
  color: #b8c7dd;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.cal-tc-pnl {
  font: 800 12px 'DM Mono', monospace;
}

.cal-tc-pnl.positive {
  color: #69c981;
}

.cal-tc-pnl.negative {
  color: #ef7d92;
}

/* Aside Action Button */
.aside-add-trade-btn {
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(145deg, #f0d58d, #b98937);
  border: 0;
  border-radius: 10px;
  color: #1e1507;
  font: 800 11px 'DM Mono', monospace;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 0 #765621, 0 8px 18px rgba(214, 180, 92, 0.25);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.aside-add-trade-btn:hover {
  background: linear-gradient(145deg, #ffe09b, #cba043);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #765621, 0 12px 24px rgba(214, 180, 92, 0.4);
}

.aside-add-trade-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #765621;
}

/* ==========================================================================
   LIGHT MODE PERFECTION (html[data-theme="light"])
   ========================================================================== */
html[data-theme="light"] .calendar-month-nav {
  background: linear-gradient(145deg, #ffffff, #edf2f9) !important;
  border-color: rgba(184, 141, 60, 0.4) !important;
  box-shadow: 0 4px 12px rgba(113, 131, 166, 0.2) !important;
}

html[data-theme="light"] .cal-nav-btn {
  color: #8c6a21 !important;
}

html[data-theme="light"] .cal-nav-btn:hover {
  background: rgba(184, 141, 60, 0.15) !important;
  color: #5d420a !important;
}

html[data-theme="light"] #calendarTitle {
  color: #17243a !important;
}

html[data-theme="light"] .cal-today-btn {
  background: linear-gradient(145deg, #ffffff, #edf2f9) !important;
  border-color: rgba(184, 141, 60, 0.4) !important;
  color: #795710 !important;
  box-shadow: 0 3px 10px rgba(113, 131, 166, 0.18) !important;
}

html[data-theme="light"] .cal-today-btn:hover {
  background: #fff !important;
  color: #3b2a05 !important;
  border-color: #b88d3c !important;
  box-shadow: 0 0 12px rgba(184, 141, 60, 0.3) !important;
}

html[data-theme="light"] .calendar-year-picker {
  background: linear-gradient(145deg, #ffffff, #edf2f9) !important;
  border-color: rgba(184, 141, 60, 0.4) !important;
  box-shadow: 0 4px 12px rgba(113, 131, 166, 0.18) !important;
}

html[data-theme="light"] .cal-year-badge {
  color: #795710 !important;
}

html[data-theme="light"] #calendarYear, html[data-theme="light"] .cal-year-select {
  color: #17243a !important;
}

html[data-theme="light"] #calendarYear option {
  background: #ffffff !important;
  color: #17243a !important;
}

html[data-theme="light"] .cal-chevron {
  color: #8c6a21 !important;
}

html[data-theme="light"] .calendar-month-strip {
  background: radial-gradient(circle at 90% 10%, rgba(184, 141, 60, 0.12), transparent 45%),
              linear-gradient(145deg, #ffffff, #eff3fa) !important;
  border-color: rgba(184, 141, 60, 0.35) !important;
  box-shadow: 0 8px 24px rgba(113, 131, 166, 0.22) !important;
}

html[data-theme="light"] .cal-strip-item {
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .cal-strip-label {
  color: #556682 !important;
}

html[data-theme="light"] .cal-strip-val {
  color: #16243b !important;
}

html[data-theme="light"] .cal-strip-val.positive {
  color: #277844 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .cal-strip-val.negative {
  color: #b43953 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .calendar-layout {
  background: #ffffff !important;
  border-color: #b88d3c !important;
  box-shadow: 0 16px 36px rgba(100, 119, 150, 0.22) !important;
}

html[data-theme="light"] .calendar-main {
  background: #f7f9fd !important;
  border-right-color: rgba(184, 141, 60, 0.3) !important;
}

html[data-theme="light"] .calendar-weekdays {
  background: linear-gradient(90deg, #fff7df, #fefbf3) !important;
  border-bottom-color: rgba(184, 141, 60, 0.3) !important;
}

html[data-theme="light"] .calendar-weekdays span {
  color: #6a4d0d !important;
  border-right-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .calendar-grid {
  background: rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .calendar-day {
  background: #ffffff !important;
  color: #2c3e5a !important;
}

html[data-theme="light"] .calendar-day.other-month {
  background: #f1f4f9 !important;
  opacity: 0.45 !important;
}

html[data-theme="light"] .cal-day-num {
  color: #5a6e8e !important;
}

html[data-theme="light"] .calendar-day.current-month .cal-day-num {
  color: #1b2c45 !important;
}

html[data-theme="light"] .calendar-day.is-today .cal-day-num {
  background: linear-gradient(135deg, #f6d98b, #d9ad53) !important;
  color: #241b09 !important;
  box-shadow: 0 0 10px rgba(184, 141, 60, 0.4) !important;
}

html[data-theme="light"] .cal-today-badge {
  background: rgba(184, 141, 60, 0.15) !important;
  color: #72510c !important;
  border-color: rgba(184, 141, 60, 0.4) !important;
}

html[data-theme="light"] .cal-day-pnl.positive {
  color: #277844 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .cal-day-pnl.negative {
  color: #b43953 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .calendar-day.positive {
  background: linear-gradient(145deg, #e7f7ed, #f9fffa) !important;
  border: 1px solid rgba(39, 120, 68, 0.3) !important;
}

html[data-theme="light"] .calendar-day.negative {
  background: linear-gradient(145deg, #ffeef2, #fffafc) !important;
  border: 1px solid rgba(180, 57, 83, 0.25) !important;
}

html[data-theme="light"] .cal-trade-count {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #4b5d78 !important;
}

html[data-theme="light"] .cal-trade-r {
  color: #7a5814 !important;
}

html[data-theme="light"] .calendar-day.current-month:hover {
  background: #fefeff !important;
  border-color: #b88d3c !important;
  box-shadow: 0 8px 20px rgba(113, 131, 166, 0.3) !important;
}

/* Light Mode Selected Day Cell */
html[data-theme="light"] .calendar-day.selected {
  background: radial-gradient(circle at 50% 50%, rgba(217, 173, 83, 0.22), transparent 75%),
              linear-gradient(145deg, #fffcf5, #f5f8ff) !important;
  border: 2px solid #b88d3c !important;
  box-shadow: 0 0 20px rgba(184, 141, 60, 0.45),
              inset 0 0 12px rgba(184, 141, 60, 0.15),
              0 8px 20px rgba(100, 119, 150, 0.25) !important;
}

html[data-theme="light"] .calendar-day.selected .cal-day-num {
  background: #b88d3c !important;
  color: #ffffff !important;
}

html[data-theme="light"] .calendar-day.selected::after {
  background: #b88d3c !important;
  color: #ffffff !important;
}

/* Light Mode Aside */
html[data-theme="light"] .calendar-aside {
  background: linear-gradient(180deg, #ffffff, #eff3fa) !important;
  border-left-color: rgba(184, 141, 60, 0.3) !important;
}

html[data-theme="light"] .calendar-aside-header {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .aside-eyebrow {
  color: #795710 !important;
}

html[data-theme="light"] #selectedDay {
  color: #17243a !important;
}

html[data-theme="light"] .aside-status-badge {
  background: rgba(184, 141, 60, 0.12) !important;
  color: #72510c !important;
  border-color: rgba(184, 141, 60, 0.3) !important;
}

html[data-theme="light"] .aside-status-badge.has-trades {
  background: rgba(39, 120, 68, 0.12) !important;
  color: #277844 !important;
  border-color: rgba(39, 120, 68, 0.3) !important;
}

html[data-theme="light"] .aside-pnl-card {
  background: radial-gradient(circle at 90% 10%, rgba(184, 141, 60, 0.12), transparent 50%),
              linear-gradient(145deg, #ffffff, #f1f5fb) !important;
  border-color: rgba(184, 141, 60, 0.35) !important;
  box-shadow: 0 6px 16px rgba(113, 131, 166, 0.18) !important;
}

html[data-theme="light"] .aside-pnl-sub {
  color: #576985 !important;
}

html[data-theme="light"] #selectedDayPnl {
  color: #16243b !important;
}

html[data-theme="light"] #selectedDayPnl.positive {
  color: #277844 !important;
  text-shadow: none !important;
}

html[data-theme="light"] #selectedDayPnl.negative {
  color: #b43953 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .aside-metrics-row {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .aside-mini-stat span {
  color: #647590 !important;
}

html[data-theme="light"] .aside-mini-stat strong {
  color: #17243a !important;
}

html[data-theme="light"] .aside-trades-header span {
  color: #795710 !important;
}

html[data-theme="light"] .aside-trades-header small {
  color: #556784 !important;
}

html[data-theme="light"] .aside-empty-note {
  color: #526581 !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .cal-trade-card {
  background: linear-gradient(145deg, #ffffff, #f3f6fc) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(113, 131, 166, 0.15) !important;
}

html[data-theme="light"] .cal-tc-sym {
  color: #17243a !important;
}

html[data-theme="light"] .cal-tc-setup {
  color: #4f617d !important;
}

html[data-theme="light"] .aside-add-trade-btn {
  background: linear-gradient(145deg, #f6d98b, #d9ad53) !important;
  color: #241b09 !important;
  box-shadow: 0 4px 0 #a47b2e, 0 8px 18px rgba(183, 137, 53, 0.3) !important;
}

html[data-theme="light"] .aside-add-trade-btn:hover {
  background: linear-gradient(145deg, #ffdf97, #e4b85c) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr !important;
  }
  .calendar-main {
    border-right: none !important;
    border-bottom: 1px solid rgba(216, 175, 89, 0.25) !important;
  }
  .calendar-aside {
    border-left: none !important;
  }
  .calendar-month-strip {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .calendar-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .calendar-controls {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .calendar-month-strip {
    grid-template-columns: 1fr 1fr !important;
    padding: 12px 14px !important;
  }
  .calendar-day {
    min-height: 72px !important;
    padding: 5px 4px !important;
  }
  .cal-day-num {
    font-size: 10px !important;
    width: 20px !important;
    height: 20px !important;
  }
  .cal-day-pnl {
    font-size: 9px !important;
  }
  .cal-trade-count, .cal-trade-r {
    display: none !important;
  }
}
