@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #FAF6F0;
  /* Warm ivory pub background */
  --bg-secondary: #FFFFFF;
  /* Clean white cards & headers */
  --bg-tertiary: #F3ECE2;
  /* Light warm-gray background for inactive elements */
  --accent: #D97706;
  /* Deep amber beer color */
  --accent-hover: #B45309;
  /* Dark amber hover color */
  --accent-light: rgba(217, 119, 6, 0.08);
  --text-main: #1E293B;
  /* Slate 800 for high-contrast typography */
  --text-muted: #64748B;
  /* Slate 500 */
  --color-free: #10B981;
  /* Emerald green */
  --color-free-hover: #059669;
  --color-free-bg: rgba(16, 185, 129, 0.12);
  --color-busy: #EF4444;
  /* Crimson red */
  --color-busy-hover: #DC2626;
  --color-busy-bg: rgba(239, 68, 68, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 8px 12px -6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 16px;
  /* Scaled up base font size */
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Header Styles (Bigger) */
.main-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-section h1 {
  font-size: 28px;
  /* Bigger */
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 60%, var(--accent));
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  font-size: 34px;
  /* Bigger */
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.time-display {
  font-size: 30px;
  color: #000000;
  font-variant-numeric: tabular-nums;
  background: none;
  border: none;
  font-weight: 600;
  padding: 0;
}

/* Bigger Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  /* More padding */
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  /* Bigger */
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.btn-danger {
  background-color: var(--color-busy);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background-color: var(--color-busy-hover);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background-color: var(--color-free);
  color: white;
}

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

/* Main Grid Layout for POS */
.main-content {
  flex: 1;
  padding: 32px;
  /* Bigger padding */
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* POS Index Tables Grid (Bigger cards) */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  /* Larger columns */
  gap: 24px;
  margin-top: 32px;
}

.table-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-decoration: none;
  min-height: 200px;
  height: 200px;
}

.table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transition: var(--transition);
}

.table-card.status-free::before {
  background-color: var(--color-free);
}

.table-card.status-free {
  border-color: rgba(16, 185, 129, 0.15);
}

.table-card.status-free:hover {
  border-color: var(--color-free);
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.08);
}

.table-card.status-busy::before {
  background-color: var(--color-busy);
}

.table-card.status-busy {
  border-color: rgba(239, 68, 68, 0.25);
  background-color: rgba(239, 68, 68, 0.01);
}

.table-card.status-busy:hover {
  border-color: var(--color-busy);
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.08);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-free .status-dot {
  background-color: var(--color-free);
  box-shadow: 0 0 6px var(--color-free);
}

.status-busy .status-dot {
  background-color: var(--color-busy);
  box-shadow: 0 0 8px var(--color-busy);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.table-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 12px 0;
  text-align: center;
}

.table-time {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.table-sum {
  font-size: 24px;
  color: var(--accent);
  font-weight: 800;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.table-sum small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: lowercase;
}

.table-empty-label {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

.table-status-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin: 0 auto;
}

.status-free .table-status-label {
  color: var(--color-free);
  background-color: var(--color-free-bg);
}

.status-busy .table-status-label {
  color: var(--color-busy);
  background-color: var(--color-busy-bg);
}

/* POS Table Order Layout (Bigger Columns) */
.pos-container {
  display: grid;
  grid-template-columns: 1fr 450px;
  /* Wider receipt side for laptops */
  gap: 32px;
  height: calc(100vh - 150px);
  overflow: hidden;
}

.products-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

/* Bigger Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.category-tab {
  white-space: nowrap;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 22px;
  /* Bigger padding */
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  /* Bigger */
  font-weight: 600;
  transition: var(--transition);
}

.category-tab:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.category-tab.active {
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.products-grid-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Bigger Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  /* Bigger cards */
  gap: 20px;
  padding-bottom: 32px;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  /* Bigger padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.product-name {
  font-size: 18px;
  /* Bigger */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.product-price {
  font-size: 16px;
  /* Bigger */
  font-weight: 700;
  color: var(--accent);
}

/* Receipt Side Panel (Bigger) */
.receipt-side {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.receipt-header {
  padding: 20px 24px;
  /* More padding */
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.01);
}

.receipt-header h2 {
  font-size: 22px;
  /* Bigger */
  font-weight: 700;
}

.receipt-header .order-num {
  font-size: 14px;
  /* Bigger */
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 6px;
}

.receipt-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-receipt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 16px;
}

.empty-receipt-icon {
  font-size: 64px;
  /* Bigger */
  opacity: 0.3;
}

/* Bigger Receipt Items */
.receipt-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.01);
  padding: 14px 18px;
  /* Bigger */
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-name {
  font-size: 16px;
  /* Bigger */
  font-weight: 600;
  color: var(--text-main);
}

.item-price {
  font-size: 14px;
  /* Bigger */
  color: var(--accent);
  font-weight: 700;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bigger Quantity Control Buttons for laptop clicks */
.qty-btn {
  width: 36px;
  /* Increased from 28px */
  height: 36px;
  /* Increased from 28px */
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  /* Bigger text */
  font-weight: 700;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.qty-val {
  font-size: 16px;
  /* Bigger */
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.delete-item-btn {
  background: none;
  border: none;
  color: var(--color-busy);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
}

.delete-item-btn:hover {
  background-color: var(--color-busy-bg);
}

.delete-item-btn svg {
  width: 18px;
  /* Bigger */
  height: 18px;
}

/* Bigger Receipt Footer */
.receipt-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  /* Bigger */
  color: var(--text-muted);
  font-weight: 500;
}

.total-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  /* Bigger */
  font-weight: 800;
  color: var(--text-main);
}

.total-price-value {
  color: var(--accent);
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.receipt-actions .btn {
  height: 52px;
  /* Bigger button height */
  font-size: 16px;
}

.receipt-actions-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Management Panel Styles (Bigger layout) */
.boshqaruv-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  /* Wider sidebar */
  gap: 32px;
  min-height: calc(100vh - 150px);
}

.boshqaruv-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  box-shadow: var(--shadow);
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  /* Bigger padding */
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 16px;
  /* Bigger */
  text-decoration: none;
}

.sidebar-tab:hover {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.sidebar-tab.active {
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}

.boshqaruv-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  /* Bigger padding */
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 24px;
  /* Bigger */
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  color: var(--text-main);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 15px;
  /* Bigger */
  color: var(--text-muted);
  font-weight: 600;
}

.form-control {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  /* Bigger padding */
  color: var(--text-main);
  font-family: var(--font);
  font-size: 15px;
  /* Bigger */
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-inline-container {
  background: rgba(0, 0, 0, 0.01);
  padding: 24px;
  /* Bigger */
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* Grid splits */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Tables and Lists (Bigger) */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  /* Bigger */
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  /* Bigger padding */
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: rgba(0, 0, 0, 0.01);
  color: var(--text-muted);
  font-weight: 700;
}

.data-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.005);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  /* Bigger */
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.badge-success {
  background-color: var(--color-free-bg);
  color: var(--color-free);
}

.badge-danger {
  background-color: var(--color-busy-bg);
  color: var(--color-busy);
}

/* Reports Specific Styles */
.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

.stat-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  /* Bigger */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 34px;
  /* Bigger */
  font-weight: 800;
  color: var(--accent);
}

.filter-bar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.report-details-box {
  background-color: rgba(0, 0, 0, 0.015);
  padding: 14px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  line-height: 1.5;
}

/* Alerts */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 24px;
  border: 1px solid transparent;
  font-weight: 500;
}

.alert-success {
  background-color: #DEF7EC;
  border-color: #BCF0DA;
  color: #03543F;
}

.alert-danger {
  background-color: #FDE8E8;
  border-color: #FBD5D5;
  color: #9B1C1C;
}

/* Print styles for thermal printer */
#print-receipt-section {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body * {
    visibility: hidden;
  }

  #print-receipt-section,
  #print-receipt-section * {
    visibility: visible;
  }

  #print-receipt-section {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 300px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px;
    background: #fff;
  }
}

/* Setup & Login Containers Styles */
.setup-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 480px;
  padding: 40px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.setup-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setup-desc {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}