/*
 * ShareHands Admin Panel - Modern Component Styles
 * Enhanced Bootstrap components with ShareHands branding
 */

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-weight: var(--sh-font-weight-medium);
  border-radius: var(--sh-radius-base);
  padding: 0.625rem 1.25rem;
  font-size: var(--sh-font-size-sm);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--sh-gradient-primary);
  border-color: var(--sh-primary-green);
  color: var(--sh-primary-black);
  font-weight: var(--sh-font-weight-semibold);
}

.btn-primary:hover {
  background: var(--sh-gradient-primary-hover);
  border-color: var(--sh-primary-green-light);
  transform: translateY(-2px);
  box-shadow: var(--sh-shadow-green);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  border-color: var(--sh-gray-300);
  color: var(--sh-gray-700);
}

.btn-secondary:hover {
  background: var(--sh-gray-50);
  border-color: var(--sh-primary-green);
  color: var(--sh-primary-green);
}

.btn-success {
  background: var(--sh-success);
  border-color: var(--sh-success);
  color: var(--sh-white);
}

.btn-success:hover {
  background: var(--sh-success-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(51, 255, 51, 0.3);
}

.btn-danger {
  background: var(--sh-error);
  border-color: var(--sh-error);
  color: var(--sh-white);
}

.btn-danger:hover {
  background: var(--sh-error-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-warning {
  background: var(--sh-warning);
  border-color: var(--sh-warning);
  color: var(--sh-white);
}

.btn-warning:hover {
  background: var(--sh-warning-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.3);
}

.btn-info {
  background: var(--sh-info);
  border-color: var(--sh-info);
  color: var(--sh-white);
}

.btn-info:hover {
  background: var(--sh-info-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-dark {
  background: var(--sh-primary-black);
  border-color: var(--sh-primary-black);
  color: var(--sh-white);
}

.btn-dark:hover {
  background: var(--sh-primary-black-lighter);
  border-color: var(--sh-primary-green);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--sh-white);
  border-color: var(--sh-gray-300);
  color: var(--sh-gray-700);
}

.btn-light:hover {
  background: var(--sh-gray-50);
  border-color: var(--sh-primary-green);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--sh-font-size-xs);
  border-radius: var(--sh-radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--sh-font-size-base);
  border-radius: var(--sh-radius-md);
}

/* Icon Buttons */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sh-radius-base);
}

.btn-icon-sm {
  width: 2rem;
  height: 2rem;
}

.btn-icon-lg {
  width: 3rem;
  height: 3rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  border: 1px solid var(--sh-gray-200);
  border-radius: var(--sh-radius-lg);
  box-shadow: var(--sh-shadow-sm);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  background: var(--sh-white);
}

.card:hover {
  box-shadow: var(--sh-shadow-md);
  border-color: var(--sh-gray-300);
}

.card-header {
  background: var(--sh-gray-50);
  border-bottom: 1px solid var(--sh-gray-200);
  padding: 1.25rem 1.5rem;
  font-weight: var(--sh-font-weight-semibold);
  color: var(--sh-gray-800);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: var(--sh-gray-50);
  border-top: 1px solid var(--sh-gray-200);
  padding: 1rem 1.5rem;
}

/* Stat Card */
.card-stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--sh-radius-xl);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
}

.card-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-shadow-lg);
}

.card-stat .card-body {
  padding: 2rem;
}

.card-stat .stat-icon {
  font-size: 3rem;
  opacity: 0.2;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
}

.card-stat:hover .stat-icon {
  opacity: 0.3;
  transform: translateY(-50%) scale(1.1);
}

.card-stat .stat-title {
  font-size: var(--sh-font-size-sm);
  color: var(--sh-gray-600);
  margin-bottom: 0.5rem;
  font-weight: var(--sh-font-weight-medium);
}

.card-stat .stat-value {
  font-size: var(--sh-font-size-2xl);
  font-weight: var(--sh-font-weight-bold);
  color: var(--sh-gray-900);
  margin-bottom: 0;
}

.card-stat.stat-primary {
  background: var(--sh-gradient-primary);
  color: var(--sh-white);
  border: none;
}

.card-stat.stat-primary .stat-title,
.card-stat.stat-primary .stat-value {
  color: var(--sh-white);
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
  border: 2px solid var(--sh-gray-300);
  border-radius: var(--sh-radius-base);
  padding: 0.625rem 1rem;
  font-size: var(--sh-font-size-base);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  background: var(--sh-white);
  color: var(--sh-gray-800);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sh-primary-green);
  box-shadow: 0 0 0 3px var(--sh-primary-green-alpha-20);
  outline: none;
}

.form-control:disabled,
.form-select:disabled {
  background: var(--sh-gray-100);
  cursor: not-allowed;
  opacity: 0.6;
}

.form-label {
  font-weight: var(--sh-font-weight-medium);
  color: var(--sh-gray-700);
  margin-bottom: 0.5rem;
  font-size: var(--sh-font-size-sm);
}

.form-text {
  font-size: var(--sh-font-size-xs);
  color: var(--sh-gray-500);
  margin-top: 0.25rem;
}

/* Form Validation */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--sh-success);
  background-image: none;
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(51, 255, 51, 0.2);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--sh-error);
  background-image: none;
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.valid-feedback {
  color: var(--sh-success);
  font-size: var(--sh-font-size-xs);
  margin-top: 0.25rem;
}

.invalid-feedback {
  color: var(--sh-error);
  font-size: var(--sh-font-size-xs);
  margin-top: 0.25rem;
}

/* Floating Labels */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem;
}

.form-floating > label {
  padding: 1rem;
  color: var(--sh-gray-500);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--sh-primary-green);
}

/* Custom Checkbox & Radio */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--sh-gray-300);
  border-radius: var(--sh-radius-sm);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--sh-primary-green);
  border-color: var(--sh-primary-green);
}

.form-check-input:focus {
  border-color: var(--sh-primary-green);
  box-shadow: 0 0 0 3px var(--sh-primary-green-alpha-20);
}

.form-check-label {
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: var(--sh-font-size-base);
  color: var(--sh-gray-700);
}

/* Switch Toggle */
.form-switch .form-check-input {
  width: 2.5rem;
  height: 1.25rem;
  border-radius: var(--sh-radius-full);
}

.form-switch .form-check-input:checked {
  background-color: var(--sh-primary-green);
  border-color: var(--sh-primary-green);
}

/* ============================================
   TABLES
   ============================================ */

.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: var(--sh-font-size-sm);
}

.table thead th {
  background: var(--sh-gray-50);
  color: var(--sh-gray-700);
  font-weight: var(--sh-font-weight-semibold);
  border-bottom: 2px solid var(--sh-gray-200);
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}

.table tbody tr {
  transition: all var(--sh-transition-fast) var(--sh-ease-out);
}

.table tbody tr:hover {
  background: var(--sh-primary-green-pale);
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--sh-gray-200);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: var(--sh-gray-50);
}

.table-bordered {
  border: 1px solid var(--sh-gray-200);
  border-radius: var(--sh-radius-base);
  overflow: hidden;
}

/* DataTable Custom Styles */
.dataTables_wrapper {
  padding: 1.5rem;
}

.dataTables_filter input {
  border: 2px solid var(--sh-gray-300);
  border-radius: var(--sh-radius-base);
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}

.dataTables_filter input:focus {
  border-color: var(--sh-primary-green);
  outline: none;
  box-shadow: 0 0 0 3px var(--sh-primary-green-alpha-20);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  padding: 0.375rem 0.75rem;
  font-size: var(--sh-font-size-xs);
  font-weight: var(--sh-font-weight-semibold);
  border-radius: var(--sh-radius-base);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-primary {
  background: var(--sh-primary-green);
  color: var(--sh-primary-black);
}

.badge-success {
  background: var(--sh-success-light);
  color: var(--sh-success-dark);
}

.badge-danger {
  background: var(--sh-error-light);
  color: var(--sh-error-dark);
}

.badge-warning {
  background: var(--sh-warning-light);
  color: var(--sh-warning-dark);
}

.badge-info {
  background: var(--sh-info-light);
  color: var(--sh-info-dark);
}

.badge-pending {
  background: var(--sh-pending-light);
  color: var(--sh-pending-dark);
}

.badge-secondary {
  background: var(--sh-gray-200);
  color: var(--sh-gray-700);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  border: 1px solid transparent;
  border-radius: var(--sh-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: var(--sh-success-light);
  border-color: var(--sh-success);
  color: var(--sh-success-dark);
}

.alert-danger {
  background: var(--sh-error-light);
  border-color: var(--sh-error);
  color: var(--sh-error-dark);
}

.alert-warning {
  background: var(--sh-warning-light);
  border-color: var(--sh-warning);
  color: var(--sh-warning-dark);
}

.alert-info {
  background: var(--sh-info-light);
  border-color: var(--sh-info);
  color: var(--sh-info-dark);
}

.alert-dismissible .btn-close {
  padding: 0.75rem 1rem;
  background-image: none;
  opacity: 0.5;
}

.alert-dismissible .btn-close:hover {
  opacity: 1;
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
  border: none;
  border-radius: var(--sh-radius-xl);
  box-shadow: var(--sh-shadow-2xl);
}

.modal-header {
  border-bottom: 1px solid var(--sh-gray-200);
  padding: 1.5rem;
  background: var(--sh-gray-50);
  border-radius: var(--sh-radius-xl) var(--sh-radius-xl) 0 0;
}

.modal-title {
  font-weight: var(--sh-font-weight-semibold);
  color: var(--sh-gray-900);
  font-size: var(--sh-font-size-lg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--sh-gray-200);
  padding: 1rem 1.5rem;
  background: var(--sh-gray-50);
  border-radius: 0 0 var(--sh-radius-xl) var(--sh-radius-xl);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu {
  border: 1px solid var(--sh-gray-200);
  border-radius: var(--sh-radius-md);
  box-shadow: var(--sh-shadow-lg);
  padding: 0.5rem;
  animation: sh-fadeInDown 0.2s var(--sh-ease-out);
}

.dropdown-item {
  padding: 0.625rem 1rem;
  border-radius: var(--sh-radius-sm);
  transition: all var(--sh-transition-fast) var(--sh-ease-out);
  color: var(--sh-gray-700);
  font-size: var(--sh-font-size-sm);
}

.dropdown-item:hover {
  background: var(--sh-primary-green-pale);
  color: var(--sh-primary-green);
}

.dropdown-item:active {
  background: var(--sh-primary-green);
  color: var(--sh-white);
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top-color: var(--sh-gray-200);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  gap: 0.5rem;
}

.page-link {
  border: 2px solid var(--sh-gray-300);
  border-radius: var(--sh-radius-base);
  padding: 0.5rem 0.875rem;
  color: var(--sh-gray-700);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  font-weight: var(--sh-font-weight-medium);
}

.page-link:hover {
  background: var(--sh-primary-green-pale);
  border-color: var(--sh-primary-green);
  color: var(--sh-primary-green);
}

.page-item.active .page-link {
  background: var(--sh-primary-green);
  border-color: var(--sh-primary-green);
  color: var(--sh-primary-black);
  font-weight: var(--sh-font-weight-semibold);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  font-size: var(--sh-font-size-sm);
  color: var(--sh-gray-600);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--sh-gray-400);
  padding: 0 0.5rem;
}

.breadcrumb-item.active {
  color: var(--sh-gray-900);
  font-weight: var(--sh-font-weight-medium);
}

.breadcrumb-item a {
  color: var(--sh-gray-600);
  text-decoration: none;
  transition: color var(--sh-transition-fast) var(--sh-ease-out);
}

.breadcrumb-item a:hover {
  color: var(--sh-primary-green);
}

/* ============================================
   TABS
   ============================================ */

.nav-tabs {
  border-bottom: 2px solid var(--sh-gray-200);
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.875rem 1.25rem;
  color: var(--sh-gray-600);
  font-weight: var(--sh-font-weight-medium);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  border-radius: var(--sh-radius-base) var(--sh-radius-base) 0 0;
}

.nav-tabs .nav-link:hover {
  background: var(--sh-primary-green-pale);
  color: var(--sh-primary-green);
  border-bottom-color: var(--sh-primary-green-light);
}

.nav-tabs .nav-link.active {
  color: var(--sh-primary-green);
  background: transparent;
  border-bottom-color: var(--sh-primary-green);
  font-weight: var(--sh-font-weight-semibold);
}

/* Pills */
.nav-pills {
  gap: 0.5rem;
}

.nav-pills .nav-link {
  border-radius: var(--sh-radius-base);
  padding: 0.625rem 1.25rem;
  color: var(--sh-gray-600);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
}

.nav-pills .nav-link:hover {
  background: var(--sh-primary-green-pale);
  color: var(--sh-primary-green);
}

.nav-pills .nav-link.active {
  background: var(--sh-primary-green);
  color: var(--sh-primary-black);
  font-weight: var(--sh-font-weight-semibold);
}

/* ============================================
   PROGRESS
   ============================================ */

.progress {
  height: 0.75rem;
  border-radius: var(--sh-radius-full);
  background: var(--sh-gray-200);
  overflow: hidden;
}

.progress-bar {
  background: var(--sh-gradient-primary);
  transition: width var(--sh-transition-slow) var(--sh-ease-out);
  border-radius: var(--sh-radius-full);
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

/* ============================================
   TOOLTIPS & POPOVERS
   ============================================ */

.tooltip {
  font-size: var(--sh-font-size-xs);
}

.tooltip-inner {
  background: var(--sh-primary-black);
  border-radius: var(--sh-radius-base);
  padding: 0.5rem 0.75rem;
  max-width: 200px;
}

.popover {
  border: 1px solid var(--sh-gray-200);
  border-radius: var(--sh-radius-md);
  box-shadow: var(--sh-shadow-lg);
}

.popover-header {
  background: var(--sh-gray-50);
  border-bottom: 1px solid var(--sh-gray-200);
  font-weight: var(--sh-font-weight-semibold);
}

/* ============================================
   SPINNERS
   ============================================ */

.spinner-border {
  border-color: var(--sh-primary-green);
  border-right-color: transparent;
}

.spinner-grow {
  background-color: var(--sh-primary-green);
}

/* ============================================
   SIDEBAR (Left Navigation)
   ============================================ */

.left-sidebar {
  width: var(--sh-sidebar-width);
  background: var(--sh-primary-black);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  z-index: var(--sh-z-fixed);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--sh-transition-base) var(--sh-ease-out);
  border-left: 3px solid transparent;
  font-size: var(--sh-font-size-sm);
  font-weight: var(--sh-font-weight-medium);
}

.sidebar-nav ul li a i {
  width: 2rem;
  font-size: 1.25rem;
  margin-right: 0.875rem;
  transition: all var(--sh-transition-base) var(--sh-ease-out);
}

.sidebar-nav ul li a:hover {
  background: rgba(51, 255, 51, 0.1);
  color: var(--sh-primary-green);
  border-left-color: var(--sh-primary-green);
}

.sidebar-nav ul li a.active,
.sidebar-nav > ul > li.active > a {
  background: rgba(51, 255, 51, 0.15);
  color: var(--sh-primary-green);
  border-left-color: var(--sh-primary-green);
  font-weight: var(--sh-font-weight-semibold);
}

.sidebar-nav ul li a.active i,
.sidebar-nav > ul > li.active > a i {
  color: var(--sh-primary-green);
  transform: scale(1.1);
}

/* Section Headers */
.nav-subtitle {
  padding: 1.5rem 1.5rem 0.5rem;
}

.nav-subtitle-span {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--sh-font-size-xs);
  font-weight: var(--sh-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   TOPBAR (Header)
   ============================================ */

.topbar {
  height: var(--sh-topbar-height);
  background: var(--sh-white);
  border-bottom: 1px solid var(--sh-gray-200);
  box-shadow: var(--sh-shadow-sm);
  position: fixed;
  top: 0;
  left: var(--sh-sidebar-width);
  right: 0;
  z-index: var(--sh-z-sticky);
  transition: all var(--sh-transition-base) var(--sh-ease-out);
}

.topbar .navbar-header {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: calc(var(--sh-topbar-height) + 1rem);
  right: 1rem;
  z-index: var(--sh-z-toast);
  max-width: 350px;
}

.toast {
  background: var(--sh-white);
  border: 1px solid var(--sh-gray-200);
  border-radius: var(--sh-radius-md);
  box-shadow: var(--sh-shadow-lg);
  margin-bottom: 1rem;
  animation: sh-slideInRight 0.3s var(--sh-ease-out);
}

.toast-header {
  background: var(--sh-gray-50);
  border-bottom: 1px solid var(--sh-gray-200);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--sh-font-weight-semibold);
  border-radius: var(--sh-radius-md) var(--sh-radius-md) 0 0;
}

.toast-body {
  padding: 1rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--sh-gray-300);
  margin-bottom: 1.5rem;
}

.empty-state-title {
  font-size: var(--sh-font-size-xl);
  font-weight: var(--sh-font-weight-semibold);
  color: var(--sh-gray-700);
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: var(--sh-font-size-base);
  color: var(--sh-gray-500);
  margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
  .left-sidebar {
    transform: translateX(-100%);
  }
  
  .left-sidebar.show {
    transform: translateX(0);
  }
  
  .topbar {
    left: 0;
  }
}

@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: var(--sh-font-size-xs);
  }
  
  .table {
    font-size: var(--sh-font-size-xs);
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.75rem;
  }
}


/* ============================================
   SIDEBAR DROPDOWN FIX - Ensure Visibility
   ============================================ */

/* Make sure collapsed submenus are hidden */
.sidebar-nav ul.collapse {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Show when active */
.sidebar-nav ul.collapse.show,
.sidebar-nav ul.collapse.in {
    display: block !important;
    max-height: 2000px;
    overflow: visible;
}

/* Parent item when submenu is open */
.sidebar-nav li.active > a.has-arrow {
    background: rgba(51, 255, 51, 0.15) !important;
    color: var(--sh-primary-green) !important;
}

/* Arrow rotation animation */
.sidebar-nav .has-arrow::after {
    content: '\F0140';
    font-family: 'Material Design Icons';
    position: absolute;
    right: 1rem;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.sidebar-nav .has-arrow[aria-expanded="true"]::after {
    transform: rotate(90deg);
    color: var(--sh-primary-green) !important;
}

/* Ensure submenu items are visible */
.sidebar-nav ul.collapse li {
    opacity: 1;
    visibility: visible;
}

