/* Eduvortex Theme CSS */

:root {
  --bs-primary: #ff2600;
  --bs-secondary: #7e8fb0;
  --bs-success: #4b6434;
  --bs-info: #cdd394;
  --bs-warning: #e9f2ef;
  --bs-danger: #870753;
  --bs-light: #e9f2ef;
  --bs-dark: #2b2040;
  --bs-orange: #880763;
  --bs-purple: #880763;
  --bs-blue: #7e8fb0;
  --bs-body-bg: #ffffff;
  --bs-body-color: #2b2040;
  --bs-heading-color: #2b2040;
  --bs-text-color: #2b2040;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.4rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;

  --color-sage: #cdd394;
  --color-mint: #e9f2ef;
  --color-slate-blue: #7e8fb0;
  --color-purple: #880763;
  --color-forest-green: #4b6434;
  --color-gray: #9896a4;
  --color-magenta: #870753;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #2b2040;
  --bs-body-color: #ffffff;
  --bs-heading-color: #ffffff;
  --bs-text-color: #e9f2ef;
}

/* Typography */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bs-heading-color);
}

/* Colors */
.text-primary { color: var(--bs-primary) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-success { color: var(--bs-success) !important; }
.text-info { color: var(--bs-info) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-orange { color: var(--bs-orange) !important; }
.text-purple { color: var(--bs-purple) !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--bs-text-color) !important; }

.bg-primary { background-color: var(--bs-primary) !important; }
.bg-warning { background-color: var(--bs-warning) !important; }
.bg-success { background-color: var(--bs-success) !important; }
.bg-info { background-color: var(--bs-info) !important; }
.bg-danger { background-color: var(--bs-danger) !important; }
.bg-orange { background-color: var(--bs-orange) !important; }
.bg-purple { background-color: var(--bs-purple) !important; }
.bg-light { background-color: var(--bs-light) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }
.bg-blue { background-color: var(--bs-blue) !important; }
.bg-white { background-color: #fff !important; }

/* Opacity backgrounds */
.bg-opacity-10 { --bs-bg-opacity: 0.1; background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(255, 38, 0, 0.1) !important; }
.bg-warning.bg-opacity-10 { background-color: rgba(233, 242, 239, 0.1) !important; }
.bg-success.bg-opacity-10 { background-color: rgba(75, 100, 52, 0.1) !important; }
.bg-info.bg-opacity-10 { background-color: rgba(205, 211, 148, 0.1) !important; }
.bg-orange.bg-opacity-10 { background-color: rgba(136, 7, 99, 0.1) !important; }
.bg-purple.bg-opacity-10 { background-color: rgba(136, 7, 99, 0.1) !important; }

.bg-opacity-15 { --bs-bg-opacity: 0.15; }
.bg-warning.bg-opacity-15 { background-color: rgba(233, 242, 239, 0.15) !important; }

/* Opacity */
.opacity-5 { opacity: 0.5 !important; }
.opacity-4 { opacity: 0.4 !important; }

/* Border Radius */
.rounded-2 { border-radius: var(--bs-border-radius) !important; }
.rounded-3 { border-radius: var(--bs-border-radius-lg) !important; }
.rounded-4 { border-radius: var(--bs-border-radius-xl) !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-top-4 {
  border-top-left-radius: var(--bs-border-radius-lg) !important;
  border-top-right-radius: var(--bs-border-radius-lg) !important;
}
.rounded-bottom-4 {
  border-bottom-left-radius: var(--bs-border-radius-lg) !important;
  border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

/* SVG Fills */
.fill-body { fill: var(--bs-body-bg) !important; }
.fill-primary { fill: var(--bs-primary) !important; }
.fill-warning { fill: var(--bs-warning) !important; }
.fill-orange { fill: var(--bs-orange) !important; }
.fill-success { fill: var(--bs-success) !important; }
.fill-white { fill: #fff !important; }

/* Heights */
.h-700px { height: 700px !important; }
.h-40px { height: 40px !important; }
.h-30px { height: 30px !important; }
.h-20px { height: 20px !important; }
.h-50px { height: 50px !important; }

@media (min-width: 576px) {
  .h-sm-600px { height: 600px !important; }
}

@media (min-width: 992px) {
  .h-lg-700px { height: 700px !important; }
}

/* Margins */
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-md-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mb-n3 { margin-bottom: -1rem !important; }
.mb-n9 { margin-bottom: -5rem !important; }
.ms-n9 { margin-left: -3rem !important; }
.me-7 { margin-right: 3rem !important; }

/* Z-index */
.z-index-9 { z-index: 9 !important; }
.z-index-99 { z-index: 99 !important; }

/* Navbar */
.navbar-top {
  background-color: var(--bs-light) !important;
}

.navbar-brand-item {
  height: 36px;
}

.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--bs-body-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-static {
  position: relative;
}

/* Nav Search */
.nav-search .dropdown-menu {
  width: 300px;
  padding: 1rem;
}

/* Avatar */
.avatar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
}

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

/* Icons */
.icon-lg {
  width: 3.5rem;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 0.5rem;
}

.icon-md {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grayscale */
.grayscale {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease-in-out;
}

.grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.6rem 1.2rem;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  color: #fff;
  background-color: #cc1f00;
  border-color: #cc1f00;
}

.btn-primary-soft {
  color: var(--bs-primary);
  background-color: rgba(255, 38, 0, 0.1);
  border-color: transparent;
}

.btn-primary-soft:hover {
  color: #fff;
  background-color: var(--bs-primary);
}

.btn-white {
  color: var(--bs-dark);
  background-color: #fff;
  border-color: #fff;
}

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

.btn-blue {
  color: #fff;
  background-color: #0f62fe;
  border-color: #0f62fe;
}

.btn-round {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  line-height: 3rem;
  text-align: center;
}

.btn-white-shadow {
  background-color: #fff;
  box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-white-shadow:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 0;
  border-radius: 0.5rem;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.card-img {
  width: 100%;
  border-radius: 0.5rem;
}

.card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.card-title a {
  color: var(--bs-text-color);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--bs-primary);
}

.card-element-hover {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.card:hover .card-element-hover {
  opacity: 1;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 15rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--bs-body-color);
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.4rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--bs-body-color);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--bs-primary);
  background-color: rgba(255, 38, 0, 0.1);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  background-color: var(--bs-primary);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

/* Dark mode switch */
.dark-mode-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--bs-light);
  border-radius: 0.5rem;
}

.dark-mode-switch button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  color: var(--bs-secondary);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark-mode-switch button.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.dark-mode-switch button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Overlay */
.bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Position utilities */
.start-100 { left: 100% !important; }

/* Link hover colors */
.text-primary-hover:hover {
  color: var(--bs-primary) !important;
}

/* Shadows */
.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Form controls */
.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dde0e3;
  appearance: none;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: #fff;
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255, 38, 0, 0.25);
}

.form-control.border-primary {
  border-color: var(--bs-primary);
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top:hover {
  background: #cc1f00;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Social colors */
.text-facebook { color: #3b5998 !important; }
.text-instagram { color: #e4405f !important; }
.text-twitter { color: #1da1f2 !important; }
.text-linkedin { color: #0077b5 !important; }

/* Soft buttons */
.btn-success-soft {
  color: var(--bs-success);
  background-color: rgba(75, 100, 52, 0.1);
  border: none;
}

.btn-success-soft:hover {
  color: #fff;
  background-color: var(--bs-success);
}

.btn-danger-soft {
  color: var(--bs-danger);
  background-color: rgba(135, 7, 83, 0.1);
  border: none;
}

.btn-danger-soft:hover {
  color: #fff;
  background-color: var(--bs-danger);
}

/* Transforms */
.rotate-74 { transform: rotate(-7deg); }
.rotate-130 { transform: rotate(-13deg); }
.rotate-180 { transform: rotate(180deg); }

/* All text white */
.all-text-white,
.all-text-white h1,
.all-text-white h2,
.all-text-white h3,
.all-text-white h4,
.all-text-white h5,
.all-text-white h6,
.all-text-white p {
  color: #fff !important;
}

/* Bootstrap Icons compatibility */
.bi::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* List group */
.list-group-borderless .list-group-item {
  border: none;
}

/* Animation */
.dropdown-animation {
  animation: dropdown-slide 0.3s ease-out;
}

@keyframes dropdown-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive utilities */
@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
}

@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
}

@media (min-width: 1200px) {
  .d-xl-block { display: block !important; }
}

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

/* Alerts */
.alert-light {
  color: var(--bs-text-color);
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

/* Border */
.border { border: 1px solid #dee2e6 !important; }
.border-5 { border-width: 5px !important; }
.border-white { border-color: #fff !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }

/* Min width */
.min-w-auto { min-width: auto !important; }

/* Navbar toggler animation */
.navbar-toggler-animation span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--bs-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar-toggler-animation span {
  background-color: #fff;
}

/* Tiny slider compatibility */
.tiny-slider .item {
  padding: 0 10px;
}

/* Danger soft hover */
.bg-danger-soft-hover:hover {
  color: #fff !important;
  background-color: var(--bs-danger) !important;
}

/* Dark mode logo handling */
.light-mode-item {
  display: block;
}

.dark-mode-item {
  display: none;
}

[data-bs-theme="dark"] .light-mode-item {
  display: none;
}

[data-bs-theme="dark"] .dark-mode-item {
  display: block;
}

/* Better navbar dropdown positioning */
.dropdown-menu {
  margin-top: 0.5rem;
}

/* Dropdown submenu specific styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-top: 0;
}

/* Card image hover overlay */
.card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-img-overlay {
  opacity: 1;
}

/* Ensure shopping cart icon is visible on hover */
.card-element-hover {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.card:hover .card-element-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Fix for icon-md in card overlay */
.card-img-overlay .icon-md {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Better responsive images */
.card-img-top {
  height: 220px;
  object-fit: cover;
}

/* Section padding consistency */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

/* Margin negative utilities */
.mb-n3 {
  margin-bottom: -1rem !important;
}

.mb-n9 {
  margin-bottom: -5rem !important;
}

/* Fix for footer margin overlap */
footer {
  margin-top: 5rem;
}

/* Newsletter section z-index */
.mb-n9 {
  position: relative;
  z-index: 9;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Button active states */
.btn:active {
  transform: scale(0.98);
}

/* Link transitions */
a {
  transition: color 0.2s ease;
}

/* Badge with icon alignment */
.badge i {
  font-size: 0.5em;
  vertical-align: middle;
}

/* Hstack gap utility */
.hstack {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
}

.hstack.gap-2 {
  gap: 0.5rem;
}

/* List inline fix */
.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

/* Fix hr margin in cards */
.card-body hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Price styling */
h3.text-success {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navbar brand consistency */
.navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Ensure dropdowns are above other content */
.dropdown-menu {
  z-index: 1000;
}

/* Navbar scroll behavior enhancement */

.card overlay hover */
.card-overlay-hover {
  position: relative;
  overflow: hidden;
}

.card-overlay-hover img {
  transition: transform 0.3s ease;
}

.card:hover .card-overlay-hover img {
  transform: scale(1.05);
}

/* Dropdown submenu styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
  display: none;
}

/* Show main dropdowns on hover for desktop - works with Vue hover handlers */
@media (min-width: 992px) {
  /* Ensure dropdown menu has proper positioning */
  .navbar-nav .dropdown {
    position: relative;
  }
  
  .navbar-nav .dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    display: none;
  }
  
  /* Show on hover (CSS fallback) */
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    animation: dropdown-slide 0.2s ease-out;
  }
  
  /* Also show when Vue adds 'show' class */
  .navbar-nav .dropdown > .dropdown-menu.show {
    display: block;
    animation: dropdown-slide 0.2s ease-out;
  }
  
  /* Keep dropdown open when hovering the menu itself */
  .navbar-nav .dropdown > .dropdown-menu:hover {
    display: block;
  }
  
  /* Show submenu on hover */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: dropdown-slide 0.2s ease-out;
  }
  
/* Keep parent dropdown open when hovering submenu */
.dropdown-submenu:hover {
  background-color: rgba(255, 38, 0, 0.05);
}
  
  /* Hide the toggle arrow on desktop for hover menus */
  .navbar-nav .dropdown-toggle::after {
    transition: transform 0.2s;
  }
  
  .navbar-nav .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Mobile styles */
@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    left: auto;
    margin-left: 1rem;
    margin-top: 0.5rem;
    box-shadow: none;
    border-left: 2px solid var(--bs-primary);
  }
  
  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
}

/* Tiny slider styles */
.tiny-slider {
  position: relative;
}

.tiny-slider-inner {
  display: flex;
  overflow: hidden;
}

.tiny-slider .item {
  flex: 0 0 auto;
}

/* Slider arrows */
.arrow-round .tns-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s;
}

.arrow-round .tns-controls button:hover {
  background: var(--bs-primary);
  color: #fff;
}

.arrow-round .tns-controls button:first-child {
  left: -20px;
}

.arrow-round .tns-controls button:last-child {
  right: -20px;
}

/* Arrow blur effect */
.arrow-blur .tns-controls button {
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.9);
}

/* Nav link hover */
.nav-link {
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--bs-primary);
}

/* Active states */
.dropdown-item.active {
  color: var(--bs-primary);
  background-color: rgba(255, 38, 0, 0.1);
}

/* Navbar sticky shadow */

/* Section spacing */
section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/* Display 5 size */
.display-5 {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .display-5 {
    font-size: 3rem;
  }
}

/* H1 size */
.h1 {
  font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
  .h1 {
    font-size: 2.5rem;
  }
}

/* Badge text bg white */
.text-bg-white {
  background-color: #fff !important;
  color: #2b2040 !important;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Text decoration none for links */
a {
  text-decoration: none;
}

/* Dropdown toggle caret */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Modal backdrop */
.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

/* Profile dropdown fix - ensure it stays in viewport */
.dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
  max-height: 90vh;
  overflow-y: auto;
  position: absolute;
}

/* Fix for profile dropdown being cut off */
@media (max-width: 575.98px) {
  .dropdown-menu.dropdown-menu-end {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 100px);
  }
}

/* Theme switcher button styles fix */
.dark-mode-switch button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  color: var(--bs-secondary);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dark-mode-switch button.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.dark-mode-switch button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Ensure dark mode theme colors apply correctly */
[data-bs-theme="dark"] {
  color-scheme: dark;
}

[data-bs-theme="dark"] body {
  background-color: var(--bs-dark);
  color: var(--bs-light);
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #3d3259;
  border-color: #4a3d6b;
  color: #e9f2ef;
}

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

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

[data-bs-theme="dark"] .card {
  background-color: #352b4a;
  border-color: #4a3d6b;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #4a3d6b !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: #352b4a !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #e9f2ef !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #f8f9fa;
}
