/* ==========================================================================
   NHÀ HÀNG HƯNG VƯỢNG - GIAO DIỆN ĐEN TRẮNG ĐIỂM NHẤN VÀNG HOÀNG KIM
   TỐI ƯU HÓA HOÀN TOÀN CHO ĐIỆN THOẠI & MÁY TÍNH
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #070a12;
  --bg-card: #10172a;
  --bg-card-hover: #17223b;
  --bg-input: #0b1120;
  --border-color: #24324f;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Thẻ Card tông màu đen viền sáng */
.dark-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.dark-card:hover {
  border-color: #475569;
}

/* Ô nhập liệu chữ to, màu trắng tinh khiết, viền rõ nét */
.dark-input {
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: all 0.2s ease;
  min-height: 48px; /* Tối ưu cho cảm ứng điện thoại */
}

.dark-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.dark-input option {
  background-color: #0b1120;
  color: #ffffff;
}

/* Nút bấm VÀNG HOÀNG KIM (Điểm nhấn giao diện) */
.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000000 !important;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
  min-height: 46px;
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(1px);
}

/* Nút phụ màu tối viền trắng */
.btn-dark {
  background-color: #1e293b;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  min-height: 46px;
}

.btn-dark:hover {
  background-color: #334155;
  color: #ffffff !important;
  border-color: #64748b;
}

/* Huy hiệu trạng thái độ tương phản cao */
.badge-gold {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.25);
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-blue {
  background-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Checkbox to dễ chạm trên màn hình cảm ứng */
input[type="checkbox"].custom-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--accent-gold);
  cursor: pointer;
  border-radius: 6px;
}

/* Thanh cuộn ngang mượt mà cho điện thoại */
.scroll-touch {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: #273553;
  border-radius: 4px;
}

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

/* ==========================================================================
   TỐI ƯU HÓA MÀN HÌNH ĐIỆN THOẠI (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .dark-card {
    padding: 1rem !important;
    border-radius: 12px;
  }

  .nav-tab-btn {
    padding: 0.6rem 0.9rem !important;
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   CHẾ ĐỘ IN ẤN (PRINT FRIENDLY)
   ========================================================================== */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 13pt !important;
  }

  .no-print, nav, header, aside, .btn-gold, .btn-dark, footer, .modal-backdrop {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .dark-card {
    background-color: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    color: #000000 !important;
  }

  table, th, td {
    border: 1px solid #000000 !important;
    padding: 8px !important;
    color: #000000 !important;
  }

  th {
    background-color: #f0f0f0 !important;
    font-weight: bold !important;
  }

  .print-sheet {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
  }
}
