/* ========================= */
/* RESET BÁSICO */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* BODY */
/* ========================= */
body {
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #0f172a;
  color: white;
}

/* ========================= */
/* APP LAYER */
/* ========================= */
#app {
  position: relative;
  z-index: 1;
}

/* ========================= */
/* 🔐 LOGIN PREMIUM */
/* ========================= */
.login-screen {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #020617, #0f172a);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.login-box {
  background: #ffffff;
  color: #000;
  width: 340px;
  padding: 35px 25px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  position: relative;
  z-index: 10000;
  transform: none !important;
  animation: none !important;
}

.login-logo {
  width: 180px;
  display: block;
  margin: 0 auto 15px;
  object-fit: contain;
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #0f172a;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  transition: 0.2s;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.login-box input:focus {
  border-color: #0ea5c6;
  box-shadow: 0 0 0 2px rgba(14, 165, 198, 0.2);
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0f3b78, #0ea5c6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  position: relative;
  z-index: 10000;
}

.login-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========================= */
/* SIDEBAR PREMIUM */
/* ========================= */
.sidebar {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #020617, #0f172a);
  position: fixed;
  left: 0;
  top: 0;
  padding: 20px 15px;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.logo {
  position: relative;
  text-align: center;
  margin-bottom: 25px;
  padding: 18px 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 59, 120, 0.25), rgba(14, 165, 198, 0.15));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(14,165,198,0.25), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.logo::after {
  content: "Punta Cana Going Tours";
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 4px;
  color: #94a3b8;
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.sidebar-logo {
  width: 150px;
  display: block;
  margin: 0 auto 6px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* ========================= */
/* MENU */
/* ========================= */
.menu-item {
  display: block;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
}

.menu-item:hover {
  background: rgba(14, 165, 198, 0.1);
  color: #ffffff;
  transform: translateX(5px);
}

.menu-item.active {
  background: linear-gradient(135deg, #0f3b78, #0ea5c6);
  box-shadow: 0 6px 15px rgba(14,165,198,0.25);
  color: #ffffff;
  font-weight: bold;
}

/* BOTÓN LOGOUT */
.sidebar button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #ef4444;
  border-radius: 8px;
  font-weight: bold;
}

.sidebar button:hover {
  background: #dc2626;
}

/* ========================= */
/* MAIN */
/* ========================= */
.main {
  margin-left: 260px;
  padding: 20px;
  width: calc(100% - 260px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.main.shift {
  margin-left: 0;
  width: 100%;
}

/* ========================= */
/* BOTÓN SIDEBAR */
/* ========================= */
#toggleBtn {
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-bottom: 20px;
}

/* ========================= */
/* INPUTS GENERALES */
/* ========================= */
input,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

/* ========================= */
/* BOTONES GENERALES */
/* ========================= */
button {
  padding: 10px 15px;
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background: #1d4ed8;
}

/* ========================= */
/* 🎟️ BASE VOUCHER */
/* ========================= */
.voucher-container {
  position: relative;
  background: #ffffff;
  color: #000;
  max-width: 720px;
  margin: auto;
  padding: 18px;
  border-radius: 14px;
  font-family: Arial, sans-serif;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.voucher-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  background: url("assets/logo.png") no-repeat center;
  background-size: contain;
  transform: translate(-50%, -50%) rotate(-15deg);
  opacity: 0.04;
  pointer-events: none;
}

.voucher-container * {
  position: relative;
  z-index: 1;
}

/* ========================= */
/* 🎟️ PREMIUM VOUCHER UI COMPACTO */
/* ========================= */
.premium-voucher {
  background: #ffffff;
  color: #111827;
  border-top: 6px solid #0f3b78;
}

.voucher-header {
  text-align: center;
  margin-bottom: 12px;
}

.voucher-logo {
  width: 180px;
  display: block;
  margin: 0 auto 6px;
  object-fit: contain;
}

.voucher-tagline {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #0ea5c6;
  margin-bottom: 4px;
}

.voucher-contact {
  font-size: 10px;
  color: #4b5563;
}

.voucher-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
  border: 1px solid #dbeafe;
  border-radius: 10px;
}

.voucher-title {
  margin: 0;
  font-size: 18px;
  color: #0f3b78;
  text-align: left;
}

.voucher-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: #6b7280;
  text-align: left;
}

.voucher-status {
  background: #0f3b78;
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.voucher-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.voucher-card h3 {
  margin-bottom: 8px;
  font-size: 13px;
  color: #0f3b78;
}

.voucher-highlight {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
  border: 1px solid #bae6fd;
}

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.voucher-grid div {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 9px;
  border: 1px solid #e5e7eb;
}

.voucher-grid span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  margin-bottom: 2px;
}

.voucher-grid strong {
  font-size: 12px;
  color: #111827;
}

.voucher-total {
  color: #0f3b78;
  font-size: 17px !important;
}

.voucher-policies {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: #374151;
  margin-top: 4px;
}

.voucher-policies h4 {
  margin: 6px 0 4px;
  color: #0ea5c6;
  font-size: 11px;
}

.voucher-policies p {
  margin: 0 0 6px;
}

.voucher-footer {
  text-align: center;
  margin-top: 6px;
  color: #4b5563;
  font-size: 11px;
}

.voucher-actions {
  margin-top: 14px;
  text-align: center;
}

.voucher-actions button {
  margin: 4px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #0f3b78;
  color: #fff;
  font-size: 12px;
}

.voucher-actions button:hover {
  background: #0b2e5d;
}

/* ========================= */
/* OVERLAY MÓVIL */
/* ========================= */
.mobile-overlay {
  display: none;
  z-index: 999;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 15px;
  }

  .main.shift {
    margin-left: 0;
    width: 100%;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .mobile-overlay.active {
    display: block;
  }

  .premium-voucher {
    padding: 14px;
  }

  .voucher-logo {
    width: 150px;
  }

  .voucher-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .voucher-grid {
    grid-template-columns: 1fr;
  }

  .voucher-status {
    align-self: flex-start;
  }

  .login-box {
    width: calc(100% - 30px);
    max-width: 340px;
  }

  .login-logo,
  .sidebar-logo {
    width: 160px;
  }
}

/* ========================= */
/* PRINT */
/* ========================= */
@media print {
  body {
    background: white;
  }

  .sidebar,
  #toggleBtn,
  .voucher-actions,
  .mobile-overlay {
    display: none !important;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 0;
  }

  .voucher-container,
  .premium-voucher {
    box-shadow: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-top: 5px solid #0f3b78;
  }

  .voucher-container::before {
    opacity: 0.03;
    width: 360px;
    height: 360px;
  }

  .voucher-card {
    break-inside: avoid;
    margin-bottom: 8px;
  }

  .voucher-topbar {
    margin: 10px 0;
    padding: 8px 10px;
    background: #f8fafc !important;
  }

  .voucher-title {
    font-size: 16px;
  }

  .voucher-subtitle,
  .voucher-contact,
  .voucher-footer {
    font-size: 10px;
  }

  .voucher-policies {
    font-size: 9px;
    line-height: 1.25;
  }
}

/* ========================= */
/* ANIMACIÓN LOGIN */
/* ========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* 📄 EXPORT MODE VOUCHER */
/* ========================= */
.export-mode {
  width: 794px !important;
  max-width: 794px !important;
  margin: 0 auto !important;
  padding: 14px !important;
  border-top: 5px solid #0f3b78 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.export-mode::before {
  width: 340px !important;
  height: 340px !important;
  opacity: 0.03 !important;
}

.export-mode .voucher-header {
  margin-bottom: 8px !important;
}

.export-mode .voucher-logo {
  width: 145px !important;
  margin: 0 auto 4px !important;
}

.export-mode .voucher-tagline {
  font-size: 9px !important;
  margin-bottom: 2px !important;
}

.export-mode .voucher-contact {
  font-size: 9px !important;
}

.export-mode .voucher-topbar {
  margin: 8px 0 !important;
  padding: 8px 10px !important;
  gap: 8px !important;
}

.export-mode .voucher-title {
  font-size: 16px !important;
}

.export-mode .voucher-subtitle {
  font-size: 10px !important;
  margin-top: 2px !important;
}

.export-mode .voucher-status {
  font-size: 9px !important;
  padding: 6px 10px !important;
}

.export-mode .voucher-card {
  padding: 10px !important;
  margin-bottom: 8px !important;
  border-radius: 8px !important;
}

.export-mode .voucher-card h3 {
  font-size: 12px !important;
  margin-bottom: 6px !important;
}

.export-mode .voucher-grid {
  gap: 6px !important;
}

.export-mode .voucher-grid div {
  padding: 7px !important;
}

.export-mode .voucher-grid span {
  font-size: 8px !important;
  margin-bottom: 2px !important;
}

.export-mode .voucher-grid strong {
  font-size: 11px !important;
}

.export-mode .voucher-total {
  font-size: 15px !important;
}

.export-mode .voucher-policies {
  font-size: 8.5px !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}

.export-mode .voucher-policies h4 {
  font-size: 10px !important;
  margin: 4px 0 2px !important;
}

.export-mode .voucher-policies p {
  margin: 0 0 4px !important;
}

.export-mode .voucher-footer {
  font-size: 10px !important;
  margin-top: 4px !important;
}

.export-mode .voucher-actions {
  display: none !important;
}

.reservations-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  overflow: hidden;
}

.reservations-table th,
.reservations-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.95rem;
}

.reservations-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.reservations-table tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.badge-cash {
  background: #fef3c7;
  color: #92400e;
}

.badge-payment {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-paid {
  background: #dcfce7;
  color: #166534;
}

.badge-confirmed {
  background: #ccfbf1;
  color: #0f766e;
}

.badge-manual {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-web {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-panel {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-default {
  background: #e5e7eb;
  color: #374151;
}
