:root {
    --bulma-body-background-color: #14161a;
}
/* Smooth image scale on card hover */
.tour-card:hover .tour-thumb-img {
  transform: scale(1.1);
  transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1);
}
.tour-thumb-img {
  transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bulma-body-background-color: #14161a;
  }
}

[data-theme="dark"], .theme-dark {
  --bulma-body-background-color: #14161a;
}

.tour-card-alt:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.18), 0 1.5px 12px rgba(30,64,175,0.13);
  transform: translateY(-4px) scale(1.025);
}
.tour-thumb-alt {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
  background: var(--bulma-body-background-color);
  height: 55%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.tour-thumb-alt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.tour-info {
  height: 45%;
  width: 100%;
  padding: 14px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: transparent;
}
.tour-title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}
.tour-meta {
  font-size: 0.97rem;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 8px;
}

/* Fixed width for Publish/Unpublish buttons in tours admin */
.button.tour-publish, .button.tour-unpublish {
  min-width: 70px;
  max-width: 70px;
  text-align: center;
  justify-content: center;
}

/* Fixed width for status tag in tours admin */
.tag.tour-status {
  min-width: 60px;
  max-width: 60px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

/* Override browser autofill background with Bulma dark */
.input {
  background: var(--bulma-body-background-color) !important;
  color: #fff !important;
}
.input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bulma-body-background-color) inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Role management styling */
.role-checkbox-container {
  padding: 8px 12px;
  border: 1px solid #434343;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
}

.role-checkbox-container:hover {
  background-color: #f9f9f9;
}

.role-checkbox-container input[type="checkbox"] {
  margin-right: 8px;
}

.role-tag {
  margin-right: 8px;
  vertical-align: middle;
}

/* Fix dropdown visibility in admin tables */
.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 1000 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  min-width: 150px;
  padding: 2px 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateX(0) !important;
}

/* When dropdown is near bottom of viewport, open upward */
.dropdown.is-up .dropdown-menu,
.dropdown-menu.is-up {
  top: auto !important;
  bottom: 100% !important;
}

.dropdown.is-active .dropdown-menu {
  display: block;
  z-index: 1000 !important;
}

.dropdown-content {
  padding: 0 !important;
  background-color: #2b2b2b !important;
  border: 1px solid #444 !important;
}

.dropdown-item {
  padding: 2px 10px !important;
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
  color: #fff !important;
}

.dropdown-item:hover {
  background-color: #363636 !important;
  color: #fff !important;
}

.dropdown-item a {
  color: #fff !important;
}

.dropdown-item a:hover {
  color: #fff !important;
}

.dropdown-item button {
  background: transparent !important;
  border: none !important;
  padding: 2px 6px !important;
}

.dropdown-item form {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown-item .button {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  box-shadow: none !important;
  padding: 2px 6px !important;
  margin: 0 !important;
}

.dropdown-item .button:hover {
  background: transparent !important;
  color: inherit !important;
}

.dropdown-divider {
  display: none !important;
}

/* Ensure table cells allow overflow for dropdown */
.table td {
  position: relative;
  overflow: visible !important;
}

.table {
  overflow: visible !important;
}

.table-container {
  overflow: visible !important;
}