/* ===== CALENDAR MODULE CSS ===== */

.grid-cal {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

/* Calendar card */
.cal-card { padding: 20px; }

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-month-title {
  font-size: 18px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}
.cal-nav-btn {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 8px; width: 34px; height: 34px;
  font-size: 18px; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: rgba(56,189,248,0.1); color: var(--text-primary); }

.cal-table { width: 100%; border-collapse: collapse; }
.cal-th {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.5px;
  text-transform: uppercase; padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.cal-cell {
  vertical-align: top;
  padding: 6px; height: 90px;
  border: 1px solid rgba(56,189,248,0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.cal-cell:hover:not(.empty) { background: rgba(56,189,248,0.05); }
.cal-cell.empty { cursor: default; opacity: 0.3; }
.cal-cell.today { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); }

.cal-day-num {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.today-num {
  background: var(--accent-gold);
  color: #0A1628;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

.cal-event-pill {
  font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}

/* Upcoming events sidebar */
.cal-upcoming-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(56,189,248,0.06);
}
.cal-upcoming-item:last-child { border-bottom: none; }
.cal-upcoming-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.cal-upcoming-info { flex: 1; }
.cal-upcoming-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cal-upcoming-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 900px) {
  .grid-cal { grid-template-columns: 1fr; }
  .cal-cell { height: 60px; }
  .cal-event-pill { display: none; }
}
