/* Enhanced styling for a more attractive UI */
body {
  background-color: #f0f4f8;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #4f46e5;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4f46e5;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Update the receipt styling for thermal printing */
.receipt {
  width: 80mm;
  padding: 5mm;
  font-family: "Arial", sans-serif;
  text-align: center;
  background-color: white;
}

.receipt-header {
  margin-bottom: 5mm;
  border-bottom: 1px dashed #000;
  padding-bottom: 3mm;
}

.receipt-header h2 {
  font-size: 14pt;
  font-weight: bold;
  margin: 0 0 2mm 0;
  color: #000;
}

.receipt-qr {
  margin: 5mm auto;
  width: 40mm;
  height: 40mm;
  display: flex;
  justify-content: center;
  align-items: center;
}

.receipt-voucher {
  margin: 5mm 0;
  padding: 2mm;
  border: 1px dashed #000;
}

.receipt-voucher h3 {
  font-size: 10pt;
  margin: 0 0 2mm 0;
  color: #000;
  text-transform: uppercase;
}

.voucher-code {
  font-size: 16pt;
  font-weight: 900;
  letter-spacing: 1px;
  color: #000;
}

.receipt-details {
  margin: 5mm 0;
  font-size: 9pt;
  text-align: left;
  color: #000;
}

.receipt-details p {
  margin: 1mm 0;
}

.receipt-footer {
  font-size: 9pt;
  border-top: 1px dashed #000;
  padding-top: 3mm;
  text-align: center;
  margin-top: 5mm;
  color: #000;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Enhanced UI Elements */
button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Dashboard stats cards */
.stats-card {
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.stats-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stats-card.primary {
  border-left-color: #4f46e5;
}

.stats-card.success {
  border-left-color: #10b981;
}

.stats-card.info {
  border-left-color: #3b82f6;
}

.stats-card.warning {
  border-left-color: #f59e0b;
}

/* Form styling */
input,
select,
textarea {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Table styling */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table th,
table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Modal styling */
.modal {
  animation: modalFadeIn 0.3s ease-out;
}

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

/* Add user menu dropdown styling */
#user-menu-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Make entire card clickable */
.card-hover {
  cursor: pointer;
}
