/* Google Fonts - only load Nunito (primary) with swap for fast first paint */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* Global font baseline */
html, body, #root, .app, .card, .modal, .btn, .nav, .navbar, .form-control, .Select, .Select-control, .table {
  font-family: 'Lato', 'Ubuntu', 'Nunito', 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
}

.ql-editor {
    min-height: 120px !important;
    max-height: 240px !important;
    font-family: 'Lato', 'Ubuntu', 'Nunito', 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
}

/* assets/dashboard-side-nav.css */
@media (max-width: 991.98px) {
    .dashboard-side-nav {
        flex-direction: row !important;
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        min-width: 0 !important;
        width: 100%;
        padding: 1rem 0.5rem !important;
        border-radius: 1.5rem;
        overflow-x: auto;
    }
    .dashboard-side-nav .nav-link {
        margin-bottom: 0 !important;
        margin-right: 0.5rem !important;
        margin-left: 0.5rem !important;
        white-space: nowrap;
    }
}
@media (min-width: 992px) {
    .dashboard-side-nav {
        flex-direction: column !important;
        display: flex !important;
        min-width: 220px;
    }
    .dashboard-side-nav .nav-link {
        margin-bottom: 0.2rem !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Only sticky on medium (md) and up */
@media (max-width: 767.98px) {
    .side-nav-col {
        position: static !important;
        top: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .side-nav-col {
        position: sticky !important;
        top: 7rem !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

.side-link {
    color: #17696a !important;
    font-weight: 600 !important;
    border-radius: 2rem !important;
    margin-bottom: 0.5rem !important;
    padding: 0.65rem 1.1rem !important;
    font-family: Inter, Segoe UI, Arial, sans-serif !important;
    font-size: 1.08rem !important;
}
.side-link.active, .side-link:focus, .side-link:hover {
    background: linear-gradient(90deg, #20c99733 0%, #5eead433 100%) !important;
    color: #20c997 !important;
    font-weight: bold !important;
}
.dashboard-side-nav {
    min-height: 85vh !important;
}

/* Sidebar enhanced hover/active states */
.dashboard-side-nav .sidebar-link {
  position: relative;
  font-weight: 600;
  background: transparent;
  -webkit-tap-highlight-color: transparent; /* remove iOS/Apple tap highlight */
}
.dashboard-side-nav .sidebar-link:hover {
  background: rgba(32,201,151,0.12) !important;
  color: #0b5d60 !important;
  text-decoration: none !important;
}
.dashboard-side-nav .nav-link:hover {
  background: rgba(32,201,151,0.12) !important;
  color: #0b5d60 !important;
  text-decoration: none !important;
}
.dashboard-side-nav .sidebar-link.active, .dashboard-side-nav .sidebar-link:focus {
  background: rgba(23,105,106,0.10) !important;  /* subtle mint-teal tint, no bright green */
  color: #0b5d60 !important;
  border-left: 4px solid rgba(23,105,106,0.35);
}
.dashboard-side-nav .nav-link.active, .dashboard-side-nav .nav-link:focus {
  background: rgba(23,105,106,0.10) !important;
  color: #0b5d60 !important;
  border-left: 4px solid rgba(23,105,106,0.35);
}

/* Ticket scanner button hover: no color change, just background highlight */
.sidebar-hover:hover {
  background: inherit !important;
  color: inherit !important;
}

input,
textarea,
select {
    font-size: 16px !important
}

/* Compact hero on phones */
@media (max-width: 576px) {
  .hero-card {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }
  .hero-card .hero-title {
    font-size: 1.8rem;  /* smaller welcome */
    margin-bottom: 0.25rem;
  }
  #btn-stripe-dashboard {
    padding: 8px 10px;
    font-size: .95rem;
  }
}

/* Button: mobile compact, desktop normal */
.btn-mobile {
  font-size: 1rem;           /* desktop/base */
  padding: 10px 16px;
  width: auto;               /* desktop: don't stretch */
  white-space: nowrap;       /* keep label tidy */
}

@media (max-width: 576px) {
  .btn-mobile {
    width: auto !important;
    display: block;
    font-size: 1rem;
    padding: 6px 14px;  /* slimmer */
    border-radius: 20px; /* pill */
  }
}

/* Optional: if the card still looks tall on desktop after changes */
@media (min-width: 577px) {
  .hero-card .hero-title { margin-bottom: .4rem; }
}

/* Container looks like a pill nav button */
.mobile-nav-dropdown .Select-control {
  border-radius: 2.5rem !important;       /* rounder */
  border: 2px solid #20c997 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0 16px !important;             /* more breathing room */
  min-height: 48px !important;            /* taller tap target */
  cursor: pointer;
}

/* Placeholder text */
.mobile-nav-dropdown .Select-placeholder {
  font-size: 1.1rem;                      
  font-weight: 600;
  color: #17696a !important;
  line-height: 48px !important;           
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-nav-dropdown .Select-placeholder::before {
  content: "☰";
  font-size: 1.3rem;         /* size control */
  position: relative;
  top: -2px;                 /* nudges it upward slightly */
  display: inline-block;
}
/* Selected value text */
.mobile-nav-dropdown .Select-value-label {
  font-size: 1.1rem;                      /* match placeholder */
  font-weight: 600;
  color: #17696a !important;
  line-height: 48px !important;
}

/* Dropdown arrow */
.mobile-nav-dropdown .Select-arrow {
  border-color: #17696a transparent transparent !important;
  margin-top: 10px;                       /* re-align with bigger box */
}

/* Dropdown menu styling */
.mobile-nav-dropdown .Select-menu-outer {
  border-radius: 1rem !important;
  border: 1px solid #20c997 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  min-width: 165px !important;    /* wider dropdown panel only */
}

/* Options hover */
.mobile-nav-dropdown .Select-option.is-focused {
  background: #e6f7f1 !important;
  color: #0ca678 !important;
  font-weight: 600;
}

/* Fixed width for consistency (optional) */
.mobile-nav-dropdown {
  min-width: 160px;
}

/* Ensure placeholder/value align vertically centered */
.mobile-nav-dropdown .Select-placeholder,
.mobile-nav-dropdown .Select-value-label {
  display: flex !important;
  align-items: center !important;
  justify-content: left !important;
  height: 100% !important;
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 10px !important;
  color: #17696a !important;
}

/* Also fix line height for consistency */
.mobile-nav-dropdown .Select-placeholder,
.mobile-nav-dropdown .Select-value-label {
  line-height: normal !important;
}
/* Always hide the selected value text */
.mobile-nav-dropdown .Select-value {
  display: none !important;
}

/* Keep showing placeholder text ("☰ Menu") */
.mobile-nav-dropdown .Select-placeholder {
  opacity: 1 !important;
}


/* --- Bloom Dropdown Tag Styling --- */

/* Selected bubbles */
.Select--multi .Select-value {
    background-color: #e6faf4 !important;  /* soft mint background */
    color: #087f5b !important;             /* Bloom dark mint text */
    border-radius: 9999px !important;      /* fully rounded */
    border: none !important;
    padding: 4px 10px !important;
    margin: 3px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

/* “x” remove icon inside bubble */
.Select--multi .Select-value-icon {
    color: #087f5b !important;
    border-right: none !important;
    margin-left: 6px !important;
    cursor: pointer;
}

/* When hovering over the bubble */
.Select--multi .Select-value:hover {
    background-color: #d0f7ea !important;
    color: #066b4b !important;
}

/* Dropdown border and hover states */
.Select-control {
    border-radius: 10px !important;
    border: 1.5px solid #d1d9de !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.Select-control:hover {
    border-color: #20c997 !important;
    box-shadow: 0 0 0 2px rgba(32,201,151,0.15) !important;
}

/* Sidebar scrollbar styles */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dashboard-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Reduce spacing between sidebar links */
.sidebar-link {
    margin-bottom: 0.5rem !important;
}

/* Performance: isolate repaint on main content area (dashboard only) */
.modal-content {
    contain: layout style;
}

/* Reduce paint area for off-screen content */
.tab-pane:not(.active) {
    content-visibility: auto;
}

/* GPU-promote fixed/sticky elements for smoother scrolling */
.side-nav-col {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* --- Custom Mobile Menu --- */
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: #17696a;
  font-weight: 600;
  font-size: 15px;
  font-family: "Nunito", "Ubuntu", "Lato", "DM Sans", sans-serif;
  background: white;
  border-bottom: 1px solid rgba(32, 201, 151, 0.08);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:hover {
  background: #eef7ff;
  color: #17696a;
}

.mobile-menu-item:active {
  background: #e6f7f1;
}

.mobile-menu-button:hover,
.mobile-menu-button:focus,
.mobile-menu-button:active {
  background: #ffffff !important;
  color: #17696a !important;
  border-color: #20c997 !important;
  box-shadow: 0 2px 8px rgba(10, 166, 120, 0.08) !important;
  outline: none !important;
}

/* Ensure date picker calendar dropdowns are not clipped by parent containers */
.DateInput_fang,
.DateRangePickerInput,
.SingleDatePicker_picker,
.DateRangePicker_picker {
  z-index: 1050 !important;
}

/* Ensure SingleDatePicker containers don't clip their calendar popups */
.SingleDatePicker,
.SingleDatePickerInput {
  overflow: visible !important;
}

/* Open ticket-sale-end date picker calendars upward instead of downward */
#modal-ticket-sale-end-date-picker .SingleDatePicker_picker,
#ticket-sale-end-date-picker .SingleDatePicker_picker,
#ticket-sale-end-date-picker-edit .SingleDatePicker_picker {
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 2px;
}

#modal-ticket-sale-end-date-picker .DateInput_fang,
#ticket-sale-end-date-picker .DateInput_fang,
#ticket-sale-end-date-picker-edit .DateInput_fang {
  top: auto !important;
  bottom: -10px !important;
  transform: rotate(180deg);
}

/* Promo form: make DatePickerSingle look like regular dashboard inputs */
.promo-date-picker-wrap {
  width: 100%;
}

.promo-date-picker,
.promo-date-picker .SingleDatePicker,
.promo-date-picker .SingleDatePickerInput,
.promo-date-picker .DateInput,
.promo-date-picker .DateInput_input {
  width: 100% !important;
}

.promo-date-picker .SingleDatePickerInput {
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
}

.promo-date-picker .DateInput_input {
  font-size: 0.95rem !important;
  color: #334155 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-family: 'Lato', 'Ubuntu', 'Nunito', 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
}

.promo-date-picker .DateInput_input__placeholder {
  color: #9ca3af !important;
}

/* Tier hide/show status alert — tidy close button */
#edit-hideshowstatus .btn-close {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}
#edit-hideshowstatus .btn-close:hover {
  opacity: 0.85;
}
