:root {
  /* Layout */
  --container-width: 96%;
  --main-radius: 12px;
  --item-radius: 8px;
  --small-radius: 6px;

  /* Spacing (Khoảng cách) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;

  /* Typography */
  --font-sm: 0.85rem;
  --font-base: 0.9rem;
  --font-md: 1.125rem;
  --font-lg: 1.25rem;

  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-brand: #dc3545;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-ring: #2563eb;
  --color-border: #d1d5db;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-primary: #2563eb;
  --color-primary-text: #ffffff;
  --color-gray-bg: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === THIẾT LẬP CƠ BẢN & RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background-color: #f9fafb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* === LAYOUT CONTAINER CHÍNH === */
.container-custom,
.bg-white,
.profile-box,
.admin-card,
.dashboard-container {
  width: var(--container-width);
  margin-inline: auto;
  padding: var(--space-lg);
  border-radius: var(--main-radius);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-md);
  margin-block-end: var(--space-lg);
  border: 1px solid var(--color-border);
}

.landing-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 18%),
    radial-gradient(circle at bottom left, rgba(74, 222, 128, 0.12), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.landing-shell::before,
.landing-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.landing-shell::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -70px;
  background: rgba(59, 130, 246, 0.07);
}

.landing-shell::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -90px;
  background: rgba(34, 197, 94, 0.08);
}

.landing-shell > * {
  position: relative;
  z-index: 1;
}

/* === FORM & BUTTONS (TỪ INDEX.PHP) === */
.form-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--main-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.logo {
  font-size: var(--font-lg);
  font-weight: 800;
  letter-spacing: .3px;
  text-align: center;
  color: var(--color-brand);
  margin: 0 0 var(--space-sm) 0;
}

.tagline {
  font-size: var(--font-base);
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 var(--space-lg) 0;
}

.guest-priority-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  padding: clamp(20px, 4vw, 32px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(135deg, #0f9f4a 0%, #22c55e 55%, #84cc16 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.28);
  overflow: hidden;
}

.guest-priority-box::before,
.guest-priority-box::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.guest-priority-box::before {
  width: 180px;
  height: 180px;
  top: -70px;
  right: -30px;
}

.guest-priority-box::after {
  width: 130px;
  height: 130px;
  bottom: -55px;
  left: -35px;
}

.guest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-priority-title {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.12;
  font-weight: 900;
}

.guest-priority-text {
  position: relative;
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.94);
}

.btn-guest-primary {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 18px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fff7 100%);
  color: #11753c;
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(9, 55, 25, 0.22);
  animation: guestPulse 2.4s ease-in-out infinite;
}

.btn-guest-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf3 100%);
  color: #0c6a34;
  box-shadow: 0 22px 38px rgba(9, 55, 25, 0.28);
  transform: translateY(-2px) scale(1.01);
}

.login-secondary-note {
  margin: 0 0 18px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.entry-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 26px;
  border: 1px solid rgba(147, 197, 253, 0.4);
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.5), transparent 24%),
    radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.38), transparent 26%),
    linear-gradient(135deg, #f2fff5 0%, #fbfdff 48%, #eef7ff 100%);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 22px;
}

.entry-content {
  text-align: left;
}

.entry-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0ecff 0%, #eef6ff 100%);
  color: #1e40af;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-panel-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.08;
  font-weight: 900;
  color: #0f172a;
}

.entry-panel-text {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.entry-button-stack {
  display: grid;
  gap: 14px;
}

.entry-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 86px;
  padding: 16px 18px;
  border-radius: 22px;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.entry-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  font-size: 1.25rem;
}

.entry-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.entry-card-title {
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.2;
}

.entry-card-hint {
  font-size: 0.88rem;
  line-height: 1.35;
  opacity: 0.92;
}

.entry-card-primary {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 58%, #84cc16 100%);
  color: #ffffff;
  border: 1px solid rgba(21, 128, 61, 0.2);
  box-shadow: 0 16px 28px rgba(34, 197, 94, 0.24);
}

.entry-card-primary .entry-card-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.entry-card-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 58%, #65a30d 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(34, 197, 94, 0.28);
}

.entry-card-secondary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
}

.entry-card-secondary .entry-card-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.entry-card-secondary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.24);
}

.home-return-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.home-return-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.lang-switch {
  text-align: end;
  margin-bottom: var(--space-md);
  font-size: var(--font-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  user-select: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-ring) 30%, transparent);
  border-radius: 999px;
}

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

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.35), transparent 40%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}
.btn:active::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms ease, transform 300ms ease;
}

.btn-google {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: #3c4043;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.btn-google:hover {
  background: color-mix(in oklab, var(--color-bg) 85%, #f5f7fa);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}
.google-icon {
  width: 18px;
  height: 18px;
}

.btn-guest {
  background: var(--color-success);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  border: 1px solid color-mix(in oklab, var(--color-success) 60%, #000 0%);
}
.btn-guest:hover {
  background: color-mix(in oklab, var(--color-success) 88%, #000 12%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.btn-outline-info {
  color: dimgray;
}

.social-links {
  text-align: center;
  margin-top: var(--space-md);
}
.social-links p {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-sm);
  color: var(--color-muted);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 40px;
  border-radius: var(--item-radius);
  border: 1px solid var(--color-border);
  margin: 0 var(--space-xs);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  text-decoration: none;
}
.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
}
.social-links img {
  width: 22px;
  height: 22px;
}
.social-links .inline-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin: 0 2px;
}
.social-links span {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.message {
  padding: var(--space-md);
  border-radius: var(--item-radius);
  margin-bottom: var(--space-md);
  text-align: center;
  font-weight: 600;
  color: #fff;
  animation: slideIn 0.5s ease-in-out;
}
.bg-danger {
  background-color: var(--color-danger) !important;
}
.bg-success {
   background-color: var(--color-success) !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes guestPulse {
  0%, 100% {
    box-shadow: 0 18px 34px rgba(9, 55, 25, 0.22);
  }
  50% {
    box-shadow: 0 22px 42px rgba(9, 55, 25, 0.34);
  }
}

/* === NAVBAR === */
.navbar {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--item-radius);
  border: 1px solid var(--color-border);
}

.navbar-brand {
  color: var(--color-text) !important;
  font-weight: 700;
  font-size: var(--font-lg);
}
.navbar-brand:hover {
    color: var(--color-brand) !important;
}

.section-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
}

.btn-create-order {
  background-color: var(--color-brand);
  color: #ffffff;
  border: 1px solid var(--color-brand);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  width: auto;
}

.btn-create-order:hover {
  background: color-mix(in oklab, var(--color-brand) 85%, #000 15%);
  border-color: color-mix(in oklab, var(--color-brand) 85%, #000 15%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.pagination .page-link {
  color: var(--color-brand);
}

.pagination .page-link:hover {
  color: color-mix(in oklab, var(--color-brand) 85%, #000 15%);
  background-color: #f4f4f4;
}

.promo-links-box {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--main-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}
.promo-links-box p {
  font-size: var(--font-base);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-md);
}
.promo-links-box a {
  display: inline-block;
  margin: 0 var(--space-sm);
  text-align: center;
  text-decoration: none;
}
.promo-links-box img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}
.promo-links-box .inline-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 2px;
}
.promo-links-box a:hover img {
  transform: scale(1.1) translateY(-1px);
}
.promo-links-box span {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.create-shipment {
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.input-group {
   border: 1px solid var(--color-border);
   border-radius: var(--item-radius);
   transition: border-color .18s ease, box-shadow .18s ease;
}
.input-group:focus-within {
   border-color: var(--color-ring);
   box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-ring) 30%, transparent);
}
.input-group .form-control {
   border: none;
   box-shadow: none !important;
}
.input-group .input-group-text {
   background: transparent;
   border: none;
   cursor: pointer;
   color: var(--color-muted);
}
.input-group .input-group-text:hover {
   color: var(--color-text);
}

.utility-page-layout {
  justify-content: center !important;
  align-items: center;
  padding: var(--space-lg);
}

/* Hộp thông báo */
.status-box {
  background: var(--color-bg);
  padding: var(--space-lg);
  border-radius: var(--main-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 600px;
  width: 100%;
  border: 1px solid var(--color-border);
}

.status-box-icon {
  font-size: clamp(60px, 10vw, 80px);
  margin-bottom: var(--space-md);
  line-height: 1;
}
.status-icon-success {
  color: var(--color-success);
}
.status-icon-danger {
  color: var(--color-danger);
}

.status-box-title {
  font-size: clamp(24px, 5vw, 28px);
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.status-box-text {
  font-size: var(--font-base);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--item-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.admin-card {
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--item-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
}

.spinner-overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#deleteConfirmModal {
    z-index: 10100 !important;
}
.modal-content {
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--main-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.input-group .eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--color-muted);
}

.order-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--main-radius);
    background: var(--color-bg-alt);
}
.order-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-sm);
}
.order-item {
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--small-radius);
    background: var(--color-bg);
    text-align: center;
    font-size: var(--font-base);
    box-shadow: var(--shadow-sm);
}

.search-container {
    position: relative;
    margin-bottom: var(--space-md);
}
.search-row, .date-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.suggestion-box {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    width: 100%;
    max-width: 800px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--item-radius);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}
.suggestion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-base);
}
.suggestion-table th,
.suggestion-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.suggestion-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
.suggestion-table tr:hover {
    background-color: var(--color-bg-alt);
}
.suggestion-table tr:last-child td {
    border-bottom: none;
}

.search-button, .filter-button {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-base);
    background-color: var(--color-ring);
    color: white;
    border-radius: var(--small-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}
.search-button:hover, .filter-button:hover {
    background-color: color-mix(in oklab, var(--color-ring) 85%, #000 15%);
}

.search-input, .date-input, .select-range input {
    width: 100%;
    max-width: 373px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--item-radius);
    font-size: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
}
.date-input { max-width: 180px; }
.select-range input { width: 80px; max-width: 80px; }

.select-range {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sort-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: var(--space-xs);
    color: var(--color-muted);
}
.sort-asc::after { content: '↑'; }
.sort-desc::after { content: '↓'; }

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
}

/* BẢNG DỮ LIỆU DASHBOARD */
.table-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: var(--main-radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--color-bg);
}
.table th, .table td {
    padding: var(--space-md);
    font-size: var(--font-base);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    color: var(--color-text);
}
.table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
    position: sticky;
    top: 0;
    z-index: 1;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:hover {
    background-color: var(--color-bg-alt);
}

.btn-custom {
    min-width: 120px;
    height: 44px;
    font-size: var(--font-base);
    line-height: 1.5;
    border-radius: var(--item-radius);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    white-space: normal;
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: none;
    color: var(--color-text);
}
.btn-custom:hover {
    transform: translateY(-2px);
    background: var(--color-bg-alt);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-custom:active {
    transform: translateY(0);
}
.btn-custom i {
    font-size: var(--font-md);
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 1280px) {
    .dashboard-container,
    .admin-card {
        padding: var(--space-md);
    }
}

@media (max-width: 900px) {
    body {
        padding-block: var(--space-md);
    }
    
    .container-custom,
    .bg-white,
    .profile-box,
    .admin-card,
    .dashboard-container {
        width: 100%;
        margin-block-end: var(--space-md);
    }
    
    .search-row,
    .date-filter-row,
    .select-range {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .search-input,
    .date-input,
    .select-range input,
    .search-button,
    .filter-button {
        max-width: 100%;
    }
    
    .table-container {
        max-height: 400px;
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
        width: 100%;
    }
    
    .navbar {
        flex-direction: column;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    .navbar-nav .nav-item,
    .navbar-nav .nav-link,
    .navbar-nav .btn-custom {
        width: 100%;
    }
    
    .order-list {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 640px) {
  .container-custom, .form-box {
    width: 96%;
    padding: clamp(18px, 4vw, 24px);
  }

  .guest-priority-box {
    padding: 20px 16px 22px;
    border-radius: 20px;
  }

  .guest-priority-text {
    font-size: 0.94rem;
  }

  .btn-guest-primary {
    padding: 16px 18px;
    font-size: 0.96rem;
  }

  .entry-panel {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .entry-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-content {
    text-align: center;
  }

  .entry-panel-text {
    margin: 0 auto;
  }

  .entry-card {
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .entry-card-title {
    font-size: 1rem;
  }

  .entry-card-hint {
    font-size: 0.83rem;
  }
}

/* === HIỆU ỨNG TƯƠNG TÁC TỪ MAIN.CSS === */

:where(.btn, .btn-custom, .nav-link, .search-input, .date-input, .select-range input, .navbar-toggler):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
    border-radius: var(--item-radius);
}

.btn-custom {
    transition: box-shadow 200ms ease, transform 120ms ease, opacity 200ms ease, background-color 200ms ease, color 200ms ease;
    will-change: transform, box-shadow;
}
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.06);
}
.btn-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.search-input, .date-input, .select-range input {
    transition: border-color 180ms ease, box-shadow 200ms ease;
}
.search-input:focus, .date-input:focus, .select-range input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    outline: none;
}
.navbar-nav .nav-link {
    transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
    border-radius: var(--item-radius);
}
.navbar-nav .nav-link:hover {
    background-color: var(--color-bg-alt);
}
.navbar-brand {
    transition: color 160ms ease, transform 120ms ease;
}
.navbar-brand:hover {
    transform: translateY(-1px);
}
@media (hover: hover) and (pointer: fine) {
  .bg-white:hover, .profile-box:hover, .admin-card:hover {
      box-shadow: var(--shadow-lg);
      transition: box-shadow 220ms ease, transform 160ms ease;
  }
}
.table-container thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
table tbody tr:nth-child(odd) td {
    background: #fafbfc;
}
table tbody tr:hover td {
    background: #eef2ff;
}
.modal[style*="display: block"],
.modal.open {
    animation: fadeIn 180ms ease;
}
@keyframes fadeIn {
    from { opacity: 0 }
    to   { opacity: 1 }
}
.modal .modal-content {
    animation: popIn 220ms ease;
}
@keyframes popIn {
    from { transform: translateY(6px); opacity: 0 }
    to   { transform: translateY(0); opacity: 1 }
}
.hover-lift {
    transition: transform 160ms ease, box-shadow 200ms ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
.table-container::-webkit-scrollbar,
.suggestion-box::-webkit-scrollbar,
.order-list-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}
.table-container::-webkit-scrollbar-thumb,
.suggestion-box::-webkit-scrollbar-thumb,
.order-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
.table-container::-webkit-scrollbar-track,
.suggestion-box::-webkit-scrollbar-track,
.order-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.btn-green-shipment {
  background-color: #28a745; /* Màu xanh lá cây */
  border-color: #28a745;
  color: #ffffff;
}

.btn-green-shipment:hover {
  background-color: #218838; /* Màu đậm hơn khi di chuột */
  border-color: #1e7e34;
}

.btn-purple-shipment {
  background-color: #25d8c9; /* Màu tím */
  border-color: #25d8c9;
  color: #ffffff;
}

.btn-purple-shipment:hover {
  background-color: #00dac7;
  border-color: #00dac7;
}
.btn-orange-shipment {
  background-color: #ff6600; /* Màu cam */
  border-color: #ff6600;
  color: #ffffff;
}
.btn-orange-shipment:hover {
  background-color: #e65c00; /* Màu đậm hơn khi di chuột */
  border-color: #cc5200;
}
