/* Base Styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  background-color: #f9fafb;
}

/* Sidebar Styles */
.sidebar-collapsed { width: 64px !important; }
.sidebar-expanded { width: 220px !important; }
.sidebar-icon { min-width: 2rem; }
.sidebar-logo {
  transition: opacity 0.2s ease;
}

/* Sidebar Links */
.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;
}

/* Main Layout */
#mainContent {
  transition: margin-left 0.3s ease;
}

#topHeader {
  transition: left 0.3s ease;
}

main {
  margin-top: 80px;
  padding: 1.5rem;
  min-height: calc(100vh - 80px);
}

/* Mobile Sidebar Behavior */
@media (max-width: 768px) {
  #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;
  }
  
  /* Responsive Grid */
  .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .sm\:px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Report Card Styles */
.report-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Chart Container */
.chart-container {
  height: 320px;
  position: relative;
}

/* Compliance Status Bars */
.compliance-bar {
  height: 8px;
  border-radius: 4px;
  background-color: #e5e7eb;
}

.compliance-fill {
  height: 100%;
  border-radius: 4px;
}

/* Table Styles */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

tbody tr:hover {
  background-color: #f9fafb;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 4px;
}

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