@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --sidebar: #0f172a;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--sidebar);
}

.brand-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sidebar);
}

.form-control {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-primary {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.language-switch a {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

.language-switch a.active {
  color: #ffffff;
  background: var(--sidebar);
  border-color: var(--sidebar);
}

.forgot-link {
  margin-top: 18px;
  text-align: center;
}

.forgot-link a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.small-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.sidebar {
  background: var(--sidebar);
  color: white;
  min-height: 100vh;
  padding: 24px 18px;
}

.sidebar-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 34px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav a {
  color: #cbd5e1;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.main-area {
  min-width: 0;
}

.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.topbar-user {
  font-size: 14px;
  font-weight: 800;
  color: var(--sidebar);
}

.page-content {
  padding: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -1px;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

.content-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
}

.panel-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.panel-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 20px;
}

.muted-text {
  color: var(--muted);
  font-size: 14px;
}

.table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.table-row strong {
  display: block;
  font-size: 14px;
}

.table-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  background: #eef2ff;
  color: #3730a3 !important;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 800;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .textarea {
  min-height: 90px;
  padding-top: 14px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 20px;
  color: var(--sidebar);
}

.status-off {
  background: #fef2f2 !important;
  color: #991b1b !important;
}
.page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.category-row {
  align-items: flex-start;
  gap: 16px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-form {
  display: inline;
}

.action-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--sidebar);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.action-btn:hover {
  background: #f8fafc;
}

.danger-btn {
  color: #991b1b;
  border-color: #fecaca;
}

.btn-secondary {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--sidebar);
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.25);
}

.modal-large {
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
}

.floor-panel {
  margin-top: 24px;
}

.floor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.floor-table {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-height: 120px;
  background: white;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.floor-table-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.floor-table-top strong {
  font-size: 15px;
  font-weight: 800;
}

.floor-table-top span {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.floor-table-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.floor-available {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.floor-available .floor-table-top span {
  background: #dcfce7;
  color: #166534;
}

.floor-occupied {
  border-color: #fde68a;
  background: #fffbeb;
}

.floor-occupied .floor-table-top span {
  background: #fef3c7;
  color: #92400e;
}

.floor-waiting_payment {
  border-color: #fed7aa;
  background: #fff7ed;
}

.floor-waiting_payment .floor-table-top span {
  background: #ffedd5;
  color: #9a3412;
}

.floor-cleaning {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.floor-cleaning .floor-table-top span {
  background: #e2e8f0;
  color: #334155;
}

.floor-reserved {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.floor-reserved .floor-table-top span {
  background: #dbeafe;
  color: #1d4ed8;
}

.floor-out_of_service {
  border-color: #fecaca;
  background: #fef2f2;
}

.floor-out_of_service .floor-table-top span {
  background: #fee2e2;
  color: #991b1b;
}

.server-table-form {
  margin-top: 18px;
}

.server-guests {
  height: 42px;
  margin-bottom: 10px;
}

.server-btn {
  height: 44px;
  font-size: 13px;
}

.server-current-order {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.server-link-btn {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: var(--sidebar);
  color: white;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
}

.two-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.no-margin {
  margin-top: 0 !important;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.report-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 120px;
}

.report-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.report-green {
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.report-green .report-icon {
  background: #dcfce7;
  color: #166534;
}

.report-blue {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.report-blue .report-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.report-orange {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.report-orange .report-icon {
  background: #ffedd5;
  color: #c2410c;
}

.report-purple {
  background: linear-gradient(135deg, #ffffff, #faf5ff);
}

.report-purple .report-icon {
  background: #f3e8ff;
  color: #7e22ce;
}

.second-row .report-card {
  min-height: 100px;
}

.reports-chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-top: 22px;
  margin-bottom: 22px;
}

.chart-card {
  padding: 26px;
}

.chart-card canvas {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .reports-grid,
  .reports-chart-grid {
    grid-template-columns: 1fr;
  }
.reports-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.export-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.export-btn {
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--sidebar);
  color: white;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.export-btn:hover {
  opacity: 0.92;
}

.export-btn-light {
  background: white;
  color: var(--sidebar);
  border: 1px solid var(--border);
}
