:root {
  --bg: #1d1d1d;
  --panel: #16300f;
  --panel-2: #071007;
  --text: #e6edf7;
  --muted: rgba(230, 237, 247, .7);
  --border: rgba(255, 255, 255, .08);
  --accent: #4f8cff;
  --ok: rgba(34, 197, 94, .18);
  --err: rgba(239, 68, 68, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(circle at top right, #1f2335 0%, #151515 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-right: 1px solid var(--border);
  padding: 18px 14px;

  /* Flex layout for content internally */
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 14px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(79, 140, 255, .8);
}

.brand h1 {
  font-size: 14px;
  margin: 0;
  letter-spacing: .4px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;

  /* To push footer down if there is space */
  flex: 1;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}

.nav a:hover {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav a.active {
  color: var(--text);
  border-color: rgba(79, 140, 255, .35);
  background: rgba(79, 140, 255, .14);
}

.main {
  flex: 1;
  padding: 22px;
}

.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

input,
select,
button {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}

button {
  cursor: pointer;
  background: rgba(79, 140, 255, .18);
  border-color: rgba(79, 140, 255, .35);
}

button:hover {
  background: rgba(79, 140, 255, .25);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, .03);
}

tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.flash {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.flash.ok {
  background: var(--ok);
}

.flash.error {
  background: var(--err);
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
  opacity: .9;
}

small.muted {
  color: var(--muted);
}

.day-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.day-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  min-width: 84px;
  align-items: center;
  color: var(--muted);
}

.day-tab:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.day-tab.active {
  color: var(--text);
  border-color: rgba(79, 140, 255, .35);
  background: rgba(79, 140, 255, .14);
}

.day-tab.today {
  box-shadow: 0 0 0 1px rgba(79, 140, 255, .25) inset;
}

.day-name {
  font-weight: 700;
  font-size: 13px;
}

.day-date {
  font-size: 12px;
}

.calendar-wrap {
  overflow: auto;
  border-radius: 16px;
}

.calendar {
  min-width: 1200px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cal-head,
.cal-row {
  display: grid;
  grid-template-columns: 260px repeat(var(--slots), 64px);
}

.cal-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 26, 48, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.court-cell {
  position: sticky;
  left: 0;
  z-index: 25;
  background: rgb(17 28 13);
  border-right: 1px solid var(--border);
  padding: 12px;
}

.court-cell.head {
  font-weight: 700;
}

.court-title {
  font-weight: 800;
}

.court-sub {
  font-size: 12px;
  margin-top: 4px;
}

.head-slot {
  padding: 10px 6px;
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  text-align: center;
  background: rgba(255, 255, 255, .02);
}

.head-slot.hour {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.cal-row {
  position: relative;
  min-height: 74px;
  border-bottom: 1px solid var(--border);
}

.slot {
  border-left: 1px solid rgba(255, 255, 255, .06);
}

.slot.hour {
  background: rgba(255, 255, 255, .02);
}

.event {
  z-index: 40;
  align-self: center;
  margin: 8px 6px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.event-name {
  font-weight: 800;
}

.event-sub {
  font-size: 11px;
  opacity: .85;
  margin-top: 2px;
}

/* Colores por estado */
.status-CONFIRMED {
  background: rgba(34, 197, 94, .22);
  border-color: rgba(34, 197, 94, .35);
}

.status-PENDING {
  background: rgba(59, 130, 246, .22);
  border-color: rgba(59, 130, 246, .35);
}

.status-CANCELLED {
  background: rgba(156, 163, 175, .18);
  border-color: rgba(156, 163, 175, .28);
}

.status-NO_SHOW {
  background: rgba(239, 68, 68, .22);
  border-color: rgba(239, 68, 68, .35);
}

.button {
  cursor: pointer;
  background: rgba(79, 140, 255, .18);
  border-color: rgba(79, 140, 255, .35);
}


/* ===== Topbar & Hamburger ===== */
.topbar {
  display: none;
  /* aparece solo en pantallas chicas */
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: rgba(230, 237, 247, .85);
  border-radius: 999px;
}

.topbar-title .topbar-name {
  font-weight: 800;
  letter-spacing: .2px;
}

.topbar-title .topbar-sub {
  font-size: 12px;
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 900;
}



/* ===== Responsive Sidebar (off-canvas) ===== */
@media (min-width:900px) {
  .icon-btn {
    display: none;
  }
}


@media (max-width: 900px) {
  .app {
    display: block;
    /* main ocupa todo */
  }

  .topbar {
    display: flex;
  }

  .main {
    padding: 16px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    transform: translateX(-110%);
    transition: transform .2s ease;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
    /* evita scroll detrás */
  }
}

/* ===== Extra: tablas más cómodas en móvil ===== */
.table-wrap {
  overflow: auto;
  border-radius: 14px;
}

/* cancha seccion cancha */

.court-cell-ui {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-icon {
  width: 54px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.field-svg {
  width: 46px;
  height: 28px;
  display: block;
}

/* El SVG usa estas clases */
.field-fill {
  fill: var(--field-fill);
}

.field-stroke {
  fill: none;
  stroke: var(--field-stroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}

/* Activa (verde) */
.field--active {
  --field-fill: rgba(34, 197, 94, .22);
  --field-stroke: rgba(34, 197, 94, .70);
  box-shadow: 0 0 22px rgba(34, 197, 94, .12);
}

/* Inactiva (rojo) */
.field--inactive {
  --field-fill: rgba(239, 68, 68, .20);
  --field-stroke: rgba(239, 68, 68, .70);
  box-shadow: 0 0 22px rgba(239, 68, 68, .10);
}

.court-name {
  font-weight: 900;
  letter-spacing: .2px;
}

.court-desc {
  font-size: 12px;
  margin-top: 2px;
}

/* Pills de estado */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
}

.pill-ok {
  background: rgba(34, 197, 94, .16);
  border-color: rgba(34, 197, 94, .30);
}

.pill-bad {
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .30);
}


/* ==============================
   CALENDARIO: scroll dentro del card
   ============================== */


/* ==============================
   FIX GRID: eventos sobre la misma fila
   ============================== */

/* todo lo del row vive en la misma fila del grid */
.cal-row .court-cell,
.cal-row .slot,
.cal-row .event {
  grid-row: 1;
}

.cal-row.is-inactive {
  opacity: .90;
}

/* =========================================
   CALENDARIO - Color para canchas inactivas
   ========================================= */

.cal-row.is-inactive {
  opacity: 1;
  /* anulamos la opacidad para poder colorear bien */
}

/* Fondo de toda la fila (los slots) */
.cal-row.is-inactive .slot {
  background: rgba(239, 68, 68, .06);
  /* rojo suave */
}

/* Panel izquierdo de la cancha */
.cal-row.is-inactive .court-cell {
  background: rgba(239, 68, 68, .14);
  /* rojo suave */
  border-right-color: rgba(239, 68, 68, .28);
}

/* Título y subtítulo un poco más apagados */
.cal-row.is-inactive .court-title {
  opacity: .85;
}

.cal-row.is-inactive .court-sub {
  opacity: .75;
}

/* Si hay reservas en cancha inactiva (por datos viejos), las “apaga” */
.cal-row.is-inactive .event {
  filter: grayscale(.25);
  opacity: .85;
}

/* =========================================
   CALENDARIO: card 100% ancho + scroll SOLO adentro
   ========================================= */

/* 1) Nunca scroll horizontal en toda la página */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Por si algún child empuja el layout */
.main {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2) El card ocupa el 100% del ancho disponible */
.card-calendar {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* lo que se salga, NO empuja la página */
}

/* 3) El scroll horizontal/vertical vive SOLO acá */
.card-calendar .calendar-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  /* ✅ scroll horizontal SOLO del calendario */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 4) El calendario puede ser más ancho que el wrap (y ahí aparece el scroll) */
.card-calendar .calendar {
  width: max-content;
  min-width: 100%;
  /* si entra, ocupa todo; si no entra, scrollea */
}

/* (Opcional pro) Si querés que el card/calendario "llene" la altura visible */
.card-calendar {
  display: flex;
  flex-direction: column;
}

.card-calendar .calendar-wrap {
  flex: 1;
  min-height: 0;
  /* clave para que el overflow funcione en flex */
}


/* ===== Dashboard layout ===== */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

/* 50% en desktop */
.col-6 {
  grid-column: span 6;
}

/* Responsive: 100% en pantallas chicas */
@media (max-width: 1024px) {
  .col-6 {
    grid-column: span 12;
  }
}

/* ===== Widget Card ===== */
.widget-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.muted {
  opacity: .75;
}

/* Header */
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.widget-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.widget-sub {
  margin: 6px 0 0;
  font-size: 13px;
}

/* Actions */
.widget-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
}

.btn-link.primary {
  border-color: rgba(99, 102, 241, .35);
  background: rgba(99, 102, 241, .16);
}

/* List */
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;

  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.widget-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.widget-left {
  min-width: 0;
}

.widget-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.widget-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.widget-court {
  font-size: 13px;
}

.widget-meta {
  margin-top: 6px;
  font-size: 12px;
  opacity: .8;
}

/* Empty state */
.empty-state {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .02);
  opacity: .9;
}

/* ===== Badges por estado ===== */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .16);
  white-space: nowrap;
}

/* Ajustá según tus estados reales */
.badge-confirmed {
  color: rgba(134, 239, 172, .95);
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .35);
}

.badge-pending {
  color: rgba(253, 230, 138, .95);
  background: rgba(234, 179, 8, .14);
  border-color: rgba(234, 179, 8, .35);
}

.badge-cancelled,
.badge-canceled {
  color: rgba(253, 164, 175, .95);
  background: rgba(244, 63, 94, .14);
  border-color: rgba(244, 63, 94, .35);
}

.badge-pending-payment {
  color: #ff9f43;
  background: rgba(255, 159, 67, 0.15);
  border-color: rgba(255, 159, 67, 0.4);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.1);
}



/* CANCHA */

.live-wrap {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-top: 8px
}

@media (max-width:900px) {
  .live-wrap {
    flex-direction: column
  }
}

.court-anim {
  position: relative;
  width: 210px;
  min-width: 210px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25)
}

.court-lines {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14)
}

.court-lines:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .12)
}

.court-lines:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14)
}

.dot-track {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 99px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .75) 2px, transparent 2px);
  background-size: 14px 8px;
  background-position: 0 0;
  opacity: .85;
  animation: dotsMove 1.1s linear infinite
}

@keyframes dotsMove {
  from {
    background-position: 0 0
  }

  to {
    background-position: 14px 0
  }
}

.ball {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 18px rgba(255, 255, 255, .35);
  animation: ballMove 1.8s ease-in-out infinite
}

@keyframes ballMove {
  0% {
    left: 16px;
    opacity: .9
  }

  50% {
    left: calc(100% - 26px);
    opacity: 1
  }

  100% {
    left: 16px;
    opacity: .9
  }
}

.live-info {
  flex: 1;
  min-width: 0
}

.live-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.live-name {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10)
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: rgba(99, 102, 241, .55)
}

/* BOTON USUARIO */

/* Sidebar en columna para poder empujar el footer abajo */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Tu nav ocupa el espacio y empuja el footer */
.nav {
  flex: 1;
}

/* Footer abajo */
.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  position: relative;
}

/* Botón usuario */

.user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  color: #eaeaea;
  cursor: pointer;
}

.user-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.user-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5aa0ff;
  box-shadow: 0 0 0 4px rgba(90, 160, 255, .12);
}

.user-text {
  flex: 1;
  text-align: left;
  font-size: 12px;
  opacity: .95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chev {
  opacity: .8;
}

/* Dropdown */
.user-menu {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  z-index: 50;
}

.user-menu-item {
  display: block;
  padding: 12px 12px;
  color: #eaeaea;
  text-decoration: none;
  font-size: 13px;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, .08);
}

.user-menu-item.danger {
  color: #ff7a7a;
}

/* ESTILOS DE FORMUlARI */

/* ===== Formularios (usa tu paleta) ===== */

/* card contenedor del form */
.form-card {
  max-width: 920px;
  background: rgba(255, 255, 255, .03);
  /* igual que .card / widget */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

/* título */
.form-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
}

/* grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.field {
  grid-column: span 12;
}

@media (min-width: 900px) {
  .col-6 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 4;
  }

  .col-8 {
    grid-column: span 8;
  }
}

/* labels y ayudas */
.label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* inputs/selects con tu look */
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.form-card input::placeholder {
  color: rgba(230, 237, 247, .35);
}

/* focus con tu accent */
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: rgba(79, 140, 255, .45);
  /* --accent */
  box-shadow: 0 0 0 4px rgba(79, 140, 255, .14);
}

/* estado disabled */
.form-card input:disabled,
.form-card select:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* botones alineados */
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* botón principal (igual a tu button) */
.btn-primary {
  cursor: pointer;
  background: rgba(79, 140, 255, .18);
  border: 1px solid rgba(79, 140, 255, .35);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
}

.btn-primary:hover {
  background: rgba(79, 140, 255, .25);
}

/* botón secundario */
.btn-ghost {
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
}

/* opcional: inputs date/time/number más parejos */
.form-card input[type="date"],
.form-card input[type="time"],
.form-card input[type="number"] {
  color-scheme: dark;
}

.event.cal-paid {
  background: rgba(34, 197, 94, .18);
  border: 1px solid rgba(34, 197, 94, .35);
}

.event.cal-pendingpay {
  background: rgba(79, 140, 255, .16);
  border: 1px solid rgba(79, 140, 255, .35);
}

.event.cal-deposit {
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .38);
}

.event.cal-noshow {
  background: rgba(239, 68, 68, .16);
  border: 1px solid rgba(239, 68, 68, .35);
}

.event.cal-cancelled {
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .25);
  opacity: .75;
  text-decoration: line-through;
}

/* PLANILLA RESPONSIVE  */


/* ====== Reservas Index - Cards en todas las pantallas ====== */

/* filtro arriba */
.resv-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Tabla opcional oculta por defecto */
.desk-only {
  display: none;
}

/* tabla compacta (por si la activás con JS) */
.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  white-space: nowrap;
}

.table td.wrap {
  white-space: normal;
}

.table thead th {
  opacity: .85;
  text-align: left;
}

.table-compact th,
.table-compact td {
  padding: 9px 10px;
}

.cell-main {
  font-weight: 600;
}

.cell-sub {
  font-size: 12px;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline {
  display: inline;
  margin: 0;
}

.btn-link.danger {
  color: rgba(239, 68, 68, 1);
}

.btn-link.primary {
  color: var(--accent);
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge.b-paid {
  background: rgba(34, 197, 94, .18);
  border-color: rgba(34, 197, 94, .35);
}

.badge.b-pending {
  background: rgba(79, 140, 255, .16);
  border-color: rgba(79, 140, 255, .35);
}

.badge.b-deposit {
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .38);
}

/* Cards */
.resv-cards {
  display: grid;
  gap: 12px;
}

/* desktop: 2 columnas */
@media (min-width: 861px) {
  .resv-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* pantallas grandes: 3 columnas */
@media (min-width: 1200px) {
  .resv-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Tarjeta */
.resv-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  padding: 12px;
}

/* un poquito más premium en desktop */
@media (min-width: 861px) {
  .resv-card {
    padding: 14px;
    border-radius: 18px;
  }
}

.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.rc-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rc-time {
  font-weight: 800;
  letter-spacing: .2px;
}

.rc-court {
  font-size: 12px;
}

@media (min-width: 861px) {
  .rc-time {
    font-size: 15px;
  }
}

.rc-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.rc-customer {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

@media (min-width: 861px) {
  .rc-customer {
    font-size: 15px;
  }
}

.rc-amount {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.rc-sub {
  margin-top: 8px;
  font-size: 12px;
}

.rc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.rc-actions form {
  margin: 0;
}

/* botones compactos (si ya tenés btn-sm, esto lo ajusta) */
.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
  width: 100%;
}

/* si tu .btn-ghost no tiene "danger" */
.btn-ghost.danger {
  border-color: rgba(239, 68, 68, .35);
  color: rgba(239, 68, 68, 1);
}

/* si en desktop querés 3 botones en una fila, podés cambiarlo acá */
@media (min-width: 1200px) {
  .rc-actions {
    grid-template-columns: 1fr 1fr;
  }
}


/* Estilos Login */

/* =========================
   LOGIN (usa tu paleta actual)
   ========================= */

body.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 14px;

  /* fondo coherente con tu app (panel/panel-2) */
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(79, 140, 255, .18), transparent 60%),
    radial-gradient(820px 520px at 85% 75%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, var(--bg), #121212);
}

/* contenedor */
.auth-wrap {
  width: 100%;
  max-width: 420px;
}

/* header tipo brand (igual vibe sidebar) */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 14px;
}

.auth-logo {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(79, 140, 255, .8);
  flex: 0 0 auto;
}

.auth-brand-title {
  font-size: 14px;
  margin: 0;
  letter-spacing: .4px;
  font-weight: 900;
}

.auth-brand-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* card (igual a tu .card pero más premium) */
.auth-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  overflow: hidden;
  position: relative;
}

/* glow suave arriba */
.auth-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 220px;
  background: radial-gradient(circle at 40% 40%, rgba(79, 140, 255, .16), transparent 60%);
  pointer-events: none;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  position: relative;
}

.auth-subtitle {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
}

/* alert error (usa tu --err) */
.auth-alert {
  background: var(--err);
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  position: relative;
}

/* campos */
.auth-form {
  position: relative;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
}

.auth-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .05s;
}

.auth-input::placeholder {
  color: rgba(230, 237, 247, .35);
}

/* focus igual a tus forms */
.auth-input:focus {
  border-color: rgba(79, 140, 255, .45);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, .14);
}

/* fila */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}

.auth-check input {
  accent-color: var(--accent);
}

/* botón (mismo estilo que tu button/btn-primary pero full-width y más pro) */
.auth-btn {
  width: 100%;
  margin-top: 14px;
  cursor: pointer;

  background: rgba(79, 140, 255, .18);
  border: 1px solid rgba(79, 140, 255, .35);
  color: var(--text);

  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .2px;

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  background: rgba(79, 140, 255, .25);
}

.auth-btn:active {
  transform: translateY(0px);
}

/* footer */
.auth-foot {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* mobile */
@media (max-width: 380px) {
  body.auth-body {
    padding: 22px 12px;
  }

  .auth-card {
    padding: 14px;
  }
}



/* Fix for Windows dropdowns */
select option {
  color: #000;
  background-color: #fff;
}

/* Fix Sidebar Height */
.sidebar {
  min-height: 100vh;
  height: 100%;
}

/* Improve Tab Buttons */
.btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Sticky Sidebar for Desktop */
@media (min-width: 901px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
  }
}

/* Minimalist Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-footer {
  margin-top: auto;
}

/* Sticky/Fixed Sidebar for Desktop */
@media (min-width: 901px) {
  .app {
    padding-left: 260px;
    /* Space for fixed sidebar */
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    z-index: 50;
    overflow-y: auto;
    border-right: 1px solid var(--border);
  }
}