/* Enersponse Theme System - Works with Tailwind CSS */

/* Default Theme (Enersponse Brand) */
:root {
  /* Primary Brand Colors */
  --color-primary: 46, 173, 171; /* #2EADAB */
  --color-secondary: 70, 107, 138; /* #466B8A */
  --color-accent: 16, 185, 129; /* #10B981 */
  
  /* Dashboard Colors */
  --color-background: 249, 250, 251; /* #F9FAFB */
  --color-surface: 255, 255, 255; /* #FFFFFF */
  --color-sidebar: 31, 41, 55; /* #1F2937 */
  
  /* Text Colors */
  --color-text-primary: 17, 24, 39; /* #111827 */
  --color-text-secondary: 107, 114, 128; /* #6B7280 */
  --color-text-inverse: 255, 255, 255; /* #FFFFFF */
  
  /* Status Colors */
  --color-success: 34, 197, 94; /* #22C55E */
  --color-warning: 251, 191, 36; /* #FBBF24 */
  --color-error: 239, 68, 68; /* #EF4444 */
  --color-info: 59, 130, 246; /* #3B82F6 */
  
  /* Border & Shadows */
  --color-border: 229, 231, 235; /* #E5E7EB */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* White Label Theme Examples */

/* Client A - Blue Theme */
.theme-client-blue {
  --color-primary: 59, 130, 246; /* #3B82F6 */
  --color-secondary: 139, 92, 246; /* #8B5CF6 */
  --color-accent: 236, 72, 153; /* #EC4899 */
  --color-sidebar: 30, 58, 138; /* #1E3A8A */
}

/* Client B - Green Theme */
.theme-client-green {
  --color-primary: 34, 197, 94; /* #22C55E */
  --color-secondary: 16, 185, 129; /* #10B981 */
  --color-accent: 251, 191, 36; /* #FBBF24 */
  --color-sidebar: 20, 83, 45; /* #14532D */
}

/* Client C - Purple Theme */
.theme-client-purple {
  --color-primary: 139, 92, 246; /* #8B5CF6 */
  --color-secondary: 168, 85, 247; /* #A855F7 */
  --color-accent: 59, 130, 246; /* #3B82F6 */
  --color-sidebar: 88, 28, 135; /* #581C87 */
}

/* Dark Mode */
.dark {
  --color-background: 17, 24, 39; /* #111827 */
  --color-surface: 31, 41, 55; /* #1F2937 */
  --color-sidebar: 17, 24, 39; /* #111827 */
  --color-text-primary: 243, 244, 246; /* #F3F4F6 */
  --color-text-secondary: 156, 163, 175; /* #9CA3AF */
  --color-border: 55, 65, 81; /* #374151 */
}

/* Utility Classes for Custom Colors */
.bg-primary { 
  background-color: rgb(var(--color-primary)) !important; 
}
.bg-secondary { background-color: rgb(var(--color-secondary)); }
.bg-accent { background-color: rgb(var(--color-accent)); }
.bg-surface { background-color: rgb(var(--color-surface)); }
.bg-sidebar { background-color: rgb(var(--color-sidebar)); }

.text-primary { color: rgb(var(--color-text-primary)); }
.text-secondary { color: rgb(var(--color-text-secondary)); }
.text-inverse { color: rgb(var(--color-text-inverse)); }

.border-primary { border-color: rgb(var(--color-primary)); }
.border-secondary { border-color: rgb(var(--color-secondary)); }

/* Force header color */
header.bg-primary, 
header[class*="bg-primary"] {
  background-color: rgb(var(--color-primary)) !important;
}

/* Dashboard Components - Modern & Sleek */

/* Card Component */
.dashboard-card {
  @apply bg-white rounded-lg shadow-md p-6 transition-shadow hover:shadow-lg;
  background-color: rgb(var(--color-surface));
}

/* Sidebar */
.dashboard-sidebar {
  @apply w-64 min-h-screen shadow-lg;
  background-color: rgb(var(--color-sidebar));
}

/* Data Table */
.dashboard-table {
  @apply w-full bg-white shadow-md rounded-lg overflow-hidden;
}

.dashboard-table thead {
  background-color: rgb(var(--color-background));
}

.dashboard-table tbody tr:hover {
  background-color: rgba(var(--color-primary), 0.05);
}

/* Buttons */
.btn-primary {
  @apply px-4 py-2 rounded-md font-medium text-white transition-all duration-200 hover:shadow-md;
  background-color: rgb(var(--color-primary));
}

.btn-secondary {
  @apply px-4 py-2 rounded-md font-medium text-white transition-all duration-200 hover:shadow-md;
  background-color: rgb(var(--color-secondary));
}

/* Form Inputs */
.form-input {
  @apply w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 transition-colors;
  border-color: rgb(var(--color-border));
  color: rgb(var(--color-text-primary));
}

.form-input:focus {
  border-color: rgb(var(--color-primary));
  --tw-ring-color: rgba(var(--color-primary), 0.3);
}

/* Charts Container */
.chart-container {
  @apply bg-white rounded-lg shadow-md p-4;
  background-color: rgb(var(--color-surface));
}

/* Status Indicators */
.status-success { color: rgb(var(--color-success)); }
.status-warning { color: rgb(var(--color-warning)); }
.status-error { color: rgb(var(--color-error)); }
.status-info { color: rgb(var(--color-info)); }

/* Responsive Navigation */
.nav-item {
  @apply px-4 py-2 rounded-md transition-colors duration-200;
}

.nav-item:hover {
  background-color: rgba(var(--color-primary), 0.1);
}

.nav-item.active {
  background-color: rgb(var(--color-primary));
  color: rgb(var(--color-text-inverse));
}

/* Exact CodePen Filter Styling - Single Row - Centered */
.filters-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  justify-content: center;
}

.filters-container.justify-center {
  justify-content: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.filter-input {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 120px;
  transition: border-color 0.15s ease-in-out;
}

/* Global search input styling */
#globalSearch {
  min-width: 300px;
  padding: 8px 16px;
  font-size: 15px;
}

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

.filter-input::placeholder {
  color: #9ca3af;
}

.apply-btn {
  padding: 6px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.apply-btn:hover {
  background-color: #2563eb;
}

.filter-select:hover {
  @apply border-gray-400;
}


/* Legacy class support for existing FilterDropDown */
.FilterDropDown {
  @apply w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-150;
  background: white;
}

.FilterDropDown:hover {
  @apply border-gray-400;
}

.SortButton {
  @apply w-4 h-4 cursor-pointer;
  accent-color: rgb(var(--color-primary));
}

/* Search Button Styles - Clean & Modern */
#SearchButton {
  @apply px-6 py-2 text-sm font-medium text-white rounded-md shadow-sm transition-all duration-150;
  background: rgb(var(--color-primary));
  border: none;
  cursor: pointer;
  font-size: 14px;
  min-width: 100px;
}

#SearchButton:hover {
  background: rgb(var(--color-secondary));
  transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#SearchButton:active {
  transform: none;
}

#SearchButtonContainer {
  @apply p-4 flex items-center justify-center;
}

/* Make the filter table responsive */
.filter-table-wrapper {
  @apply overflow-x-auto;
}

.filter-table-wrapper table {
  @apply min-w-full divide-y divide-gray-200;
}

/* Style radio buttons */
input[type="radio"].SortButton {
  accent-color: rgb(var(--color-primary));
}

/* Dropdown hover state */
.FilterDropDown:hover {
  border-color: rgb(var(--color-primary));
}

/* Table container styling */
#FilterContainer table {
  @apply w-full bg-white rounded-lg shadow-sm overflow-hidden;
}

/* Add some spacing to the sort buttons */
.SortButtonCell input[type="radio"] {
  @apply mx-auto;
}

/* Style for the search button table */
#SearchButtnTBL {
  @apply h-full;
}

#SearchButtonContainerRow {
  @apply h-full;
}

#SearchButtonContainer {
  @apply flex items-center justify-center h-full;
}

/* Modern Clean Table Styles - Inspired by CodePen */
.table-container {
  @apply bg-white rounded-lg shadow-sm border border-gray-200;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
}

.grid-table {
  @apply w-full;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.HeaderRow {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.HeaderCell {
  @apply text-center font-semibold text-gray-700;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 2px solid #d1d5db;
  background: #f9fafb;
  position: relative;
}

.HeaderCell:hover {
  background: rgba(59, 130, 246, 0.04);
  cursor: pointer;
}

.sort-indicator {
  @apply ml-2 text-gray-400;
  font-size: 12px;
  font-weight: normal;
  opacity: 0.6;
}

.sort-indicator.active {
  color: #3b82f6;
  opacity: 1;
}

.DataRow {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.DataRow:hover {
  background-color: #f8fafc;
}

.DataRow:last-child {
  border-bottom: none;
}

.DataCell {
  padding: 16px 20px;
  font-size: 14px;
  color: #374151;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  line-height: 1.5;
  text-align: center;
}

.DataCell.clickable {
  color: #3b82f6;
  cursor: pointer;
  font-weight: 500;
}

.DataCell.clickable:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Prevent double borders */
.HeaderCell:first-child,
.DataCell:first-child {
  border-left: none;
}

.HeaderCell:last-child,
.DataCell:last-child {
  border-right: none;
}

/* Ensure consistent row height */
.HeaderRow,
.DataRow {
  height: 52px;
}

/* Clean borders and spacing */
.grid-table thead th,
.grid-table tbody td {
  border-left: none;
  border-right: none;
}

/* Status styling for better visual hierarchy */
.DataCell[data-status="active"] {
  color: #059669;
  font-weight: 500;
}

.DataCell[data-status="inactive"] {
  color: #dc2626;
  font-weight: 500;
}

.DataCell[data-status="pending"] {
  color: #d97706;
  font-weight: 500;
}

/* Add alternating row colors for better readability */
.grid-table tbody tr:nth-child(odd) {
  @apply bg-white;
}

.grid-table tbody tr:nth-child(even) {
  @apply bg-gray-50/30;
}

.grid-table tbody tr:hover {
  @apply bg-blue-50 transition-colors;
  background-color: rgba(var(--color-primary), 0.05);
}

/* Modern Pagination Styles - Centered and Beautiful */
.pagination-container {
  @apply flex flex-col sm:flex-row justify-between items-center mt-8 px-6 py-4 bg-white border-t border-gray-200;
  max-width: 95%;
  margin: 2rem auto 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.pagination-info {
  @apply mb-3 sm:mb-0 text-sm text-gray-700;
}

.pagination-controls {
  @apply flex items-center;
}

.pagination-btn {
  @apply relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:border-primary transition-colors duration-200;
  min-height: 40px;
}

.pagination-btn-prev {
  @apply rounded-l-md;
}

.pagination-btn-next {
  @apply rounded-r-md;
}

.pagination-btn-disabled {
  @apply opacity-50 cursor-not-allowed;
  pointer-events: none;
}

.pagination-btn:not(.pagination-btn-disabled):hover {
  @apply bg-gray-50 text-gray-700;
  background-color: rgba(var(--color-primary), 0.05);
}

.pagination-current {
  @apply relative inline-flex items-center px-6 py-2 text-sm font-medium text-gray-700 bg-gray-50 border border-gray-300;
  min-height: 40px;
}

.pagination-btn svg {
  @apply w-5 h-5;
}


/* Ensure tables are responsive */
#DataTableContainer {
  @apply overflow-x-auto;
}

#DataTableContainer table {
  @apply min-w-full;
}

/* Responsive table wrapper */
.table-wrapper {
  @apply overflow-x-auto shadow-lg rounded-lg;
}

/* Make sure pagination table is also styled */
#DataTableContainer > table:first-child {
  @apply mb-4 shadow-sm;
}

/* Grid table specific styling */
.grid-table {
  @apply border-collapse;
  border-spacing: 0;
}

/* Improve cell spacing for better readability */
.grid-table td, .grid-table th {
  @apply whitespace-nowrap;
}

/* Add some padding to pagination */
.PagingRow td {
  @apply py-4;
}

/* Style the pagination buttons container */
.PagingCell {
  @apply flex items-center justify-center flex-wrap gap-2;
}

/* Loading state for data table */
#DataTableContainer.loading {
  @apply relative min-h-[200px];
}

#DataTableContainer.loading::after {
  content: "";
  @apply absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center;
}

/* Data Table Structure from SQL */

/* Data Row Styling - Clean & Modern */
.DataRow {
  @apply transition-all duration-150 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.DataRow:nth-child(odd) {
  @apply bg-white !important;
}

.DataRow:nth-child(even) {
  @apply bg-white !important;
}

.DataRow:hover {
  background-color: #f8fafc !important;
  transform: none;
  box-shadow: none;
}

/* Header Row Styling - Clean Modern Look */
.HeaderRow {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.HeaderRow .HeaderCell {
  @apply font-semibold text-sm text-gray-600 py-4 px-6 !important;
  background: transparent !important;
  border-right: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
}

.HeaderRow .HeaderCell:last-child {
  @apply border-r-0 !important;
}

/* Data Cell Styling - Clean & Modern */
.DataCell {
  @apply px-6 py-4 text-base !important;
  border-right: none !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #1f2937 !important;
  font-weight: 400 !important;
}

.DataCell:last-child {
  @apply border-r-0 !important;
}

/* Modern Grid Table Styling */
.grid-table {
  @apply w-full bg-white shadow-sm rounded-lg overflow-hidden border border-gray-200 !important;
  border-collapse: collapse !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.grid-table thead {
  @apply bg-gray-50 !important;
}

.grid-table thead .HeaderRow {
  @apply border-b border-gray-200 !important;
}

.grid-table thead .HeaderCell {
  @apply px-6 py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider !important;
  background: #f9fafb !important;
}

.grid-table tbody {
  @apply bg-white divide-y divide-gray-200 !important;
}

.grid-table tbody .DataRow {
  @apply hover:bg-gray-50 transition-colors duration-150 !important;
}

.grid-table tbody .DataRow .DataCell {
  @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 !important;
  text-align: center !important;
}

.grid-table tbody .DataRow:last-child {
  @apply border-b-0 !important;
}

/* Force table styling for any table in DataTableContainer */
#DataTableContainer table {
  @apply w-full bg-white shadow-sm rounded-lg overflow-hidden border border-gray-200 !important;
  border-collapse: collapse !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#DataTableContainer table thead {
  @apply bg-gray-50 !important;
}

#DataTableContainer table thead tr {
  @apply border-b border-gray-200 !important;
}

#DataTableContainer table thead th {
  @apply px-6 py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider !important;
  background: #f9fafb !important;
}

#DataTableContainer table tbody {
  @apply bg-white divide-y divide-gray-200 !important;
}

#DataTableContainer table tbody tr {
  @apply hover:bg-gray-50 transition-colors duration-150 !important;
}

#DataTableContainer table tbody td {
  @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  text-align: center !important;
}

#DataTableContainer table tbody tr:last-child td {
  @apply border-b-0 !important;
}

/* Pagination Table Styling (from genTable.sql line 143) */
#DataTableContainer table:first-child {
  @apply mb-4 shadow-sm !important;
}

/* Force all tables in DataTableContainer to have proper styling */
#DataTableContainer table {
  @apply w-full !important;
  border-collapse: collapse !important;
}

#DataTableContainer table td {
  @apply border-b border-gray-100 !important;
}

/* Professional Enhancements for Senior-Friendly Design */

/* Table Container Enhancements - Clean & Modern */
#DataTableContainer {
  @apply overflow-x-auto shadow-sm rounded-lg !important;
  background: white;
  border: 1px solid #f1f5f9;
}

/* Filter Container Styling */
#FilterContainer table {
  @apply w-full shadow-sm rounded-lg overflow-hidden !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-collapse: collapse;
}

#FilterContainer table .FilterNameCell {
  @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider !important;
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-right: none !important;
}

#FilterContainer table .FilterDropDown {
  @apply px-3 py-2 text-sm border border-gray-300 rounded-md !important;
  background: white !important;
  min-width: 120px !important;
}

#FilterContainer table .SortButtonCell {
  @apply px-3 py-2 text-center !important;
  background: white !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

/* Overall Container Improvements */
.dashboard-card {
  @apply bg-white rounded-lg shadow-sm border border-gray-100 !important;
  background: white;
}

/* Add subtle animations for professional feel */
.FilterDropDown, #SearchButton, #PreviousPage, #NextPage {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force modern table styling to override all existing styles */
#DataTableContainer table.grid-table {
  @apply w-full bg-white !important;
  border-collapse: collapse !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

#DataTableContainer table.grid-table .HeaderRow {
  @apply bg-gray-50 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#DataTableContainer table.grid-table .HeaderRow .HeaderCell {
  @apply text-left font-medium text-gray-500 uppercase tracking-wider !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
  background: #f9fafb !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  border-bottom: 2px solid #d1d5db !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#DataTableContainer table.grid-table .DataRow {
  @apply bg-white hover:bg-gray-50 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  transition: background-color 0.2s ease !important;
}

#DataTableContainer table.grid-table .DataRow .DataCell {
  @apply text-gray-900 !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  text-align: center !important;
  white-space: nowrap !important;
  min-width: 80px !important;
}

#DataTableContainer table.grid-table .HeaderRow .HeaderCell:first-child,
#DataTableContainer table.grid-table .DataRow .DataCell:first-child {
  border-left: none !important;
}

#DataTableContainer table.grid-table .HeaderRow .HeaderCell:last-child,
#DataTableContainer table.grid-table .DataRow .DataCell:last-child {
  border-right: none !important;
}

/* Pagination styling to match */
#DataTableContainer table:first-child {
  @apply bg-white border border-gray-200 rounded-lg mb-4 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

#DataTableContainer table:first-child .PagingRow {
  @apply bg-white !important;
}

#DataTableContainer table:first-child .PagingCell {
  @apply px-6 py-4 text-sm text-gray-500 !important;
}

/* Global table resets and modern styling */
table {
  border-spacing: 0 !important;
  border-collapse: collapse !important;
}

table td, table th {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure all DataTableContainer content follows modern styling */
#DataTableContainer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#DataTableContainer table {
  @apply w-full bg-white !important;
  border-collapse: collapse !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
}

#DataTableContainer table td {
  @apply px-6 py-4 text-sm !important;
  border-bottom: 1px solid #f3f4f6 !important;
  border-right: none !important;
}

#DataTableContainer table tr:last-child td {
  border-bottom: none !important;
}

/* Compatibility styles for mixed old/new structure */
#DataTableContainer .pagination-container,
#DataTableContainer .filter-container {
  @apply bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden mb-6 !important;
}

#DataTableContainer .pagination-info {
  @apply text-sm text-gray-700 !important;
}

#DataTableContainer .pagination-info .CurrentPage,
#DataTableContainer .pagination-info .TotalPages {
  @apply font-semibold text-gray-900 !important;
}

#DataTableContainer .pagination-buttons {
  @apply flex items-center gap-2 !important;
}

#DataTableContainer .pagination-btn {
  @apply px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 transition-colors duration-150 !important;
}

/* Enhanced button styling */
#SearchButton {
  @apply px-4 py-2 text-white text-sm font-medium rounded-md transition-colors duration-150 !important;
  background-color: rgb(var(--color-primary)) !important;
}

#SearchButton:hover {
  background-color: rgb(var(--color-secondary)) !important;
}

/* Senior-Friendly Mobile Responsiveness */
@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .filter-input {
    width: 100%;
    min-width: auto;
  }
  
  .apply-btn {
    width: 100%;
    padding: 10px 16px;
  }
  
  .table-container {
    @apply overflow-x-auto;
  }
  
  .HeaderCell {
    padding: 12px 16px;
    font-size: 13px;
    min-width: 120px;
  }
  
  .DataCell {
    padding: 12px 16px;
    font-size: 13px;
    min-width: 120px;
  }
  
  .pagination-container {
    @apply flex-col gap-3 px-4 py-3;
  }
  
  .pagination-info {
    @apply text-center;
  }
  
  .pagination-buttons {
    @apply justify-center gap-2;
  }
  
}

@media (max-width: 480px) {
  .filter-title {
    @apply text-base;
  }
  
  .filter-label {
    font-size: 14px;
  }
  
  .filter-select,
  .filter-input {
    font-size: 14px;
    min-height: 44px;
  }
  
  .HeaderCell {
    padding: 10px 12px;
    font-size: 12px;
    min-width: 100px;
  }
  
  .DataCell {
    padding: 10px 12px;
    font-size: 12px;
    min-width: 100px;
  }
}