/* Premium CSS Variable System & Styling for NexDoc */

:root {
  /* HSL Color System */
  --bg-primary: #060a13;
  --bg-secondary: #0d1527;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-active: rgba(0, 210, 255, 0.3);
  --glass-bg: rgba(13, 21, 39, 0.65);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  
  /* Accent Neon Palette */
  --accent-blue: #00d2ff;
  --accent-blue-rgb: 0, 210, 255;
  --accent-green: #00f5a0;
  --accent-green-rgb: 0, 245, 160;
  --accent-purple: #a155ff;
  --accent-orange: #ff7e47;
  
  /* Fonts & Shadows */
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur: blur(14px);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(161, 85, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(0, 210, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(0, 245, 160, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Main Container Grid */
.app-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* Glassmorphism Layout */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  transition: var(--transition-smooth);
}

/* App Header Section */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: rgba(13, 21, 39, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 10px 40px 0 var(--glass-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-icon {
  color: var(--accent-blue);
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}


/* Level Tabs */
.level-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.level-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}
.level-tab span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.level-tab small {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 1px;
}
.level-tab.active {
  background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(0, 210, 255, 0.15) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

/* State Selector Dropdown */
.state-select-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.state-select-container label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.state-select-container label i {
  width: 12px;
  height: 12px;
  color: var(--accent-blue);
}
#stateSelector {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 0.6rem 1.5rem 0.6rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
#stateSelector:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Stats Overview Section */
.stats-dashboard {
  padding: 1.5rem;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.stats-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Mode Toggle Component */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.toggle-buttons {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}
.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.toggle-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}
.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon i {
  width: 24px;
  height: 24px;
}
.bg-blue {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.2);
}
.bg-green {
  background: rgba(0, 245, 160, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 160, 0.2);
}
.bg-purple {
  background: rgba(161, 85, 255, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(161, 85, 255, 0.2);
}
.bg-orange {
  background: rgba(255, 126, 71, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 126, 71, 0.2);
}
.stat-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}
.stat-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Workspace Panels Layout */
.app-workspace {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Sidebar Search Filter Section */
.sidebar-filters {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.4rem;
}
.search-box-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.search-box-container:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}
.search-box-container i {
  color: var(--text-secondary);
  width: 16px;
  height: 16px;
}
.search-box-container input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  width: 100%;
  font-size: 0.9rem;
}

/* Filter Checkboxes and Badges */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}
.checkbox-label input {
  display: none;
}
.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.checkbox-custom i {
  color: var(--bg-primary);
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: var(--transition-smooth);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.3);
}
.checkbox-label input:checked + .checkbox-custom i {
  transform: scale(1);
}
.checkbox-label input:checked ~ span {
  color: #ffffff;
}

/* Radio Button Options */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.radio-label input {
  display: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  transform: scale(0);
  transition: var(--transition-smooth);
}
.radio-label input:checked + .radio-custom {
  border-color: var(--accent-blue);
}
.radio-label input:checked + .radio-custom::after {
  transform: scale(1);
}
.radio-label input:checked ~ span {
  color: #ffffff;
}

/* Sidebar Reset Button */
.btn-reset-filters {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-reset-filters:hover {
  background: rgba(255, 126, 71, 0.1);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Main Content Workspace Panel */
.main-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Panels tabs navigation bar */
.panel-tabs {
  display: flex;
  padding: 0.5rem;
  gap: 0.5rem;
  overflow-x: auto;
}
.panel-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.panel-tab i {
  width: 16px;
  height: 16px;
}
.panel-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}
.panel-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Panel view display logic */
.panel-views-container {
  position: relative;
}
.panel-view {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.panel-view.active {
  display: flex;
}

/* Table Explorer Views Styling */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.table-search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  gap: 0.5rem;
  max-width: 320px;
  width: 100%;
}
.table-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.85rem;
  width: 100%;
}
.table-search-bar i {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}
.table-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.table-container {
  overflow-x: auto;
  max-height: 600px;
  border-radius: 12px;
  padding-bottom: 80px !important; /* Spacing to prevent compare drawer from overlapping content */
}
#seatsTable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
#seatsTable th,
#seatsTable td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-glass);
}
#seatsTable th {
  background: rgba(0, 0, 0, 0.35);
  font-weight: 700;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: var(--glass-blur);
}
#seatsTable tbody tr {
  transition: var(--transition-smooth);
}
#seatsTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.placeholder-text {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 3rem !important;
}

/* Collapsible Grouped Table Rows */
.group-header-row {
  cursor: default;
  background: rgba(0, 210, 255, 0.02);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}
.group-header-row:hover {
  background: rgba(0, 210, 255, 0.05);
  border-left-color: var(--accent-blue);
}
.group-header-row.expanded {
  background: rgba(0, 210, 255, 0.06);
  border-left-color: var(--accent-blue);
}
.group-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
/* Dedicated expand button — large touch target */
.group-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.45rem;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.group-expand-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.2);
}
.group-expand-btn:active {
  background: rgba(0, 210, 255, 0.2);
}
.group-chevron {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  pointer-events: none; /* clicks pass through to parent button */
}
.group-header-row.expanded .group-chevron {
  transform: rotate(90deg);
}
.group-summary-chips {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-left: 38px;
}
.group-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.15);
}
.group-child-row {
  background: rgba(0, 0, 0, 0.15);
  border-left: 3px solid rgba(0, 210, 255, 0.15);
}
.group-child-row td {
  font-size: 0.825rem !important;
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

/* College Type Badge Colors */
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}
.badge-govt {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.2);
}
.badge-deemed {
  background: rgba(161, 85, 255, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(161, 85, 255, 0.2);
}
.badge-private {
  background: rgba(255, 126, 71, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 126, 71, 0.2);
}

/* Row Compare Button */
.btn-compare-action {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.btn-compare-action svg,
.btn-compare-action i {
  width: 14px;
  height: 14px;
}
.btn-compare-action:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(0, 210, 255, 0.05);
}
.btn-compare-action.active {
  background: var(--accent-blue);
  color: #000000;
  border-color: var(--accent-blue);
}

/* Analytics charts views panel */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}
.chart-container {
  padding: 1.5rem;
}
.chart-container h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chart-wrapper {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Sankey Flowchart Styles */
.sankey-explanation {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--accent-blue);
}
.sankey-explanation i {
  color: var(--accent-blue);
  flex-shrink: 0;
}
.sankey-explanation p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sankey-container {
  padding: 1.5rem;
  overflow-x: auto;
}
/* Sankey Node and Link SVG styles */
.node rect {
  fill-opacity: 0.95;
  shape-rendering: crispEdges;
  stroke: rgba(0,0,0,0.4);
  stroke-width: 1px;
}
.node text {
  font-size: 10px;
  fill: #ffffff;
  font-weight: 600;
  pointer-events: none;
}
.link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-opacity: 0.4;
  transition: var(--transition-smooth);
}
.link:hover {
  stroke-opacity: 0.8;
}

/* Side-by-Side Comparison Matrix */
.comparison-container {
  padding: 1rem 0 80px 0 !important; /* Bottom padding to prevent compare drawer from overlapping content */
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.compare-matrix-grid {
  display: grid;
  grid-template-columns: 130px repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border-glass);
}
/* Matrix Row Labels column */
.matrix-cell-sticky {
  background: var(--bg-secondary) !important;
  border-right: 1.5px solid var(--border-glass) !important;
}
.matrix-header-cell.matrix-cell-sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: rgba(13, 21, 39, 0.95) !important;
  border-right: 1.5px solid var(--border-glass) !important;
  border-bottom: 2.5px solid var(--border-glass) !important;
}
.matrix-cell {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem; /* Compact padding */
  font-size: 0.8rem;     /* Optimized smaller font size */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.matrix-header-cell {
  position: sticky !important;
  top: 0;
  z-index: 5 !important;
  background: rgba(13, 21, 39, 0.95) !important;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;    /* Smaller font size */
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 2.5px solid var(--border-glass) !important;
}
.matrix-college-header {
  font-weight: 800;
  font-size: 0.85rem;    /* Smaller font size */
  color: var(--accent-blue);
  line-height: 1.3;
}
.matrix-row-label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.75rem;    /* Compact row labels */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.matrix-seats-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.matrix-seats-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;    /* Smaller font size */
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
}
.matrix-remove-btn {
  color: var(--accent-orange);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  background: transparent;
  border: none;
  margin-top: 0.75rem;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}
.matrix-remove-btn:hover {
  text-decoration: underline;
}

/* Sticky Bottom Compare Drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 21, 39, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass-active);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}
.compare-drawer.active {
  transform: translateY(0);
}
/* Toggle handle — hidden on desktop */
.drawer-toggle-handle {
  display: none;
}
.drawer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.drawer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}
.drawer-info i {
  color: var(--accent-blue);
  width: 24px;
  height: 24px;
  animation: pulse 2s infinite;
}
.drawer-actions {
  display: flex;
  gap: 1rem;
}

/* General Buttons */
.btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: var(--accent-blue);
  color: #000000;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
}
.btn-primary:hover {
  background: #00b4db;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* App Footer */
.app-footer {
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(13, 21, 39, 0.4);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
}
.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-info a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-info a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.footer-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}
.footer-btn:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-1px);
}
.footer-btn.btn-feedback:hover {
  background: rgba(0, 245, 160, 0.08);
  border-color: var(--accent-green);
  color: #ffffff;
}
.app-footer svg,
.app-footer i {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-info {
    justify-content: center;
  }
  .footer-actions {
    justify-content: center;
    width: 100%;
  }
  .footer-btn {
    flex: 1;
    justify-content: center;
    min-width: 160px;
  }
}

/* College details modal and links styling */
.college-details-link {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.college-details-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Modal Overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  z-index: 3000; /* Must sit on top of fullscreen table/compare containers (z-index: 2000) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal Container styling */
.modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-glass-active);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Modal Header styling */
.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}
.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.modal-title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}
.badge-code {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 160, 0.3);
  font-size: 0.7rem;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.modal-close-btn i,
.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Modal Body styling */
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Details grid layout */
.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
  .modal-details-grid .details-section {
    grid-column: span 1 !important;
  }
  .contacts-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-overlay {
    padding: 0.5rem;
  }
  .modal-container {
    max-height: 95vh;
  }
  .modal-body {
    padding: 1rem;
    gap: 1rem;
  }
  .modal-header {
    padding: 1rem 1rem;
  }
  .contact-info-item {
    word-break: break-word;
  }
  .status-text-box {
    word-break: break-word;
  }
}

.details-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.details-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.details-section h4 i,
.details-section h4 svg {
  width: 16px;
  height: 16px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.details-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.details-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.details-value {
  font-size: 0.875rem;
  color: #ffffff;
  word-break: break-word;
}
.details-value a {
  color: var(--accent-blue);
  text-decoration: none;
}
.details-value a:hover {
  text-decoration: underline;
}

/* Contacts layout */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
}
.contact-desg {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}
.contact-info-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.contact-info-item i,
.contact-info-item svg {
  width: 12px;
  height: 12px;
  color: var(--accent-blue);
}

/* Status section */
.status-text-box {
  background: rgba(0, 210, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-left: 4px solid var(--accent-blue);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Removed legacy mobile override to preserve sticky labels */

/* Sidebar Mobile Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Floating Filter Button */
.floating-filter-btn {
  display: none; /* Hidden on desktop */
}

/* Hide scrollbar on panel tabs */
.panel-tabs::-webkit-scrollbar {
  display: none;
}
.panel-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsiveness Settings */
@media (max-width: 1024px) {
  .app-workspace {
    grid-template-columns: 1fr;
  }
  
  /* Sidebar Drawer styling for mobile/tablet */
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-radius: 0 16px 16px 0;
    border: none;
    border-right: 1px solid var(--border-glass-active);
    background: rgba(13, 21, 39, 0.95);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
  }
  .sidebar-filters.active {
    transform: translateX(0);
  }
  
  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .sidebar-mobile-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
  }
  .btn-close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .btn-close-sidebar:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
  
  /* Floating Filter button activation */
  .floating-filter-btn {
    display: flex;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(0, 210, 255, 0.85) 100%);
    color: #000000;
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 50px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.25), 0 0 0 1px rgba(0, 210, 255, 0.15);
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
  }
  .floating-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 210, 255, 0.35);
  }
  .floating-filter-btn i,
  .floating-filter-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 1025px) {
  .sidebar-mobile-header {
    display: none;
  }
  .table-container {
    max-height: 720px; /* Increase height to match filter sidebar */
  }
  .table-footer-actions {
    display: none !important; /* Hide back to top button on desktop view only */
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
    gap: 1rem;
  }
  .app-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }
  .level-tabs {
    justify-content: center;
  }
  .state-select-container {
    width: 100%;
  }
  #stateSelector {
    width: 100%;
  }
  .drawer-content {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  /* Collapsible compare drawer on mobile */
  .drawer-toggle-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
  }
  .drawer-toggle-handle i,
  .drawer-toggle-handle svg {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
  }
  .compare-drawer.expanded .drawer-toggle-handle i,
  .compare-drawer.expanded .drawer-toggle-handle svg {
    transform: rotate(180deg);
  }
  /* Hide drawer body by default on mobile, show on expanded */
  .compare-drawer .drawer-content {
    display: none;
  }
  .compare-drawer.expanded .drawer-content {
    display: flex;
  }
  .drawer-info {
    font-size: 0.85rem;
  }
  .drawer-info i,
  .drawer-info svg {
    width: 18px;
    height: 18px;
  }
  .drawer-actions {
    width: 100%;
    justify-content: center;
  }
  .drawer-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Icon-only floating filter button on mobile */
  .floating-filter-btn span {
    display: none;
  }
  .floating-filter-btn {
    padding: 0.6rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  /* Clean equal spacing column distribution */
  #seatsTable th,
  #seatsTable td {
    padding: 0.4rem 0.35rem !important;
    font-size: 0.72rem !important;
  }
  
  /* First column (College Name) */
  #seatsTable th:first-child,
  #seatsTable td:first-child {
    min-width: 155px;
    max-width: 195px;
    word-break: break-word;
  }
  #seatsTable td:first-child .college-details-link {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
  }

  /* Third column (Course) */
  #seatsTable th:nth-child(3),
  #seatsTable td:nth-child(3) {
    min-width: 95px;
    max-width: 125px;
    word-break: break-word;
  }

  /* Badge / text columns (Type, Counselling, Quota) */
  #seatsTable th:nth-child(2), #seatsTable td:nth-child(2), /* Type */
  #seatsTable th:nth-child(4), #seatsTable td:nth-child(4), /* Counselling */
  #seatsTable th:nth-child(5), #seatsTable td:nth-child(5) { /* Quota */
    min-width: 60px;
    text-align: center;
  }

  /* Number columns (Prev, Increased, Total) */
  #seatsTable th:nth-child(6), #seatsTable td:nth-child(6),
  #seatsTable th:nth-child(7), #seatsTable td:nth-child(7),
  #seatsTable th:nth-child(8), #seatsTable td:nth-child(8) {
    min-width: 40px;
    text-align: right;
  }

  /* Last column (Compare) */
  #seatsTable th:nth-child(9), #seatsTable td:nth-child(9) {
    min-width: 36px;
    text-align: center;
  }

  .btn-fullscreen-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--border-glass-active);
    color: var(--accent-blue);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: auto;
  }
  .btn-fullscreen-toggle:hover {
    background: rgba(0, 210, 255, 0.2);
  }
  .btn-fullscreen-toggle svg {
    width: 14px;
    height: 14px;
  }

  /* Compact child rows on mobile */
  .group-child-row td {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.4rem !important;
  }
  .group-expand-btn {
    padding: 0.2rem;
    min-width: 24px;
    min-height: 24px;
  }
  .group-summary-chips {
    padding-left: 28px;
  }
  
  /* Optimize stats dashboard on mobile to a 2x2 grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-card {
    padding: 0.85rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .stat-icon i,
  .stat-icon svg {
    width: 18px;
    height: 18px;
  }
  .stat-info h3 {
    font-size: 1.25rem;
  }
  .stat-info p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  /* Level switches style on extremely small screens */
  .level-tab {
    padding: 0.4rem 0.75rem;
  }
  .level-tab span {
    font-size: 0.85rem;
  }
  .level-tab small {
    display: none;
  }
  
  .brand h1 {
    font-size: 1.4rem;
  }
  
  .stats-header h2 {
    font-size: 1rem;
  }
  
  .panel-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* Mobile-only Fullscreen Table Mode */
body.table-fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.table-fullscreen-active .table-actions {
  display: none !important;
}

body.table-fullscreen-active .table-container {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 2000 !important;
  background: var(--bg-primary) !important;
  border-radius: 0 !important;
  padding: 0 0.4rem 130px 0.4rem !important; /* Clear bottom drawer completely */
  overflow: auto !important;
  overscroll-behavior: none !important;
}

/* Floating Controls for Fullscreen Mode - Pinned on top of sticky header */
.fullscreen-close-btn {
  display: none;
  position: fixed;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2005;
  background: rgba(13, 21, 39, 0.9);
  border: 1px solid var(--border-glass-active);
  color: var(--accent-blue);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
  transition: var(--transition-smooth);
}

.fullscreen-close-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.05);
}

.fullscreen-close-btn svg {
  width: 14px;
  height: 14px;
}

/* Add padding-right to the last header cell in fullscreen to avoid overlapping exit button */
body.table-fullscreen-active #seatsTable th:last-child {
  padding-right: 36px !important;
}

.fullscreen-rotate-prompt {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2005;
  background: rgba(13, 21, 39, 0.95);
  border: 1px solid rgba(var(--accent-green-rgb), 0.3);
  color: var(--accent-green);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(var(--accent-green-rgb), 0.25);
  white-space: nowrap;
  animation: pulseRotate 2s infinite;
}

.fullscreen-rotate-prompt svg {
  width: 16px;
  height: 16px;
}

@keyframes pulseRotate {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Fullscreen Toggle Button - hidden on desktop */
.btn-fullscreen-toggle {
  display: none;
}

/* Fullscreen animations and higher z-index for filters when active */
@keyframes fullscreenEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

body.table-fullscreen-active .table-container {
  animation: fullscreenEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.table-fullscreen-active .floating-filter-btn {
  z-index: 2010 !important;
}

body.table-fullscreen-active .sidebar-filters {
  z-index: 2020 !important;
}

body.table-fullscreen-active .sidebar-backdrop {
  z-index: 2015 !important;
}

/* Scroll to top button & footer actions styling */
.table-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-go-to-top {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-go-to-top:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(0, 210, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.btn-go-to-top svg {
  width: 14px;
  height: 14px;
}

/* Compare View Fullscreen Styles */
body.compare-fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.compare-fullscreen-active .table-actions {
  display: none !important;
}

body.compare-fullscreen-active .comparison-container {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 2000 !important;
  background: var(--bg-primary) !important;
  border-radius: 0 !important;
  padding: 0.4rem 0.4rem 130px 0.4rem !important; /* Clear bottom drawer completely */
  overflow: auto !important;
  overscroll-behavior: none !important;
  animation: fullscreenEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.compare-fullscreen-active .fullscreen-close-btn {
  display: flex !important;
}

/* Keep Compare Drawer visible on top of both fullscreen views */
body.table-fullscreen-active .compare-drawer,
body.compare-fullscreen-active .compare-drawer {
  z-index: 2010 !important;
}

/* Spinner Animation for Lazy Loading States */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
