body { font-family: 'Inter', system-ui, sans-serif; }
.gauge {
  width: 220px;
  height: 110px;
  display: block;
  margin: 0 auto;
}
.gauge-text {
  font-size: 2.5rem;
  font-weight: bold;
  text-anchor: middle;
  fill: #9333ea;
}
.gauge-label {
  font-size: 1.1rem;
  text-anchor: middle;
  fill: #64748b;
}
.sidebar-collapsed { width: 64px !important; }
.sidebar-expanded { width: 220px !important; }
.sidebar-icon { min-width: 2rem; }

.sidebar-logo {
  transition: opacity 0.2s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .md\:hidden {
    display: none;
  }
  .md\:flex-row {
    flex-direction: column;
  }
  .md\:items-center {
    align-items: stretch;
  }

  /* Mobile sidebar styles */
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    width: 280px !important;
  }
  #sidebar.mobile-open {
    transform: translateX(0);
  }
  #mainContent {
    margin-left: 0 !important;
  }
  #topHeader {
    left: 0 !important;
  }
  .sidebar-label {
    display: block !important;
  }
  
  /* Grid responsive adjustments */
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Table responsive */
  .overflow-x-auto {
    overflow-x: auto;
  }
  
  /* Cards responsive */
  .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  /* Flex responsive */
  .md\:flex-row {
    flex-direction: column !important;
  }
  
  /* Spacing adjustments */
  .p-6 {
    padding: 1rem !important;
  }
  
  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .p-4 {
    padding: 0.75rem !important;
  }
  
  .gap-6 {
    gap: 1rem !important;
  }
  
  .gap-4 {
    gap: 0.75rem !important;
  }
}

/* Sidebar link styles */
.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #374151;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background-color: #f3f4f6;
}

.sidebar-link.text-primary-700 {
  color: #1d4ed8;
  font-weight: 600;
}


/* Sidebar Submenu Styles */
.sidebar-parent .submenu-chevron {
  transition: transform 0.2s ease;
}

.sidebar-parent .rotate-180 {
  transform: rotate(180deg);
}

[id$="Submenu"] {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

[id$="Submenu"]:not(.hidden) {
  max-height: 1000px; /* Adjust based on your content */
}