/* Debreceni Egyetem Zeneművészeti Kar – Teremfoglaló rendszer */

:root {
  --sidebar-width: 260px;
  --color-sidebar: #121e2d;
  --color-sidebar-active: linear-gradient(135deg, #d4a358 0%, #c0841d 100%);
  --color-gold: #d4a358;
  --color-gold-dark: #c0841d;
  --color-gold-hover: #c5913e;
  --color-bg: #f9f7f2;
  --color-navy: #0d1b2a;
  --color-eduid: #1a2233;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --color-green-bg: #e8f5e9;
  --color-green-text: #2e7d32;
  --color-green-event: #a5d6a7;
  --color-gold-event: #e6b450;
  --color-grey-event: #4a4a4a;
  --color-timeline-free: #a8d5a2;
  --color-timeline-busy: #d1d1d1;
  --color-mobile-header: #002147;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== APP LAYOUT ========== */

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--color-sidebar);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 1.25rem 1rem;
}

.sidebar__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sidebar__logo {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.sidebar__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff;
}

.sidebar__nav {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar__link.is-active {
  background: var(--color-sidebar-active);
  color: #fff;
  font-weight: 500;
}

.sidebar__link i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
}

.sidebar__badge {
  margin-left: auto;
  background: var(--color-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__footer .sidebar__link {
  font-size: 0.85rem;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #374151;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar__user-info {
  flex: 1;
  min-width: 0;
}

.sidebar__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.sidebar__user-role {
  font-size: 0.75rem;
  color: #9ca3af;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 1.75rem 2rem 2rem;
  min-height: 100vh;
}

/* ========== COMPONENTS ========== */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-header__sub {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold {
  background: var(--color-gold);
  color: #fff;
}

.btn--gold:hover {
  background: var(--color-gold-hover);
}

.btn--outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn--outline-gold:hover {
  background: rgba(212, 163, 88, 0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: #f3f4f6;
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.card__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.link-gold {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.link-gold:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge--confirmed {
  background: var(--color-green-bg);
  color: var(--color-green-text);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.15rem;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.icon-btn__dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0;
}

.icon-btn__dot--count {
  width: auto;
  height: auto;
  min-width: 16px;
  padding: 0 4px;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  line-height: 16px;
}

/* ========== HOME PAGE ========== */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.booking-card__time {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.booking-card__room {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.booking-card__instrument {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.booking-card__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 1rem;
}

.booking-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.booking-card__actions--mobile {
  display: none;
}

.fav-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.fav-list__item:last-child {
  border-bottom: none;
}

.fav-list__thumb {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.fav-list__info {
  flex: 1;
  min-width: 0;
}

.fav-list__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.fav-list__instrument {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.fav-list__star {
  color: var(--color-gold);
  font-size: 1.1rem;
  cursor: pointer;
}

.rooms-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.rooms-section__header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.room-card-mini {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.room-card-mini__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.room-card-mini__body {
  padding: 0.85rem;
}

.room-card-mini__name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.room-card-mini__instrument {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.room-card-mini__free {
  font-size: 0.8rem;
  color: var(--color-green-text);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

/* ========== SEARCH PAGE ========== */

.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.search-toolbar__input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-toolbar__input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.search-toolbar input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.search-toolbar select {
  padding: 0.7rem 2rem 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  min-width: 130px;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.view-toggle__btn {
  padding: 0.5rem 1rem;
  border: none;
  background: #f3f4f6;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-toggle__btn.is-active {
  background: var(--color-white);
  color: var(--color-gold);
}

.room-list__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  align-items: center;
}

.room-list__thumb {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.room-list__details {
  flex: 0 0 220px;
}

.room-list__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.room-list__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.room-list__specs {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.room-list__specs i {
  margin-right: 0.25rem;
  color: var(--color-gold);
}

.room-list__timeline-wrap {
  flex: 1;
  min-width: 0;
}

.timeline {
  position: relative;
  height: 28px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1.25rem;
}

.timeline__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.timeline__segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
}

.timeline__segment--free {
  background: var(--color-timeline-free);
}

.timeline__segment--busy {
  background: var(--color-timeline-busy);
}

.timeline__segment--break {
  background: repeating-linear-gradient(
    -45deg,
    #e5e7eb,
    #e5e7eb 4px,
    #f9fafb 4px,
    #f9fafb 8px
  );
}

.timeline__segment--mine {
  background: var(--color-grey-event);
}

.room-list__star {
  font-size: 1.25rem;
  color: #d1d5db;
  cursor: pointer;
  flex-shrink: 0;
}

.room-list__star.is-fav {
  color: var(--color-gold);
}

.legend {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* ========== ROOM DETAIL ========== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  color: var(--color-gold);
}

.room-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.room-detail__main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.room-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.room-detail__thumbs img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.85;
  border: 2px solid transparent;
}

.room-detail__thumbs img.is-active,
.room-detail__thumbs img:hover {
  opacity: 1;
  border-color: var(--color-gold);
}

.room-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.room-detail__header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.room-detail__star {
  color: var(--color-gold);
  font-size: 1.35rem;
  cursor: pointer;
}

.room-detail__type {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.room-detail__piano {
  margin-bottom: 1rem;
}

.room-detail__specs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.room-detail__specs span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.room-detail__specs i {
  color: var(--color-gold);
}

.room-detail h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.room-detail p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.booking-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.booking-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.date-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.date-carousel__btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-text-muted);
}

.date-carousel__days {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  overflow-x: auto;
}

.date-carousel__day {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
}

.date-carousel__day.is-selected {
  background: var(--color-gold);
  color: #fff;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.time-slot {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--color-gold);
}

.time-slot.is-selected {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}

/* ========== CALENDAR ========== */

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calendar-toolbar__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-toolbar__nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}

.calendar-toolbar__range {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0.5rem;
}

.calendar-grid {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.calendar-grid__header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border-bottom: 1px solid var(--color-border);
  background: #fafafa;
}

.calendar-grid__header-cell {
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.calendar-grid__header-cell .day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-top: 0.25rem;
}

.calendar-grid__header-cell.is-today .day-num {
  background: var(--color-gold);
  color: #fff;
}

.calendar-grid__body {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  position: relative;
  min-height: 640px;
}

.calendar-grid__times {
  border-right: 1px solid var(--color-border);
}

.calendar-grid__time-label {
  height: 48px;
  padding-right: 0.5rem;
  text-align: right;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid #f3f4f6;
  line-height: 48px;
}

.calendar-grid__day-col {
  position: relative;
  border-right: 1px solid #f3f4f6;
  min-height: 432px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 47px,
    #f3f4f6 47px,
    #f3f4f6 48px
  );
}

.calendar-grid__day-col:last-child {
  border-right: none;
}

.calendar-grid__hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #f3f4f6;
}

.calendar-event {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.calendar-event--confirmed {
  background: var(--color-green-event);
  color: #1b5e20;
}

.calendar-event--pending {
  background: var(--color-gold-event);
  color: #5d4037;
}

.calendar-event--office {
  background: var(--color-grey-event);
  color: #fff;
}

.calendar-event__label {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.85;
}

.calendar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

/* ========== LOGIN ========== */

.login-page {
  display: flex;
  min-height: 100vh;
}

.login-hero {
  flex: 0 0 45%;
  position: relative;
  background: var(--color-navy) url("https://images.unsplash.com/photo-1520523839897-bd9c13730e81?w=1200&q=80") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.82);
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero__logo {
  width: 100px;
  margin-bottom: 1.5rem;
}

.login-hero__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.login-hero__subtitle {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.login-hero__quote {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
  max-width: 280px;
  margin-bottom: 1rem;
}

.login-hero__line {
  width: 40px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
}

.login-form-panel {
  flex: 1;
  background: #fdfbf7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 200 120'%3E%3Cpath fill='%23d4a358' fill-opacity='0.06' d='M20 80 Q40 40 60 80 T100 80 T140 60 T180 80'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  position: relative;
}

.login-form-panel__lang {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.login-form-panel__lang:hover {
  color: var(--color-gold);
}

.login-form-panel__inner {
  max-width: 400px;
  margin: auto;
  width: 100%;
}

.login-form-panel h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-form-panel__intro {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.btn--eduid {
  width: 100%;
  background: var(--color-eduid);
  color: #fff;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.btn--eduid:hover {
  background: #243044;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 163, 88, 0.2);
}

.input-wrap__toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.link-forgot {
  color: var(--color-gold);
  font-weight: 600;
}

.link-forgot:hover {
  text-decoration: underline;
}

.info-box {
  display: flex;
  gap: 0.65rem;
  padding: 1rem;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.info-box i {
  color: var(--color-gold);
  margin-top: 0.1rem;
}

.login-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
}

/* Login mobile header (hidden on desktop) */
.login-mobile-header {
  display: none;
  text-align: center;
  padding: 1.5rem 1rem 0;
}

.login-mobile-header img {
  width: 64px;
  margin: 0 auto 0.75rem;
}

.login-mobile-header__uni {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  line-height: 1.35;
}

.login-mobile-header__sys {
  font-size: 0.65rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ========== MOBILE ========== */

.mobile-header {
  display: none;
  background: var(--color-mobile-header);
  color: #fff;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

.mobile-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-header__logo {
  width: 36px;
}

.mobile-header__text {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.mobile-header__menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-header--back {
  justify-content: flex-start;
  gap: 0.75rem;
}

.mobile-header--back .mobile-header__back {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-header--light {
  background: var(--color-white);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-header--light .mobile-header__add {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 90;
  justify-content: space-around;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
}

.bottom-nav__item i {
  font-size: 1.1rem;
}

.bottom-nav__item.is-active {
  color: var(--color-gold);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 95;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--color-sidebar);
  z-index: 100;
  padding: 1.5rem 1rem;
  transition: right 0.3s;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-overlay.is-visible {
  display: block;
}

/* Mobile calendar day strip */
.mobile-day-strip {
  display: none;
  padding: 1rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.mobile-day-strip__range {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mobile-day-strip__days {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.mobile-day-strip__day {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mobile-day-strip__day span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.mobile-day-strip__day.is-selected span {
  background: var(--color-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem auto 0;
}

.mobile-schedule {
  display: none;
  padding: 1rem;
  padding-bottom: 5rem;
}

.mobile-schedule__row {
  display: flex;
  gap: 0.75rem;
  min-height: 56px;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-schedule__time {
  width: 44px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  padding-top: 0.35rem;
  flex-shrink: 0;
}

.mobile-schedule__events {
  flex: 1;
  position: relative;
  min-height: 48px;
}

.mobile-event {
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.mobile-event--green {
  background: var(--color-green-event);
  color: #1b5e20;
}

.mobile-event--gold {
  background: var(--color-gold-event);
  color: #5d4037;
}

.mobile-event--grey {
  background: var(--color-grey-event);
  color: #fff;
}

.room-detail-mobile-cta {
  display: none;
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  z-index: 80;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
  .room-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .home-grid,
  .room-detail {
    grid-template-columns: 1fr;
  }

  .room-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-grid {
    overflow-x: auto;
  }

  .calendar-grid__header,
  .calendar-grid__body {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .booking-card__actions--desktop {
    display: none;
  }

  .booking-card__actions--mobile {
    display: block;
  }
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 4.5rem 1rem 5.5rem;
  }

  .mobile-header,
  .bottom-nav {
    display: flex;
  }

  .page-header__actions .btn--outline-gold span {
    display: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .room-cards {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .room-card-mini {
    min-width: 160px;
    scroll-snap-align: start;
  }

  .search-toolbar {
    flex-direction: column;
  }

  .search-toolbar select,
  .search-toolbar .btn--gold {
    width: 100%;
  }

  .room-list__item {
    flex-direction: column;
    align-items: stretch;
  }

  .room-list__thumb {
    width: 100%;
    height: 160px;
  }

  .room-list__details {
    flex: none;
  }

  .room-detail {
    grid-template-columns: 1fr;
  }

  .room-detail-mobile-cta {
    display: block;
  }

  .room-detail .btn--gold.btn--full {
    display: none;
  }

  .calendar-toolbar .view-toggle {
    width: 100%;
  }

  .calendar-grid {
    display: none;
  }

  .calendar-legend {
    display: none;
  }

  .mobile-day-strip,
  .mobile-schedule {
    display: block;
  }

  .main--calendar {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .main--calendar .page-header {
    display: none;
  }

  .login-page {
    flex-direction: column;
  }

  .login-hero {
    display: none;
  }

  .login-mobile-header {
    display: block;
  }

  .login-form-panel {
    padding: 1.5rem 1.25rem 2rem;
    min-height: 100vh;
  }

  .login-form-panel__lang {
    position: static;
    align-self: flex-end;
    margin-bottom: 0.5rem;
  }

  .login-form-panel {
    align-items: stretch;
  }

  .login-form-panel__inner {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .booking-card__actions {
    flex-direction: column;
  }

  .booking-card__actions .btn {
    width: 100%;
  }

  .time-slots {
    grid-template-columns: 1fr;
  }
}
