body {
  font-family: var(--adminuiux-content-font, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  min-height: 100vh;
}

.hero {
  background-color: #004e92;
  background-image: linear-gradient(
      90deg,
      rgba(0, 25, 54, 0.96) 0%,
      rgba(0, 25, 54, 0.88) 34%,
      rgba(0, 25, 54, 0.56) 58%,
      rgba(0, 25, 54, 0.14) 80%,
      rgba(0, 38, 79, 0) 100%
    ),
    url("../vendor/adminlte/img/banner1.png");
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  color: #fff;
  border-radius: 18px;
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  animation: heroFadeIn 720ms ease-out both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(
        90deg,
        rgba(0, 25, 54, 0.97) 0%,
        rgba(0, 25, 54, 0.9) 50%,
        rgba(0, 25, 54, 0.62) 76%,
        rgba(0, 25, 54, 0.28) 100%
      ),
      url("../vendor/adminlte/img/banner1.png");
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}

.card-event img {
  height: 180px;
  object-fit: cover;
}

.featured-card img {
  height: 280px;
  object-fit: cover;
}

.table-responsive {
  max-height: 72vh;
}

.ticket-card {
  max-width: 720px;
  margin: 2rem auto;
}

.qr-box {
  background: #fff;
  border: 1px dashed #ced4da;
  border-radius: 12px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.small-help {
  font-size: 0.86rem;
  color: #6c757d;
}

@media (max-width: 576px) {
  .redeem-ticket-table {
    min-width: 760px;
  }

  .redeem-ticket-table td,
  .redeem-ticket-table th {
    font-size: 0.92rem;
    vertical-align: top;
  }

  .redeem-ticket-table .manage-cell {
    min-width: 280px;
  }

  .redeem-ticket-table .ticket-manage-form .form-control {
    min-height: 40px;
    font-size: 0.95rem;
  }

  .redeem-ticket-table .ticket-manage-form .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.95rem;
  }

  .redeem-ticket-table .ticket-manage-form .col-6,
  .redeem-ticket-table .ticket-manage-form .col-12 {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

/* AdminUX integration overrides for existing admin pages + public pages */
body.main-bg {
  min-height: 100vh;
}

.public-home-adminux .card {
  border-radius: 16px;
}

.public-home-adminux .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.public-home-adminux #featured .featured-media {
  min-height: 280px;
  max-height: 320px;
  overflow: hidden;
}

.public-home-adminux #featured .featured-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767.98px) {
  .public-home-adminux #featured .featured-media {
    min-height: 220px;
    max-height: 260px;
  }
}

.public-home-adminux .navbar .btn {
  border-radius: 999px;
}

.public-home-adminux .badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.adminuiux-content .container-fluid > .card,
.adminuiux-content .container-fluid .card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--bs-box-shadow-sm);
}

.adminuiux-content .table {
  --bs-table-bg: transparent;
}

.adminuiux-content .table > :not(caption) > * > * {
  padding: 0.85rem 0.9rem;
}

.adminuiux-content .form-control,
.adminuiux-content .form-select {
  border-radius: 12px;
}

/* Keep placeholders lighter than labels for better visual hierarchy */
.form-control::placeholder,
textarea.form-control::placeholder {
  color: #9aa4b2;
  opacity: 1;
}

.adminuiux-content .btn {
  border-radius: 10px;
}

.adminuiux-sidebar .nav-link.active,
.adminuiux-sidebar .nav-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.12);
  border-radius: 12px;
}

/* Admin theme readability adjustments */
[data-bs-theme="light"] .adminuiux-header .company-tagline {
  color: #5c6678;
}

[data-bs-theme="light"] .adminuiux-sidebar,
[data-bs-theme="light"] .adminuiux-content,
[data-bs-theme="light"] .adminuiux-content .card,
[data-bs-theme="light"] .adminuiux-content .table,
[data-bs-theme="light"] .adminuiux-content .table td,
[data-bs-theme="light"] .adminuiux-content .table th {
  color: #1f2937;
}

[data-bs-theme="dark"] body.main-bg {
  background: linear-gradient(180deg, #151a23 0%, #111720 100%);
}

[data-bs-theme="dark"] .adminuiux-header .navbar {
  background-color: #161c27;
}

[data-bs-theme="dark"] .adminuiux-header .navbar-brand .company-tagline,
[data-bs-theme="dark"] .adminuiux-sidebar .menu-name,
[data-bs-theme="dark"] .adminuiux-sidebar .nav-link,
[data-bs-theme="dark"] .adminuiux-sidebar h6,
[data-bs-theme="dark"] .text-secondary {
  color: #c4ccda !important;
}

[data-bs-theme="dark"] .adminuiux-sidebar {
  background-color: #141b25;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .adminuiux-sidebar .nav-link.active,
[data-bs-theme="dark"] .adminuiux-sidebar .nav-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.28);
}

[data-bs-theme="dark"] .adminuiux-content,
[data-bs-theme="dark"] .adminuiux-content .card,
[data-bs-theme="dark"] .adminuiux-content .table,
[data-bs-theme="dark"] .adminuiux-content .table td,
[data-bs-theme="dark"] .adminuiux-content .table th,
[data-bs-theme="dark"] .adminuiux-content label,
[data-bs-theme="dark"] .adminuiux-content .form-text {
  color: #e6ebf5;
}

[data-bs-theme="dark"] .adminuiux-content .card {
  background-color: #1a2230;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea.form-control::placeholder {
  color: #8a95a8;
  opacity: 1;
}

[data-bs-theme="dark"] .adminuiux-content .table {
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1c2433;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .dropdown-item {
  color: #e3e8f3;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

