/* Basic Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #566a7f;
  background-color: #f5f5f9;
}

/* Utility Classes */
.text-primary {
  color: #696cff !important;
}

.bg-primary {
  background-color: #696cff !important;
}

.btn-primary {
  background-color: #696cff;
  border-color: #696cff;
}

.btn-primary:hover {
  background-color: #5f62e6;
  border-color: #5f62e6;
}

.bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: #696cff !important;
}

/* Section Spacing */
.section-py {
  padding: 5rem 0;
}

/* Card Styles */
.card {
  border: 1px solid #d9dee3;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
  background-color: #fff;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

/* Button Styles */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Avatar Styles */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #d9dee3;
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
}

/* Icon Styles */
.icon-base {
  font-family: 'boxicons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

.icon-md {
  font-size: 1.25rem;
}

.icon-lg {
  font-size: 1.5rem;
}

.icon-12px {
  font-size: 0.75rem;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #696cff;
}

.swiper-pagination-bullet-active {
  background-color: #696cff;
}

/* Animation Classes */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .d-md-flex {
    display: flex !important;
  }
  
  .d-none {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .d-xl-block {
    display: block !important;
  }
}

/* Dark Mode Support */
[data-theme="dark"] {
  background-color: #2b2c40;
  color: #a1a5bb;
}

[data-theme="dark"] .card {
  background-color: #2b2c40;
  border-color: #444564;
}

[data-theme="dark"] .navbar {
  background-color: #2b2c40 !important;
  border-color: #444564;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
  color: #a1a5bb;
}

[data-theme="dark"] .navbar-light .navbar-brand {
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #696cff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5f62e6;
}

/* Focus States */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
  border-color: #696cff;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Navbar Styles */
/* .layout-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} */

.landing-navbar {
  padding: 1rem 0;
}

.navbar-brand.app-brand {
  display: flex;
  align-items: center;
}

.app-brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.app-brand-logo {
  display: flex;
  align-items: center;
}

.app-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.landing-nav-menu {
  flex-grow: 1;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: #566a7f;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #696cff;
}

.navbar-nav .nav-link.active {
  color: #696cff;
}

/* Mega Dropdown Styles */
.mega-dropdown .dropdown-menu {
  width: 100%;
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 2rem;
}

.mega-dropdown-link {
  color: #566a7f;
  text-decoration: none;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.mega-dropdown-link:hover {
  color: #696cff;
  background: none;
}

.avatar-initial {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16);
  color: #696cff;
}

/* Theme Switcher */
.dropdown-style-switcher .dropdown-menu {
  min-width: 200px;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

.dropdown-style-switcher .dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  color: #566a7f;
  transition: all 0.3s ease;
}

.dropdown-style-switcher .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #696cff;
}

.dropdown-style-switcher .dropdown-item.active {
  background-color: #696cff;
  color: white;
}

.theme-icon-active {
  color: #696cff;
}

/* Mobile Menu */
.landing-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1029;
  display: none;
}

.landing-menu-overlay.show {
  display: block;
}

@media (max-width: 991.98px) {
  .landing-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1031;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .landing-nav-menu.show {
    transform: translateX(0);
  }
  
  /* .navbar-nav {
    margin-top: 2rem;
  } */
  
  .navbar-nav .nav-item {
    margin-bottom: 1rem;
  }
  
  .mega-dropdown .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}
