:root {
  --background: 140 20% 6%;
  --foreground: 140 10% 98%;
  --card: 140 25% 9%;
  --card-foreground: 140 10% 98%;
  --popover: 140 25% 9%;
  --popover-foreground: 140 10% 98%;
  --primary: 142 70% 45%;
  --primary-foreground: 140 10% 98%;
  --secondary: 140 30% 12%;
  --secondary-foreground: 140 10% 90%;
  --muted: 140 30% 12%;
  --muted-foreground: 140 20% 80%;
  --accent: 142 70% 45%;
  --accent-foreground: 140 10% 98%;
  --destructive: 0 70% 45%;
  --destructive-foreground: 140 10% 98%;
  --border: 140 30% 12%;
  --input: 140 30% 12%;
  --ring: 142 70% 45%;
  --radius: 0.75rem;
  --success: 142 70% 45%;
  --success-foreground: 0 0% 98%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 98%;
  --danger: 0 84% 60%;
  --danger-foreground: 0 0% 100%;
  /* Define missing variables */
  --text-color: var(--foreground); /* using the foreground value */
  --container-bg: var(--card);       /* using the card value */
  --tertiary: var(--secondary);       /* using the secondary value */
}

/* Utility classes for our color scheme */
.bg-danger {
  background-color: hsl(var(--danger));
  color: hsl(var(--danger-foreground)); }
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.text-card { color: hsl(var(--card-foreground)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.text-secondary { color: hsl(var(--secondary-foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary-foreground)); }
.bg-warning { background-color: hsl(var(--warning)); }
.text-warning { color: hsl(var(--warning-foreground)); }
.navspan { color: hsl(var(--accent));}
/* Custom button style with hover effect */
.btn-custom {
  transition: background-color 0.2s ease, border 0.2s ease;
  border-radius: var(--radius);
}
.btn-custom:hover {
  filter: brightness(110%);
}
/* Ensure dropdowns use your custom input background and foreground */
.select,
.select option {
  background-color: hsl(var(--input)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--border));
}

.select-modern {
  /* Remove default arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Add a custom SVG arrow as background */
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" d="M10 12a1 1 0 01-.707-.293l-4-4a1 1 0 111.414-1.414L10 9.586l3.293-3.293a1 1 0 111.414 1.414l-4 4A1 1 0 0110 12z" clip-rule="evenodd"%3E%3C/path%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  
  /* Add extra right padding so text doesn't overlap the arrow */
  padding-right: 2.5rem;
}

.select-modern option {
  background-color: hsl(var(--input)) !important;
  color: hsl(var(--foreground)) !important;
}


/* Optionally, ensure focus/active states are also styled */
.select:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

#mix-container {
  max-height: 600px; /* or any value that fits your design */
  overflow-y: auto;
}


/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: hsl(var(--secondary));
    color: hsl(var(--text-color));
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    color: hsl(var(--accent));
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    background-color: hsl(var(--tertiary)) !important;
}

/* Containers & Cards */
#mix-container, .mix-container {
    background-color: hsl(var(--container-bg));
    border: 2px solid hsl(var(--primary));
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    font-weight: bold;
    transition: background 0.2s ease, border 0.2s ease;
}

.btn-primary {
    background-color: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
    color: hsl(var(--text-color)) !important;
}

.btn-primary:hover {
    background-color: #1fb857 !important; /* A slightly lighter green */
    border-color: #1fb857 !important;
}

.btn-warning {
    background-color: hsl(var(--accent)) !important;
    border-color: hsl(var(--accent)) !important;
    color: #000 !important;
}

.btn-warning:hover {
    background-color: #9bb66c !important;
}

/* Forms & Selects */
select.form-select {
    background: #333;
    color: hsl(var(--text-color));
    border: 2px solid hsl(var(--primary));
}

#rankDropdown.form-select {
    background: #333;
    color: hsl(var(--text-color));
    border: 2px solid hsl(var(--primary));
}

#substanceDropdown.form-select {
    background: #333;
    color: hsl(var(--text-color));
    border: 2px solid hsl(var(--primary));
}

.form-check {
  background-color: hsl(var(--input)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--border));
}

.dropdown-checks {
  background-color: hsl(var(--input)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--border));
}

/* Modal Content */
.modal-content {
    background-color: hsl(var(--secondary));
    color: hsl(var(--text-color));
}

/* Additional adjustments */
button:disabled {
    background: #444 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    .container {
        padding: 10px;
    }
}

.seed-card {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.seed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(var(--primary), .4), 0 0 12px rgba(var(--primary), .6);
}
p {
    color: white;
}
/* Keep form controls dark with white text */
.form-control,
.form-check-label {
  color: hsl(var(--foreground)) !important;
}

.form-control,
.form-label {
    color: white;
}

.btn-icon {
  width: 1.45em;        /* scale to match your font-size */
  height: auto;
  display: inline-block;
}


/* Placeholder should remain muted but readable */
.form-control::placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

/* Focus state: no white background — green glow instead */
.form-control:focus {
  background-color: hsl(var(--input)) !important;
  border-color: hsl(var(--success)) !important;
  box-shadow: 0 0 0 .25rem hsla(var(--success), 0.5) !important;
  color: hsl(var(--foreground)) !important;
}

/* Checkbox focus also glows green */
.form-check-input:focus {
  border-color: hsl(var(--success)) !important;
  box-shadow: 0 0 0 .25rem hsla(var(--success), 0.5) !important;
}

/* Override any gray text so it’s white by default */
.text-muted, .text-secondary {
  color: hsl(var(--foreground)) !important;
}

/* Dark‑theme DataTables “items per page” dropdown */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background-color: hsl(var(--input));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem;
}

/* Ensure dropdown options remain readable */
.dataTables_wrapper .dataTables_length select option {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
}

/* Remove default white focus outline */
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}

/* Only remove borders/shadows from read-only editors */
.tox.tox-tinymce[aria-readonly="true"] {
  border: none !important;
  box-shadow: none !important;
}

.tox.tox-tinymce[aria-readonly="true"] .tox-editor-header,
.tox.tox-tinymce[aria-readonly="true"] .tox-toolbar,
.tox.tox-tinymce[aria-readonly="true"] .tox-statusbar {
  display: none !important;
}

/* Center the nav-tabs and give some spacing */
.nav-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Style each tab link with fixed height and padding */
.nav-tabs .nav-link {
  height: 50px;       /* Fixed height */
  line-height: 50px;  /* Centers text vertically */
  flex: 0 0 auto;     /* Prevents stretching */
  padding: 0 1rem;    /* Horizontal padding */
  margin: 0 0.25rem;  /* Small gap between tabs */
}

/* For unselected tabs: set text color and force border */
.nav-tabs .nav-link:not(.active) {
  color: #22c35d !important;   /* Green text */
  border: 1px solid #22c35d;     /* Green border */
}

/* Active tab: white text on green background */
.nav-tabs .nav-link.active {
  color: #fff !important;
  background-color: #22c35d;
  border: 1px solid #22c35d;
}

/* Consistent height technique for the tab content container */
.tab-content {
  display: flex;               /* Force all panes to be rendered in a flex container */
  min-height: 500px;           /* Fixed minimum height for all tab panes */
  border: 2px solid #22c35d;    /* Green outline */
  border-radius: 5px;
}

/* Inactive tab panes: make them visible to the layout but hidden from view */
.tab-content > .tab-pane {
  display: block;              /* override Bootstrap's display: none; */
  visibility: hidden;
  margin-right: -100%;
  width: 100%;
}

/* Active tab pane is made visible */
.tab-content > .active {
  visibility: visible;
}

/* Ensure each tab pane centers its content */
.tab-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;     /* Vertical centering */
  align-items: center;         /* Horizontal centering */
  text-align: center;
  width: 100%;
  min-height: 100%;
}

/* For the substances BFS container (for overlay) */
.substances-container {
  position: relative;
}

/* Overlay styling for non-donators */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 40, 40, 0.9); /* Semi-transparent gray */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 20px;
}

#substances {
  position: relative;
}

/* Golden text color for donators */
.donator-text {
  color: #FFD700; /* Golden color */
  font-weight: bold;
}

/* Donator badge styling */
.donator-badge {
  background-color: #FFD700; /* Golden badge */
  color: black;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Donator badge styling */
.super-donator-badge {
  background-color: #007bff; /* Primary blue */
  color: white;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

/* Creator Badge (Green) */
.creator-badge {
  background-color: #4CAF50; /* Green background */
  color: white;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

/* Influencer Badge (Purple) */
.influencer-badge {
  background-color: #6A5ACD; /* Purple background */
  color: white;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

/* General Special Badge (Orange) */
.general-special-badge {
  background-color: #FF9800; /* Orange background */
  color: white;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

