@custom-variant dark (&:is(.dark *));

html, body {
  background: #f9fafb;
  height: 100%;
  margin: 0;
  font-size: 0.75rem;
}

input, select, textarea {
  font-size: 0.75rem !important;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/**
 * Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
 */
@layer base {
  :where(:not(:has([class*=' text-']), :not(:has([class^='text-'])))) {
    h1 {
      font-size: var(--text-2xl);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h2 {
      font-size: var(--text-xl);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h3 {
      font-size: var(--text-lg);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    h4 {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    p {
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      line-height: 1.5;
    }

    label {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    button {
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    input {
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      line-height: 1.5;
    }
  }
}

html {
  font-size: var(--font-size);
}

a {
  text-decoration: none !important;
}

.nav-link:hover {
  color: #3ebb6c !important;
}

.nav-item .active {
  color: #3ebb6c !important;
}

.text-success {
  color: #3ebb6c !important;
}

.bg-success {
  background: #3ebb6c !important;
}

.btn-success {
  background: #3ebb6c !important;
}

#organizerWarning {
  background: #fefce8;
  color: #9b6725;
  border: 1px solid #fff294;
}

.grey {
  background: #ececf0;
}

.carousel-item {
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.carousel-item img {
    position: relative;
    z-index: 0;
    object-fit: cover;
}

.carousel-caption {
  position: absolute;
  top: 24%;
}

.d-md-block {
  z-index: 2;
  text-align: left;
}

.whatsapp-btn {
  color: #4a5565;
}

.whatsapp-btn:hover {
  color: #3ebb6c;
}

.insta-btn {
  color: #4a5565;
}

.insta-btn:hover {
  color: #3ebb6c;
}

.tg-btn {
  color: #4a5565;
}

.tg-btn:hover {
  color: #3ebb6c;
}

.img-wrapper {
  overflow: hidden;
}

.card-img-top {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.past-img {
  filter: grayscale(100%);
}

.img-wrapper:hover .card-img-top {
  transform: scale(1.1);
}

.card {
  cursor: pointer;
}

.past-details {
  color: #8f95a1;
}

.bg-lightsecondary {
  background: #1a1a1a1a;
}

.text-blue {
  color: #165DFB;
}

.bg-lightblue {
  background: #EFF6FF;
}

.border-blue {
  border: 1px solid#BFDBFF;
}

.bg-lightgold {
  background: #fef0d3;
}

.bg-lightyellow {
  background: #FEF9C2;
}

.text-brownyellow {
  color: #C68A0B;
}

.text-gold {
  color: #ffaa00;
}

.bg-lightpurple {
  background: #f6e0f6;
}

.text-purple {
  color: #942192;
}

.antivirus {
  background: #45B253;
}

#thead-lightgray {
  background: rgb(195, 22, 22) !important;
}

.btn-icon .icon-hover {
  display: none;
}

.btn-icon:hover .icon-default {
  display: none;
}

.btn-icon:hover .icon-hover {
  display: inline;
}

.btn-success:hover {
  background: #299a50 !important;
}

#togglePassword {
    background: transparent;
    border: none;
    padding: 1.7rem 0.5rem;
}

.toast { 
  position: fixed; 
  top: 20px; 
  right: 20px; 
  padding: 10px 20px; 
  background: #333; 
  color: #fff; 
  border-radius: 5px; opacity: 0.9; 
}

.toast-success { 
  background: green; 
}

.toast-warning { 
  background: orange; 
}

.toast-error { 
  background: red; 
}

.text-red {
  color: #D42422;
}

.bg-lightred {
  background: #FAE3E2;
}

.mintgreen {
  background: #c5ffd9;
  color: #42a466;
  font-weight: 300;
}

.lightblue {
  background: #EFF6FF;
  color: #165DFB;
  font-weight: 300;
}

.text-small {
  font-size: 11px !important;
}

.text-extra-small {
  font-size: 9px !important;
}

.btn-delete {
  position: relative;
}

.btn-delete .icon-hover {
  display: none;
}

.btn-delete:hover .icon-default {
  display: none;
}

.btn-delete:hover .icon-hover {
  display: inline;
}

.bg-mintgreen {
  border: 1px solid#bdfad3;
  background: #e9fff0;
}

.bg-grey {
  background: rgb(232, 229, 229);
}

.bg-grey:focus {
  background: rgb(232, 229, 229);
  border: 2px solid rgb(148, 147, 147);
}

.drop-zone {
  width: 100%;
  aspect-ratio: 1920 / 500;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
}

.drop-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop nicely */
}

.remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.banner-preview {
  width: 300px;    
  aspect-ratio: 1920 / 500; 
  overflow: hidden;
  border-radius: 8px;      
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;      
}

.img-wrapper2 {
    position: relative; /* needed for badges positioning */
    overflow: hidden;   /* keep image within bounds */
}

.item-img {
    width: 100%;
    height: 250px;       /* fixed height */
    object-fit: cover;   /* crop nicely */
    transition: transform 0.3s ease;
    display: block;
    z-index: 1;          /* keep image below badges */
}

.img-wrapper2 .badge {
    z-index: 2;          /* badges always on top */
}

.img-wrapper2:hover .item-img {
    transform: scale(1.1);
}

#navbarSupportedContent {
  font-size: 0.7rem;
}

.btn-sm {
  font-size: 0.7rem;
}

.text-orange {
  color: #E25706;
}

.btn-orange {
  background: #E25706;
  color: white;
}

.btn-orange:hover {
  background: #c04905;
  color: white;
}

.btn-outline-orange {
  border: 1px solid #E25706;
  color: #E25706;
  background: white;
}

.btn-outline-orange:hover {
  background: #E25706;
  color: white;
}

.crossed-orange-border {
  border-style: dashed;
  border: 1.5px dashed #E25706;
}

.bg-lightorange {
  background: #ffeee5;
}
