:root {
  --sonasid-primary: #ec6235;
  --sonasid-primary-dark: #d4552e;
  --sonasid-primary-light: #ff7849;
  --sonasid-secondary: #1f2937;
  --sidebar-width: 260px;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar {
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background-color: #f9fafb;
  transition: margin-left 0.3s ease;
}

.navbar {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 0.75rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: 220px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: slideDown 0.2s ease-out;
}

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

.dropdown-menu a {
  transition: all 0.15s ease;
}

.dropdown-menu a:hover {
  transform: translateX(4px);
}

.chart-container {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.chart-container:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--sonasid-primary), var(--sonasid-primary-dark));
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Enhanced styling for multi-select options (e.g. roles field) */
select.form-input[multiple] {
  min-height: 10rem;
  padding-right: 0.5rem;
}

select.form-input[multiple] option {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

select.form-input[multiple] option:nth-child(even) {
  background-color: #f9fafb;
}

select.form-input[multiple] option:checked {
  background-color: var(--sonasid-primary);
  color: #ffffff;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .main-content {
    margin-left: 0;
  }

  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}