:root {
  --nav-height: 108px;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --neutral-dark: #0f172a;
  --neutral-text: #334155;
  --neutral-muted: #64748b;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

@media (min-width: 769px) {
  :root {
    --nav-height: 60px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--neutral-text);
  background-color: var(--bg-page);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neutral-dark);
  text-decoration: none;
}

.brand-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Admin-only denetimi */
.admin-only {
  display: none !important;
}
body.is-admin .admin-only {
  display: flex !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  padding: 0 0.85rem;
  border-radius: var(--radius);
  color: var(--neutral-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  width: 22px;
  height: 22px;
}

.nav-label {
  display: inline-block;
  line-height: 1;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#btnQuickNewRes, #btnLogout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  font-size: 0.85rem;
  padding: 0 0.65rem;
  background: #f1f5f9;
  border-radius: 20px;
  border: 1px solid var(--border);
  line-height: 1;
  vertical-align: middle;
}

.role-tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 600;
}

.role-admin {
  background: #e0e7ff;
  color: #3730a3;
}

.role-staff {
  background: #f1f5f9;
  color: #475569;
}

/* Layout Containers */
.main-container {
  max-width: 1400px;
  margin: 1.25rem auto;
  padding: 0 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neutral-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: #15803d;
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border);
  color: var(--neutral-text);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--neutral-dark);
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #ffffff;
  color: var(--neutral-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

/* Cards & Stats */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--neutral-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--neutral-muted);
  font-weight: 500;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-confirmed {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-checked_in {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-checked_out {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  text-decoration: line-through;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid #fde68a;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: var(--neutral-dark);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================================
   REZERVASYON TAKVİMİ (TIMELINE / GANTT MATRIX)
   ========================================================================== */

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  position: sticky;
  top: var(--nav-height, 60px);
  z-index: 60;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: top 0.15s ease;
}

.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

#calBtnPrev, #calBtnToday, #calBtnNext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1;
  vertical-align: middle;
}

#calDateRangeLabel {
  display: inline-flex;
  align-items: center;
  height: 40px;
  line-height: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neutral-dark);
  margin: 0 0 0 0.35rem;
  padding: 0;
  vertical-align: middle;
}

.calendar-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cal-jump-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  vertical-align: middle;
}

.cal-jump-group label {
  margin: 0;
  line-height: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neutral-muted);
}

.cal-jump-group input[type="date"] {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}

.cal-days-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 40px;
  vertical-align: middle;
}

.cal-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  padding: 0 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1;
  vertical-align: middle;
}

.cal-view-btn.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  font-weight: 700;
}

.calendar-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  max-height: calc(100vh - 200px);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.calendar-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 900px;
}

/* Sticky Headers & Sticky Room Column */
.calendar-th-room-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
  background: #f1f5f9;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  min-width: 130px;
  width: 130px;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
  text-align: left;
}

.calendar-th-day {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid var(--border);
  padding: 0.5rem 0.35rem;
  text-align: center;
  min-width: 60px;
  font-size: 0.82rem;
  user-select: none;
}

.calendar-th-day.is-today {
  background: #eff6ff;
  border-bottom-color: var(--primary);
  font-weight: 700;
  color: var(--primary);
}

.calendar-th-day.is-weekend {
  background: #f8fafc;
  color: #64748b;
}

.calendar-td-room {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #ffffff;
  border-right: 2px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.calendar-td-room .room-capacity-badge {
  font-size: 0.72rem;
  color: var(--neutral-muted);
  font-weight: normal;
  display: block;
}

.calendar-row:hover .calendar-td-room {
  background: #f8fafc;
}

.calendar-td-cell {
  position: relative;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--border);
  height: 52px;
  min-width: 60px;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 2px;
}

.calendar-td-cell:hover {
  background: #f0fdf4;
}

.calendar-td-cell.is-today-col {
  background: #f8fafc;
}

/* Rezervasyon Barı / Kartı */
.res-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.res-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
  z-index: 15;
}

.res-pill-confirmed {
  background-color: #3b82f6;
  color: #ffffff;
  border-left: 4px solid #1d4ed8;
}

.res-pill-checked_in {
  background-color: #10b981;
  color: #ffffff;
  border-left: 4px solid #047857;
}

.res-pill-checked_out {
  background-color: #64748b;
  color: #ffffff;
  border-left: 4px solid #334155;
}

.res-pill-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-pill-sub {
  font-size: 0.68rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.15s ease-out;
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--neutral-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--neutral-dark);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 380px;
  animation: toastIn 0.2s ease-out;
}

.toast-success {
  background: #065f46;
}

.toast-danger {
  background: #991b1b;
}

.toast-warning {
  background: #92400e;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Nav & Responsiveness */
.calendar-container, .table-responsive, .nav-links {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .main-container {
    margin: 0.35rem auto 1.5rem auto;
    padding: 0 0.5rem;
  }
  .navbar {
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    gap: 0.35rem;
  }
  .brand {
    flex: 0 0 auto;
    max-width: 145px;
    font-size: 0.96rem;
    min-width: 0;
  }
  .brand #navHotelName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-right {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
  }
  #btnQuickNewRes {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  #btnLogout {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .user-badge {
    flex: 0 0 auto;
    height: 40px;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .user-badge #navUserName {
    display: none;
  }
  .role-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
  }

  /* Alt Gezinme Sekmeleri (Tam Satır Kaplayan Butonlar) */
  .navbar-inner nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
  }
  .nav-links {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    padding: 0.35rem 0 0.15rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.3rem;
    overflow: hidden;
    list-style: none;
  }
  .nav-links li {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
  }
  body.is-admin .nav-links li.admin-only {
    display: flex !important;
  }
  .nav-link {
    width: 100%;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.15rem;
    border-radius: 8px;
    gap: 3px;
    text-align: center;
    transition: all 0.15s ease;
  }
  .nav-link .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    font-size: 1.35rem;
    line-height: 1;
    margin: 0 auto;
  }
  .nav-link .nav-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    display: block;
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px;
  }
  .nav-link.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--primary);
  }

  /* Buton Boyutları (Belirgin ve Dokunmatik Dostu) */
  .btn {
    min-height: 42px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 0.95rem;
  }
  .btn-sm {
    min-height: 38px;
    padding: 0.42rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 7px;
  }

  /* Sabit (Sticky) Takvim Toolbarı */
  .calendar-toolbar {
    position: sticky;
    top: var(--nav-height, 108px);
    z-index: 85;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 0.55rem 0.65rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  .calendar-nav-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  #calDateRangeLabel {
    width: 100%;
    height: auto;
    text-align: center;
    order: -1;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 0 0 0.15rem 0;
    display: block;
  }
  #calBtnPrev, #calBtnToday, #calBtnNext {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    box-sizing: border-box;
    padding: 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
  }
  .calendar-filter-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .cal-days-group {
    width: 100%;
    display: flex;
    gap: 0.35rem;
    height: 40px;
    align-items: center;
  }
  .cal-view-btn {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    box-sizing: border-box;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    padding: 0 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
  }
  .cal-jump-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    box-sizing: border-box;
  }
  .cal-jump-group label {
    margin: 0;
    line-height: 1;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--neutral-muted);
  }
  .cal-jump-group input[type="date"] {
    flex: 1 1 auto;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    padding: 0 0.5rem !important;
    font-size: 0.86rem !important;
    border-radius: 8px !important;
    line-height: 1 !important;
  }

  /* Takvim Konteyneri */
  .calendar-container {
    max-height: calc(100dvh - 235px);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .calendar-th-room-corner, .calendar-td-room {
    min-width: 110px;
    width: 110px;
    font-size: 0.84rem;
    padding: 0.45rem 0.6rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  /* iOS Safari otomatik zoom yapmasını önlemek için 16px taban */
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end; /* Modern alt açılır çekmece (Bottom sheet) */
  }
  .modal-dialog {
    max-width: 100%;
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
  }
  .modal-header {
    padding: 0.85rem 1.1rem;
  }
  .modal-body {
    padding: 1rem;
  }
  .modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .modal-footer .btn {
    width: 100% !important;
    min-height: 44px;
    justify-content: center;
    font-size: 0.95rem;
    margin: 0 !important;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-link {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    padding: 0.35rem 0.1rem;
    gap: 2px;
  }
  .nav-link .nav-icon {
    font-size: 1.3rem;
  }
  .nav-link .nav-label {
    font-size: 0.76rem;
  }
  .btn-sm {
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    font-size: 0.83rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .page-header .btn {
    width: 100%;
  }
}
