/* JSCalendar - Tema Modern 2025
   Skin: modern-2025
   Estilo: Neumorphism suave + header oscuro
   Tamaño: ~10% mas grande que original
   Uso: <link rel="stylesheet" href="extra/jscalendar/skins/modern-2025/theme.css" />
*/

div.calendar { position: relative; }

.calendar, .calendar table {
  border: none;
  font-size: 11px;
  color: #1e293b;
  cursor: default;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}

.calendar {
  overflow: hidden;
}

.calendar table {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Header - Navegacion con gradiente oscuro */
.calendar .button {
  text-align: center;
  padding: 3px 4px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  transition: all 0.15s ease;
}

.calendar .nav {
  font-family: inherit;
}

.calendar .nav div {
  background: transparent;
  padding-right: 10px;
}

.calendar thead tr {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.calendar thead .headrow {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.calendar thead .title {
  font-weight: 600;
  text-align: center;
  padding: 3px;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.calendar thead .daynames {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.calendar thead .name {
  border-bottom: none;
  padding: 3px 2px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar thead .weekend {
  color: #ef4444;
}

.calendar thead .hilite {
  background: rgba(255,255,255,0.2);
  padding: 3px 4px;
  border-radius: 4px;
}

.calendar thead .active {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 3px 4px;
  border-radius: 4px;
}

/* Body - Dias del mes */
.calendar tbody {
  background: #f8fafc;
}

.calendar tbody .day {
  font-family: inherit;
  width: 2.2em;
  color: #334155;
  text-align: right;
  padding: 3px 4px 3px 2px;
  transition: all 0.15s ease;
  border-radius: 4px;
  font-weight: 500;
}

.calendar tbody .day:hover {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calendar tbody .day.othermonth {
  font-size: 80%;
  color: #cbd5e1;
}

.calendar tbody .day.othermonth.oweekend {
  color: #fda4af;
}

.calendar table .wn {
  padding: 3px 3px 3px 2px;
  border-right: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
}

.calendar tbody .rowhilite td,
.calendar tbody .rowhilite td.wn {
  background: #f1f5f9;
}

.calendar tbody td.today {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
}

.calendar tbody td.hilite {
  background: #fff;
  padding: 2px 3px 2px 1px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.calendar tbody td.active {
  padding: 3px 3px 2px 2px;
  background: #e0f2fe;
  border-radius: 4px;
}

.calendar tbody td.weekend {
  color: #ef4444;
}

.calendar tbody td.selected {
  font-weight: 600;
  border: none;
  padding: 2px 3px 2px 1px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
}

.calendar tbody .disabled {
  color: #e2e8f0;
}

.calendar tbody .emptycell {
  visibility: hidden;
}

.calendar tbody .emptyrow {
  display: none;
}

/* Footer - Status bar */
.calendar tfoot .footrow {
  text-align: center;
  background: #f8fafc;
  color: #64748b;
}

.calendar tfoot .ttip {
  padding: 3px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  color: #64748b;
  font-size: 11px;
  border-top: 1px solid #e2e8f0;
}

.calendar tfoot .hilite {
  background: #e0f2fe;
  border: none;
  color: #0284c7;
  padding: 2px 4px;
  border-radius: 3px;
}

.calendar tfoot .active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Combo boxes (meses/anios) */
.calendar .combo {
  position: absolute;
  display: none;
  top: 0px;
  left: 0px;
  width: 4.5em;
  cursor: default;
  border: none;
  background: #fff;
  color: #1e293b;
  z-index: 100;
  font-size: 90%;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
  text-align: center;
  padding: 2px 4px;
  transition: all 0.1s ease;
}

.calendar .combo .label-IEfix {
  width: 4.5em;
}

.calendar .combo .hilite {
  background: #e0f2fe;
  color: #0284c7;
}

.calendar .combo .active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  font-weight: 600;
}

/* Time picker */
.calendar td.time {
  border-top: 1px solid #e2e8f0;
  padding: 2px 0px;
  text-align: center;
  background: #f8fafc;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 1px 6px;
  font-weight: 600;
  background: #fff;
  color: #1e293b;
  border-radius: 3px;
  border: none;
}

.calendar td.time .hour,
.calendar td.time .minute {
  font-family: "SF Mono", Monaco, monospace;
}

.calendar td.time .ampm {
  text-align: center;
}

.calendar td.time .colon {
  padding: 0px 3px;
  font-weight: bold;
  color: #94a3b8;
}

.calendar td.time span.hilite {
  background: #e0f2fe;
  color: #0284c7;
}

.calendar td.time span.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
}
