/* Estil de l'app de reserves — replica el llenguatge visual de la web de
   l'Aula ATECA (IES Josep Maria Llompart): Roboto, blanc i negre minimalista,
   cantonades rectes, tipografia molt marcada i accents de color. Pensat per
   anar sobre Bootstrap 5.3. */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #1b4fc4;       /* blau "pòster" de la web */
  /* Tematització de FullCalendar */
  --fc-button-bg-color: #000;
  --fc-button-border-color: #000;
  --fc-button-hover-bg-color: var(--accent);
  --fc-button-hover-border-color: var(--accent);
  --fc-button-active-bg-color: var(--accent);
  --fc-button-active-border-color: var(--accent);
  --fc-today-bg-color: rgba(27, 79, 196, .08);
  --fc-border-color: var(--line);
}

body {
  font-family: "Roboto", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

/* --- Navbar --- */
.navbar.ateca { background: #000; padding: .85rem 0; }
.navbar.ateca .navbar-brand {
  font-weight: 900; letter-spacing: -.02em; color: #fff; font-size: 1.05rem;
}
.navbar.ateca .navbar-brand small { font-weight: 400; opacity: .6; letter-spacing: 0; }
.navbar.ateca .nav-link { color: rgba(255,255,255,.72); font-weight: 500; }
.navbar.ateca .nav-link:hover, .navbar.ateca .nav-link.active { color: #fff; }
.navbar.ateca .navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar.ateca .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Capçalera de pàgina --- */
.page-head { padding: 44px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.page-head h1 { font-weight: 900; letter-spacing: -.03em; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .15em 0 .15em; line-height: 1.02; }
.page-head .lead { color: var(--muted); max-width: 62ch; margin: 0; }

/* --- Botons "ink" (estil minimal de la web) --- */
.btn-ink, .btn-outline-ink { border-radius: 0; font-weight: 600; }
.btn-ink { background: #000; color: #fff; border: 1px solid #000; }
.btn-ink:hover, .btn-ink:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline-ink { background: transparent; color: #000; border: 1px solid #000; }
.btn-outline-ink:hover, .btn-outline-ink:focus { background: #000; color: #fff; }

/* --- Targetes d'estadística --- */
.stat-card { border: 1px solid var(--line); border-radius: 0; padding: 16px 18px; height: 100%; }
.stat-card .n { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.stat-card .l { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--muted); margin-top: 6px; }

/* --- Formularis --- */
.form-control, .form-select { border-radius: 0; }
.form-control:focus, .form-select:focus { border-color: #000; box-shadow: 0 0 0 .15rem rgba(27,79,196,.18); }
.form-label { font-weight: 600; font-size: .9rem; }

/* --- Modal --- */
.modal-content { border-radius: 0; border: none; }

/* --- Llista d'equipament dins el formulari --- */
.equip-list { border: 1px solid var(--line); max-height: 200px; overflow-y: auto; padding: 4px 12px; background: #fafafa; }
.equip-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.equip-row .name { font-size: .9rem; }
.equip-row .name small { color: var(--muted); }
.equip-row input { width: 76px; }

/* --- Taules --- */
.table thead th { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted); }

/* --- Peu --- */
.site-footer { background: #000; color: #fff; padding: 46px 0 26px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { font-weight: 900; letter-spacing: -.02em; }
.site-footer .small { color: #6a6a6a; }

/* --- FullCalendar --- */
.fc .fc-toolbar-title { font-weight: 900; letter-spacing: -.02em; }
.fc .fc-button { border-radius: 0 !important; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number { text-decoration: none; color: var(--ink); }

/* --- Modal de reserva: scroll del cos quan el formulari és llarg ---
   El <form> és el contenidor flex (envolta capçalera, cos i peu). Cal que el
   cos pugui encongir-se (min-height:0) perquè l'overflow-y funcioni; si no,
   el valor per defecte min-height:auto del flex impedeix l'scroll. */
#reservationModal .modal-content { overflow: hidden; }
#reservation-form { min-height: 0; max-height: 100%; }
#reservation-form .modal-body { overflow-y: auto; min-height: 0; }
