/* Custom CSS for Canboards Login Page */

/* Import Outfit font */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(135deg, #986dff 0%, #ffa1e0 50%, #986dff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Typing Animation */
.typing-subtitle {
  overflow: hidden;
  /* border-right: 2px solid #986DFF; */
  white-space: nowrap;
  animation: typing 2s steps(40, end), blink-caret 1s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #986dff;
  }
}

/* Form Input Animations */
.form-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(152, 109, 255, 0.15);
}

/* Button Hover Animations */
.btn-animate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-animate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-animate:hover::before {
  left: 100%;
}

.btn-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(47, 46, 120, 0.3);
}

/* Social Button Animations */
.social-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Login Image Animation */
.login-image-animate {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation Delays */
.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.5s;
}

.fade-in:nth-child(6) {
  animation-delay: 0.6s;
}

/* Pulse Animation for Logo */
.logo-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Focus Ring Animation */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(152, 109, 255, 0.3);
  animation: focusPulse 0.3s ease-out;
}

@keyframes focusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(152, 109, 255, 0.7);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(152, 109, 255, 0.3);
  }
}

/* Mobile Tab Styles */
.mobile-tab {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 2px;
}

.mobile-tab:hover {
  background-color: rgba(47, 46, 120, 0.05);
}

.mobile-tab.active {
  color: #2f2e78;
  background-color: rgba(47, 46, 120, 0.1);
}

.mobile-tab i {
  transition: transform 0.2s ease;
}

.mobile-tab:hover i {
  transform: scale(1.1);
}

/* Mobile Content Animations */
.mobile-tab-content {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 1023px) {
  .h-screen-new {
    height: calc(100vh - 80px);
    /* Account for mobile tab bar */
  }

  .mobile-tab {
    min-width: 0;
    flex: 1;
  }

  .mobile-tab span {
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-tab i {
    font-size: 16px;
  }
}

/* Mobile Card Hover Effects */
@media (min-width: 768px) {
  .mobile-tab-content .border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Study section background with diagonal stripes */
.study-bg {
  background-color: #f8c769;
}

/* Alternative diagonal stripe pattern - more subtle */
.study-bg-alt {
  background: repeating-linear-gradient(
    45deg,
    #f6be65,
    #f6be65 2px,
    #f8d08a 2px,
    #f8d08a 4px
  );
  background-color: #f6be65;
}

body {
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  /* overflow: hidden; */
}

/* Custom scrollbar */

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2c2c2c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #464646;
}

/* Form input focus effects */
input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(152, 109, 255, 0.15);
  border-color: #986dff;
}

/* Button hover effects */
/* button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

/* Social login button hover effects */
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(152, 109, 255, 0.15);
  border-color: #986dff;
}

/* Gradient border effect for social buttons */
.social-btn {
  position: relative;
  background: white;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #986dff 0%, #ffa1e0 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-btn:hover::before {
  opacity: 1;
}

/* Animation for the illustration */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.illustration-float {
  animation: float 3s ease-in-out infinite;
}

/* Login image effects */
.login-image {
  transition: transform 0.3s ease-in-out;
}

.login-image:hover {
  transform: scale(1.02);
}

/* Subtle zoom effect on load */
@keyframes imageZoom {
  0% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.login-image-animate {
  animation: imageZoom 1.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .main-container {
    margin: 1rem;
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    margin: 0.5rem;
    border-radius: 0.75rem;
  }

  .login-form {
    padding: 2rem 1.5rem;
  }
}

/* Typing Animation */
@keyframes typing {
  0% {
    width: 0;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  50% {
    border-color: transparent;
  }

  51%,
  100% {
    border-color: #ffa1e0;
  }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ffa1e0;
  animation: typing 2s steps(10, end), blink 1s infinite;
  width: 0;
  animation-fill-mode: forwards;
}

.typing-subtitle {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #986dff 0%, #ffa1e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom checkbox styling */
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 2px;
  background: white;
  cursor: pointer;
  position: relative;
}

.checkbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #000 0%, #000 100%);
  border-color: #000;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Password toggle button styling */
#togglePassword {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#togglePassword:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Link hover effects */
/* a:hover {
    text-decoration: none;
    opacity: 0.8;
} */

/* Loading animation for login button */
.login-loading {
  position: relative;
  pointer-events: none;
}

.login-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Glass morphism effect for the main container */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom focus ring for accessibility */
.focus-ring:focus {
  outline: 2px solid #986dff;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

/* Mobile-specific styles */
@media (max-width: 640px) {
  .social-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .social-buttons button {
    justify-content: center;
    padding: 0.75rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-primary {
    background-color: #000 !important;
  }

  .text-primary {
    color: #000 !important;
  }

  .border-gray-300 {
    border-color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
table {
  text-wrap: nowrap;
}
table td {
  text-wrap: nowrap;
}
table th {
  text-wrap: nowrap;
}

/* Dashboard Styles */
.tab-button {
  position: relative;
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
  transform-origin: bottom;
}

.tab-button:nth-child(1) {
  animation-delay: 0.1s;
}

.tab-button:nth-child(2) {
  animation-delay: 0.2s;
}

.tab-button:nth-child(3) {
  animation-delay: 0.3s;
}

.tab-button:nth-child(4) {
  animation-delay: 0.4s;
}

.tab-button.active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Accordion tab hover effects */
.tab-button[data-tab="study"]:hover {
  background-color: rgb(254 249 195) !important;
  color: rgb(161 98 7) !important;
}

.tab-button[data-tab="work"]:hover {
  background-color: rgb(252 231 243) !important;
  color: rgb(157 23 77) !important;
}

.tab-button[data-tab="visit"]:hover {
  background-color: rgb(204 251 241) !important;
  color: rgb(13 148 136) !important;
}

.tab-button[data-tab="settle"]:hover {
  background-color: rgb(255 237 213) !important;
  color: rgb(194 65 12) !important;
}

/* Hero card animations */
.hero-card {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1.05);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: scale(1.02);
  }

  40% {
    transform: scale(1.05);
  }

  80% {
    transform: scale(1.03);
  }
}

/* Service card hover effects */
.service-card {
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.service-card:nth-child(7) {
  animation-delay: 0.7s;
}

.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

.service-card:nth-child(9) {
  animation-delay: 0.9s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: cardHover 0.3s ease-out;
}

@keyframes cardHover {
  0% {
    transform: translateY(-5px) scale(1.01);
  }

  50% {
    transform: translateY(-10px) scale(1.03);
  }

  100% {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Custom scrollbar for dashboard */
.dashboard-scrollbar::-webkit-scrollbar {
  width: 4px;
}

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

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

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

/* Header animations */
header {
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left sidebar animations */
.w-16.bg-blue-600 {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Main content area animations */
.flex-1.bg-\[#F7F5F1\] {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Page title animations */
h1.text-3xl {
  animation: slideInLeft 0.6s ease-out 0.3s both;
}

/* Button animations */
button {
  transition: all 0.3s ease;
}

/* button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

/* Icon animations */
.service-card i {
  transition: all 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.2) rotate(5deg);
  color: #986dff;
}

/* Notification animations */
.notification {
  animation: slideInRight 0.4s ease-out;
}

/* Footer animations */
footer {
  animation: slideUp 0.6s ease-out 0.4s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading animation for buttons */
.loading-button {
  position: relative;
  overflow: hidden;
}

.loading-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Floating animation for user avatar */
.w-10.h-10.bg-gradient-to-r {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Pulse animation for notification dot */
.absolute.-top-1.-right-1.w-3.h-3.bg-green-500 {
  animation: pulse 2s infinite;
}

/* Tab content switching animation */
.tab-content.hidden {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive animations */
@media (max-width: 768px) {
  .tab-button {
    animation: slideInUp 0.6s ease-out;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Shake animation for notification bell */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Enhanced button animations */
.bg-yellow-500 {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-yellow-500:hover {
  background-color: #f59e0b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.bg-yellow-500::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.bg-yellow-500:hover::before {
  left: 100%;
}

/* Logo animation */
img[src*="Logo.svg"] {
  transition: all 0.3s ease;
}

img[src*="Logo.svg"]:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Social icons animation */
footer a {
  transition: all 0.3s ease;
}

/* Tab image animations */
.tab-button img {
  transition: all 0.3s ease;
}

.tab-button:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Page load animation */
body {
  animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for service cards */
.service-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.service-card:nth-child(7) {
  animation-delay: 0.7s;
}

.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

.service-card:nth-child(9) {
  animation-delay: 0.9s;
}

/* Vertical Writing Mode for Sidebar */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Vertical Tab Styles */
.vertical-tab {
  position: relative;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.vertical-tab:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vertical-tab.active {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Vertical tab hover effects */
.vertical-tab[data-tab="study"]:hover {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b) !important;
}

.vertical-tab[data-tab="work"]:hover {
  background: linear-gradient(to bottom, #ec4899, #db2777) !important;
}

.vertical-tab[data-tab="visit"]:hover {
  background: linear-gradient(to bottom, #14b8a6, #0d9488) !important;
}

.vertical-tab[data-tab="settle"]:hover {
  background: linear-gradient(to bottom, #fb923c, #ea580c) !important;
}

/* Vertical tab active states */
.vertical-tab[data-tab="study"].active {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b) !important;
}

.vertical-tab[data-tab="work"].active {
  background: linear-gradient(to bottom, #ec4899, #db2777) !important;
}

.vertical-tab[data-tab="visit"].active {
  background: linear-gradient(to bottom, #14b8a6, #0d9488) !important;
}

.vertical-tab[data-tab="settle"].active {
  background: linear-gradient(to bottom, #fb923c, #ea580c) !important;
}

.vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stripe {
  height: 80vh;
}

.stripe-div {
  position: absolute;
  background-image: url(../images/Group-img.png);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  bottom: -35%;
  left: 0px;
  transform: rotate(180deg);
}
.h-screen-new {
  height: calc(100vh - 4rem);
}

.soft {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Custom CSS for responsive design */

/* Mobile sidebar transitions */
@media (max-width: 1023px) {
  aside {
    transition: transform 0.3s ease-in-out;
  }

  #sidebarOverlay {
    transition: opacity 0.3s ease-in-out;
  }
}

/* Responsive text adjustments */
@media (max-width: 640px) {
  .vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
  }
}

/* Responsive grid adjustments for dashboard */
@media (max-width: 768px) {
  .stripe-div {
    bottom: 0%;
    right: -30%;
    left: inherit;
    transform: rotate(0deg);
    background-image: url(../images/bg-img-stripe.png);
  }
  .vertical {
    transform: rotate(270deg);
    font-size: 1.5rem !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  #tabGrid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    height: auto;
  }

  #tabGrid section {
    height: 100px !important;
    min-height: 100px !important;
    transition: height 0.3s ease-in-out;
  }

  /* Mobile tab height when expanded */
  #tabGrid section[data-expanded="true"] {
    height: 500px !important;
    min-height: 500px !important;
  }

  /* Mobile tab height when collapsed */
  #tabGrid section[data-expanded="false"] {
    height: 100px !important;
    min-height: 100px !important;
  }

  /* Mobile panel adjustments - keep panels within their containers */
  [data-role="panel"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
  }
}

/* Responsive table adjustments */
@media (max-width: 640px) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px;
  }
}

/* Responsive form adjustments */
@media (max-width: 640px) {
  .custom-radio {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .step-circle {
    width: 30px !important;
    height: 30px !important;
  }

  .step-dot {
    width: 8px !important;
    height: 8px !important;
  }
}

/* Responsive stepper adjustments */
@media (max-width: 768px) {
  .step-label {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  /* Ensure proper step positioning for mobile */
  .step-circle {
    position: relative;
    z-index: 10;
  }

  /* Force hardware acceleration for smooth animations */
  .progress-fill {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: width;
  }
}

/* Responsive navigation adjustments */
@media (max-width: 1023px) {
  .sidebar-hidden {
    transform: translateX(-100%);
  }

  .sidebar-visible {
    transform: translateX(0);
  }
}

/* Responsive footer adjustments */
@media (max-width: 640px) {
  footer {
    text-align: center;
  }
}

/* Responsive breadcrumb adjustments */
@media (max-width: 640px) {
  .breadcrumb-container {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .breadcrumb-item {
    font-size: 0.75rem;
  }
}

/* Responsive form field adjustments */
@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive card adjustments */
@media (max-width: 640px) {
  .card {
    margin: 0.5rem;
    padding: 1rem;
  }

  .card-header {
    padding-bottom: 0.75rem;
  }

  .card-body {
    padding-top: 0.75rem;
  }
}

/* Responsive modal adjustments */
@media (max-width: 640px) {
  .modal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Responsive tooltip adjustments */
@media (max-width: 640px) {
  .tooltip {
    font-size: 0.75rem;
    max-width: 200px;
  }
}

/* Responsive dropdown adjustments */
@media (max-width: 640px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
  }
}

/* Responsive tab adjustments */
@media (max-width: 640px) {
  .tab-content {
    padding: 1rem 0;
  }

  .tab-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-nav button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Responsive accordion adjustments */
@media (max-width: 640px) {
  .accordion-item {
    margin-bottom: 0.5rem;
  }

  .accordion-header {
    padding: 0.75rem;
  }

  .accordion-body {
    padding: 0.75rem;
  }
}

/* Responsive progress bar adjustments */
@media (max-width: 640px) {
  .progress-bar {
    height: 0.5rem;
  }

  .progress-text {
    font-size: 0.75rem;
  }
}

/* Responsive badge adjustments */
@media (max-width: 640px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Responsive alert adjustments */
@media (max-width: 640px) {
  .alert {
    padding: 0.75rem;
    margin: 0.5rem;
  }

  .alert-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Responsive loading spinner adjustments */
@media (max-width: 640px) {
  .spinner {
    width: 2rem;
    height: 2rem;
  }

  .spinner-text {
    font-size: 0.875rem;
  }
}

/* Responsive notification adjustments */
@media (max-width: 640px) {
  .notification {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
  }

  .notification-close:hover {
    opacity: 1;
  }

  .notification-content {
    padding-right: 2rem;
  }

  .notification-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
  }

  .notification-message {
    font-size: 0.875rem;
    margin: 0;
  }
}

/* Responsive search adjustments */
@media (max-width: 640px) {
  .search {
    position: relative;
    width: 100%;
  }

  .search-input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 16px;
    background-color: white;
  }

  .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
  }

  .search-button:hover {
    color: #374151;
  }
}

/* Responsive filter adjustments */
@media (max-width: 640px) {
  .filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
  }

  .filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
  }

  .filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .filter-reset {
    padding: 0.5rem 1rem;
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
  }

  .filter-apply {
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
  }
}

/* Responsive pagination adjustments */
@media (max-width: 640px) {
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 1rem 0;
  }

  .pagination-button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pagination-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
  }

  .pagination-button.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
  }

  .pagination-button:disabled {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
  }

  .pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 1rem;
  }
}

/* Responsive data table adjustments */
@media (max-width: 640px) {
  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }

  .data-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
  }

  .data-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
  }

  .data-table tr:hover {
    background-color: #f9fafb;
  }

  .data-table-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .data-table-action {
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
  }

  .data-table-action:hover {
    background-color: #e5e7eb;
  }
}

/* Responsive chart adjustments */
@media (max-width: 640px) {
  .chart-container {
    position: relative;
    height: 200px;
    width: 100%;
  }

  .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
  }

  .chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  .chart-legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.125rem;
  }
}

/* Responsive calendar adjustments */
@media (max-width: 640px) {
  .calendar {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
  }

  .calendar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
  }

  .calendar-nav {
    display: flex;
    gap: 0.5rem;
  }

  .calendar-nav-button {
    padding: 0.5rem;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    cursor: pointer;
  }

  .calendar-nav-button:hover {
    background-color: #f3f4f6;
  }

  .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
  }

  .calendar-weekday {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
  }

  .calendar-day {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #374151;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
  }

  .calendar-day:hover {
    background-color: #f9fafb;
  }

  .calendar-day.other-month {
    color: #9ca3af;
  }

  .calendar-day.today {
    background-color: #3b82f6;
    color: white;
  }

  .calendar-day.selected {
    background-color: #1e40af;
    color: white;
  }
}

/* Responsive file upload adjustments */
@media (max-width: 640px) {
  .file-upload {
    width: 100%;
  }

  .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }

  .file-upload-area:hover {
    border-color: #9ca3af;
  }

  .file-upload-area.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
  }

  .file-upload-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    color: #6b7280;
  }

  .file-upload-text {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
  }

  .file-upload-hint {
    font-size: 0.75rem;
    color: #6b7280;
  }

  .file-upload-input {
    display: none;
  }

  .file-upload-list {
    margin-top: 1rem;
  }

  .file-upload-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
  }

  .file-upload-name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
  }

  .file-upload-size {
    font-size: 0.75rem;
    color: #6b7280;
  }

  .file-upload-remove {
    padding: 0.25rem;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
  }
}

/* Responsive wizard adjustments */
@media (max-width: 640px) {
  .wizard {
    width: 100%;
  }

  .wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .wizard-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
  }

  .wizard-step.active {
    background-color: #eff6ff;
    border: 1px solid #3b82f6;
  }

  .wizard-step.completed {
    background-color: #f0fdf4;
    border: 1px solid #10b981;
  }

  .wizard-step-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
  }

  .wizard-step.active .wizard-step-number {
    background-color: #3b82f6;
  }

  .wizard-step.completed .wizard-step-number {
    background-color: #10b981;
  }

  .wizard-step-number {
    background-color: #9ca3af;
  }

  .wizard-step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
  }

  .wizard-content {
    padding: 1rem 0;
  }

  .wizard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }

  .wizard-prev {
    padding: 0.75rem 1rem;
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
  }

  .wizard-next {
    padding: 0.75rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
  }

  .wizard-finish {
    padding: 0.75rem 1rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
  }
}

/* Progress line styling */
.progress-fill {
  background-color: #10b981;
  height: 2px;
  transition: width 0.5s ease-in-out;
  z-index: 5;
  position: absolute;
  top: 3px;
  left: 0;
  right: auto;
  width: 0%;
}

.timeline-line {
  background-color: #e5e7eb;
  height: 2px;
  z-index: 1;
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
}

/* Mobile responsive progress line */
@media (max-width: 768px) {
  .progress-fill {
    top: 2px;
    left: 0;
    right: auto;
  }

  .timeline-line {
    top: 2px;
    left: 0;
    right: 0;
  }
}

/* Mobile responsive progress line */
@media (max-width: 768px) {
  .progress-fill {
    top: 2px;
    left: 0;
    right: 0;
  }

  .timeline-line {
    top: 2px;
    left: 0;
    right: 0;
  }
}

.step-content {
  overflow: auto !important;
}

.select2-selection.select2-selection--single {
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
}
.select2-selection.select2-selection--multiple {
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  height: 20px !important;
  line-height: 20px !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 6px !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  height: 20px !important;
  line-height: 20px !important;
}

.tooltip-wrap {
  position: relative;
  /* cursor: help; */
  /* display: block; */
  align-items: center;
}

.tooltip-wrap:hover::after {
  content: attr(data-tooltip);
  position: fixed; /* ✅ fixed to escape parent overflow */
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: pre-line; /* ✅ allows line breaks using \n */
  z-index: 99999; /* ✅ ensure it's always on top */
  pointer-events: none;
  transform: translate(-50%, -100%);
  left: var(--tooltip-x);
  top: var(--tooltip-y);
}

.tooltip-wrap:hover::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.note-editable menu,
.note-editable ol {
  list-style: auto !important;
}

.note-editable menu,
.note-editable ul {
  list-style: circle !important;
}

.preview menu,
.preview ol {
  list-style: auto !important;
}

.preview menu,
.preview ul {
  list-style: circle !important;
}

.full-desc menu,
.full-desc ol {
  list-style: auto !important;
}

.full-desc menu,
.full-desc ul {
  list-style: circle !important;
}

.form-check {
  display: block;
  min-height: 1.3125rem;
  padding-left: 1.75em;
  margin-bottom: 0.125rem;
}
.form-check .form-check-input {
  float: left;
  margin-left: -1.75em;
}

.form-check-reverse {
  padding-right: 1.75em;
  padding-left: 0;
  text-align: right;
}
.form-check-reverse .form-check-input {
  float: right;
  margin-right: -1.75em;
  margin-left: 0;
}

.form-check-input {
  --bs-form-check-bg: #ffffff;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.125em;
  vertical-align: top;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: var(--bs-form-check-bg);
  background-image: var(--bs-form-check-bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  print-color-adjust: exact;
  transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .form-check-input {
    transition: none;
  }
}
.form-check-input[type=checkbox] {
  border-radius: 6px;
}
.form-check-input[type=radio] {
  border-radius: 50%;
}
.form-check-input:active {
  filter: brightness(90%);
}
.form-check-input:focus {
  border-color: #4680ff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(#4680ff, 0.25);
}
.form-check-input:checked {
  background-color: #4680ff;
  border-color: #4680ff;
}
.form-check-input:checked[type=checkbox] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type=radio] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23ffffff'/%3e%3c/svg%3e");
}
.form-check-input[type=checkbox]:indeterminate {
  background-color: #4680ff;
  border-color: #4680ff;
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}
.form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}
.form-check-input[disabled] ~ .form-check-label, .form-check-input:disabled ~ .form-check-label {
  cursor: default;
  opacity: 0.5;
}

.form-switch {
  padding-left: 2.5em;
}
.form-switch .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
  width: 2em;
  margin-left: -2.5em;
  background-image: var(--bs-form-switch-bg);
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 2em;
  transition: background-position 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .form-switch .form-check-input {
    transition: none;
  }
}
.form-switch .form-check-input:focus {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='var%28--bs-primary%29'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:checked {
  background-position: right center;
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}
.form-switch.form-check-reverse {
  padding-right: 2.5em;
  padding-left: 0;
}
.form-switch.form-check-reverse .form-check-input {
  margin-right: -2.5em;
  margin-left: 0;
}
.form-check.form-switch .form-check-input.input-light-theme:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ff3366'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-primary:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234680ff'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-secondary:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%235b6b79'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-success:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232ca87f'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-info:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%233ec9d6'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-warning:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e58a00'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-danger:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23dc2626'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-light:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f8f9fa'/%3e%3c/svg%3e");
}
.form-check.form-switch .form-check-input.input-light-dark:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23212529'/%3e%3c/svg%3e");
}

.form-check-input.f-12 {
  margin-left: -2.9em;
}

.form-check .form-check-input.input-theme:checked {
  border-color: #ff3366;
  background-color: #ff3366;
}
.form-check .form-check-input.input-light-theme:checked {
  border-color: #ffebf0;
  background-color: #ffebf0;
}
.form-check .form-check-input.input-light-theme:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ff3366' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-theme:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23ff3366'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-theme:focus[type=checkbox], .form-check .form-check-input.input-theme:focus[type=radio], .form-check .form-check-input.input-light-theme:focus[type=checkbox], .form-check .form-check-input.input-light-theme:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(255, 51, 102, 0.25);
  border-color: #ff3366;
}
.form-check.form-switch .form-check-input.input-light-theme:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ff3366'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-primary:checked {
  border-color: #4680ff;
  background-color: #4680ff;
}
.form-check .form-check-input.input-light-primary:checked {
  border-color: #edf2ff;
  background-color: #edf2ff;
}
.form-check .form-check-input.input-light-primary:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%234680ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-primary:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%234680ff'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-primary:focus[type=checkbox], .form-check .form-check-input.input-primary:focus[type=radio], .form-check .form-check-input.input-light-primary:focus[type=checkbox], .form-check .form-check-input.input-light-primary:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(70, 128, 255, 0.25);
  border-color: #4680ff;
}
.form-check.form-switch .form-check-input.input-light-primary:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234680ff'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-secondary:checked {
  border-color: #5b6b79;
  background-color: #5b6b79;
}
.form-check .form-check-input.input-light-secondary:checked {
  border-color: #eff0f2;
  background-color: #eff0f2;
}
.form-check .form-check-input.input-light-secondary:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%235b6b79' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-secondary:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%235b6b79'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-secondary:focus[type=checkbox], .form-check .form-check-input.input-secondary:focus[type=radio], .form-check .form-check-input.input-light-secondary:focus[type=checkbox], .form-check .form-check-input.input-light-secondary:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(91, 107, 121, 0.25);
  border-color: #5b6b79;
}
.form-check.form-switch .form-check-input.input-light-secondary:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%235b6b79'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-success:checked {
  border-color: #2c3376;
  background-color: #2c3376;
}
.form-check .form-check-input.input-light-success:checked {
  border-color: #eaf6f2;
  background-color: #eaf6f2;
}
.form-check .form-check-input.input-light-success:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232ca87f' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-success:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%232ca87f'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-success:focus[type=checkbox], .form-check .form-check-input.input-success:focus[type=radio], .form-check .form-check-input.input-light-success:focus[type=checkbox], .form-check .form-check-input.input-light-success:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(44, 58, 168, 0.25);
  border-color: #2c3376;
}
.form-check.form-switch .form-check-input.input-light-success:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232ca87f'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-info:checked {
  border-color: #3ec9d6;
  background-color: #3ec9d6;
}
.form-check .form-check-input.input-light-info:checked {
  border-color: #ecfafb;
  background-color: #ecfafb;
}
.form-check .form-check-input.input-light-info:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%233ec9d6' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-info:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%233ec9d6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-info:focus[type=checkbox], .form-check .form-check-input.input-info:focus[type=radio], .form-check .form-check-input.input-light-info:focus[type=checkbox], .form-check .form-check-input.input-light-info:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(62, 201, 214, 0.25);
  border-color: #3ec9d6;
}
.form-check.form-switch .form-check-input.input-light-info:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%233ec9d6'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-warning:checked {
  border-color: #e58a00;
  background-color: #e58a00;
}
.form-check .form-check-input.input-light-warning:checked {
  border-color: #fcf3e6;
  background-color: #fcf3e6;
}
.form-check .form-check-input.input-light-warning:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23e58a00' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-warning:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23e58a00'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-warning:focus[type=checkbox], .form-check .form-check-input.input-warning:focus[type=radio], .form-check .form-check-input.input-light-warning:focus[type=checkbox], .form-check .form-check-input.input-light-warning:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(229, 138, 0, 0.25);
  border-color: #e58a00;
}
.form-check.form-switch .form-check-input.input-light-warning:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e58a00'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-danger:checked {
  border-color: #dc2626;
  background-color: #dc2626;
}
.form-check .form-check-input.input-light-danger:checked {
  border-color: #fce9e9;
  background-color: #fce9e9;
}
.form-check .form-check-input.input-light-danger:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23dc2626' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-danger:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23dc2626'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-danger:focus[type=checkbox], .form-check .form-check-input.input-danger:focus[type=radio], .form-check .form-check-input.input-light-danger:focus[type=checkbox], .form-check .form-check-input.input-light-danger:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
  border-color: #dc2626;
}
.form-check.form-switch .form-check-input.input-light-danger:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23dc2626'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-light:checked {
  border-color: #f8f9fa;
  background-color: #f8f9fa;
}
.form-check .form-check-input.input-light-light:checked {
  border-color: #fefeff;
  background-color: #fefeff;
}
.form-check .form-check-input.input-light-light:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23f8f9fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-light:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23f8f9fa'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light:focus[type=checkbox], .form-check .form-check-input.input-light:focus[type=radio], .form-check .form-check-input.input-light-light:focus[type=checkbox], .form-check .form-check-input.input-light-light:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
  border-color: #f8f9fa;
}
.form-check.form-switch .form-check-input.input-light-light:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f8f9fa'/%3e%3c/svg%3e");
}

.form-check .form-check-input.input-dark:checked {
  border-color: #212529;
  background-color: #212529;
}
.form-check .form-check-input.input-light-dark:checked {
  border-color: #e9e9ea;
  background-color: #e9e9ea;
}
.form-check .form-check-input.input-light-dark:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-light-dark:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23212529'/%3e%3c/svg%3e");
}
.form-check .form-check-input.input-dark:focus[type=checkbox], .form-check .form-check-input.input-dark:focus[type=radio], .form-check .form-check-input.input-light-dark:focus[type=checkbox], .form-check .form-check-input.input-light-dark:focus[type=radio] {
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
  border-color: #212529;
}
.form-check.form-switch .form-check-input.input-light-dark:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23212529'/%3e%3c/svg%3e");
}
