body {
  font-size: 14px;
}

.toast {
  display: none;
  min-width: 20vw
}

.toast.show {
  display: block;
  opacity: 1;
  position: fixed;
  z-index: 99999999;
  margin: 20px;
  right: 0;
  top: 3.5rem;
}

.swal2-container {
  z-index: 99999999;
}

#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1fcc19;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: smaller;
  color: #000000cf;
  font-style: italic;
}

.modal-dialog.large {
  width: 80% !important;
  max-width: unset;
}

.modal-dialog.mid-large {
  width: 50% !important;
  max-width: unset;
}

#viewer_modal .btn-close {
  position: absolute;
  z-index: 999999;
  /*right: -4.5em;*/
  background: unset;
  color: white;
  border: unset;
  font-size: 27px;
  top: 0;
}

#viewer_modal .modal-dialog {
  width: 80%;
  max-width: unset;
  height: calc(90%);
  max-height: unset;
}

#viewer_modal .modal-content {
  background: black;
  border: unset;
  height: calc(100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
  max-height: calc(100%);
  max-width: calc(100%);
}

/* Change primary color to green */
:root {
  --primary: #2cc50d;
  /* custom color */
}

/* Override AdminLTE default primary classes */
.bg-primary,
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

/* Dark sidebar background */
.main-sidebar {
  background-color: #343a40 !important;
}

/* Navbar */
.main-header.navbar {
  background-color: var(--primary) !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
  background-color: var(--primary) !important;
  color: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  /* Force table block layout */
  overflow-x: auto;
  /* Enable horizontal scroll */
  white-space: nowrap;
  /* Prevent text from breaking into multiple lines */
}

/* Reduce padding inside table cells */
.table th,
.table td {
  padding: 6px 30px !important;
  /* smaller vertical + horizontal spacing */
  vertical-align: middle !important;
  font-size: 14px;
  /* slightly smaller text */
}

/* Make header stand out */
.table thead th {
  background: #f8f9fa;
  /* light grey */
  font-weight: 600;
  text-align: center;
}


/* Add hover effect */
.table tbody tr:hover {
  background: #f1f1f1;
}



.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
  background-color: #f8f9fa;
  color: var(--primary) !important;
}

/* Override table borders */
.table-bordered {
  border-color: #2cc50d !important;
  /* your theme color */
}

/* Card with 'card-primary' outline */
.card-primary.card-outline {
  border-top: 3px solid #2cc50d !important;
}

/* Horizontal rules */
hr {
  border-top: 1px solid #2cc50d !important;
}

/* Anything using border-primary class */
.border-primary {
  border-color: #2cc50d !important;
}

.logo img {
  width: 150px;
  height: 30px;
  border-radius: 30px;
  /* object-fit: cover; */
}

.tickets-wrapper {
  display: flex;
  flex-wrap: wrap;
  /* allow multiple cards on same row */
  gap: 20px;
  /* space between cards */
  justify-content: center;
  /* center cards horizontally */
  padding: 20px;
}

.ticket-container {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background-color: #fff;
  /* can adjust darker later */
  flex: 1 1 300px;
  /* grow/shrink based on screen size */
}

.header {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #00000028;
}

.header h2 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.price {
  margin-top: 10px;
  font-size: 1.3em;
  font-weight: bold;
  color: #000;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.method {
  flex: 1 1 45%;
  /* flexible width for small screens */
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}

.method-label {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 5px;
}

.method-price {
  font-size: 0.9em;
  font-weight: bold;
  color: #000;
}

@media (max-width: 760px){
    .main-footer{
        margin-top: 200px;
    }
}

/* Small screens tweak */
@media (max-width: 480px) {
  .method {
    flex: 1 1 100%;
  }
}