/* Custom styles for CCD Portal */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #f4f7fb; /* Cool blue-gray canvas */
  --bg-secondary: #ffffff; /* Crisp white cards/panels */
  --bg-tertiary: #eaf0f8; /* Soft blue-gray controls and tags */
  
  --text-primary: #10233f; /* Deep navy for high-contrast text */
  --text-secondary: #425b76; /* Steel blue for labels */
  --text-muted: #6b7f95; /* Muted blue-gray for captions */
  
  --accent-color: #1d4ed8; /* Royal blue for primary actions */
  --accent-hover: #1e40af; /* Deep blue on hover */
  --success-color: #0284c7; /* Clear cyan-blue for positive states */
  --success-hover: #0369a1; /* Deep cyan-blue on hover */
  --danger-color: #ef4444; /* Red-500 */
  
  --border-color: #d8e2ef; /* Cool blue-gray divider */
  --border-focus: rgba(29, 78, 216, 0.28);
  
  --glass-bg: rgba(255, 255, 255, 0.85); /* Frosty white glassmorphism */
  --glass-border: rgba(30, 64, 175, 0.08);
  --card-shadow: 0 10px 25px -5px rgba(16, 35, 63, 0.08), 0 4px 10px -2px rgba(16, 35, 63, 0.04);
  
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #172033;
  --bg-tertiary: #22304a;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-color: #60a5fa;
  --accent-hover: #93c5fd;
  --success-color: #38bdf8;
  --success-hover: #7dd3fc;
  --danger-color: #f87171;

  --border-color: #334155;
  --border-focus: rgba(96, 165, 250, 0.35);

  --glass-bg: rgba(23, 32, 51, 0.88);
  --glass-border: rgba(148, 163, 184, 0.16);
  --card-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55), 0 6px 16px -8px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Typography & Layout Utility */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-hover);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--success-color);
  color: #ffffff;
}

.btn-success:hover {
  background-color: var(--success-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-card {
  min-width: 280px;
  max-width: 360px;
  background-color: var(--success-color);
  color: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast-card.show {
  transform: translateX(0);
  opacity: 1;
}

.theme-toggle {
  min-width: 94px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--bg-secondary);
}

.theme-toggle-icon {
  display: none;
}

.mobile-theme-toggle {
  display: none;
}

.auth-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

/* Nav & Layout */
.portal-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.portal-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-brand span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link.active, .nav-link:hover {
  color: var(--accent-color);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

/* Main Dashboard Structure */
.portal-container {
  display: flex;
  min-height: calc(100vh - 73px);
}

.portal-sidebar {
  width: 250px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.portal-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem;
  background-color: var(--bg-primary);
  position: relative;
}

/* Sidebar Categories */
.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sidebar-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-color);
}

.sidebar-link.active {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}

/* Product Catalog grid */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  width: 350px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box .form-input {
  padding-left: 2.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--accent-color);
  color: #ffffff;
}

.product-badge.discount {
  background-color: var(--success-color);
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-family-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.spec-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.1rem;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.discounted .current-price {
  color: var(--success-color);
}

/* Shopping Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-overlay.active .cart-drawer {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  padding: 0.25rem;
  border: 1px solid var(--border-color);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Authentication Page Styles */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.auth-sidebar {
  background: linear-gradient(145deg, #0b2f57 0%, #123f73 55%, #1d4ed8 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
}

.auth-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.24) 0%, transparent 52%);
  pointer-events: none;
}

.auth-form-side {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Table / Order list Styles */
.orders-table-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.orders-table th {
  padding: 1rem 1.5rem;
  background-color: var(--bg-tertiary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.orders-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: rgba(15, 23, 42, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-draft {
  background-color: rgba(107, 114, 128, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-approved {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-shipped {
  background-color: rgba(2, 132, 199, 0.14);
  color: var(--success-color);
  border: 1px solid rgba(2, 132, 199, 0.30);
}

/* Shimmer Loading placeholders */
.shimmer {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}
@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile-First Layout Custom Overrides */
@media (max-width: 768px) {
  body:has(.mobile-bottom-nav) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .portal-navbar {
    padding: 1rem !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .portal-navbar .nav-links {
    display: none !important; /* Hide regular navbar buttons */
  }

  .portal-navbar .mobile-logout-btn {
    display: inline-flex !important; /* Show mobile logout */
  }

  .mobile-theme-toggle {
    display: inline-flex !important;
  }

  .auth-theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
  }

  .mobile-bottom-nav {
    display: flex !important; /* Show mobile navigation bar */
  }

  .mobile-bottom-nav a {
    text-decoration: none;
    transition: var(--transition-smooth);
  }

  .mobile-bottom-nav a.active {
    color: var(--accent-color) !important;
  }

  .portal-container {
    flex-direction: column !important;
  }

  .portal-sidebar {
    width: 100% !important;
    padding: 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
  }

  /* Transform vertical sidebar menu into scrollable horizontal tab bar */
  .sidebar-menu {
    display: flex !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none !important;
  }

  .sidebar-item {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .sidebar-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .portal-content {
    padding: 1.25rem 1rem !important;
  }

  .catalog-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .search-box {
    width: 100% !important;
  }

  .quick-order-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .quick-order-panel > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .quick-order-panel button {
    width: 100% !important;
  }

  .product-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 1.25rem !important;
  }

  .balances-dashboard {
    grid-template-columns: 1fr !important; /* Stack balances dashboard cards */
    gap: 1rem !important;
  }

  .cart-drawer {
    width: 100% !important; /* Full width cart drawer */
    right: -100% !important;
  }

  .cart-overlay.active .cart-drawer {
    right: 0 !important;
  }

  /* Hide less important order columns on mobile to fit nicely */
  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3),
  .orders-table th:nth-child(4),
  .orders-table td:nth-child(4) {
    display: none !important;
  }

  .orders-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .hide-mobile {
    display: none !important;
  }
}

/* Keep login, account forms, and touch controls within the phone viewport. */
@media (max-width: 768px) {
  .auth-wrapper {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    padding: 4.5rem 1rem 1.5rem;
  }

  .auth-container {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    border-radius: 16px;
  }

  .auth-sidebar { display: none; }
  .auth-form-side { min-width: 0; padding: 1.5rem; overflow-wrap: anywhere; }
  .auth-title { font-size: 1.6rem; }
  .auth-subtitle { margin-bottom: 1.5rem; }

  .portal-navbar .portal-brand { font-size: 1.15rem; }
  .portal-navbar .mobile-theme-toggle { margin-left: auto; }
  .portal-navbar .mobile-logout-btn,
  .portal-navbar .mobile-theme-toggle { min-height: 44px; }

  .portal-content .form-section { padding: 1rem; margin-bottom: 1rem; }
  .portal-content .profile-fields { grid-template-columns: minmax(0, 1fr) !important; gap: 1rem !important; }
  .portal-content .profile-actions { flex-wrap: wrap; }
  .portal-content .profile-actions > * { flex: 1; }
  .form-group, .filter-group, .cart-item-info { min-width: 0; }
  .form-input, .filter-select { max-width: 100%; font-size: 16px !important; }
  .filter-toolbar .filter-group { flex: 1 1 100%; margin-left: 0 !important; }
  .filter-toolbar .filter-select { width: 100%; min-width: 0; height: 44px; }
  .portal-content .btn, .cart-close { min-height: 44px; }
  .cart-close { min-width: 44px; }
  .cart-drawer { height: 100dvh; }
  .cart-items { min-height: 0; overscroll-behavior: contain; }
  .cart-header, .cart-items { padding: 1rem; }
  .cart-footer { padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .cart-item { flex-wrap: wrap; }

  .mobile-bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-bottom-nav a { min-height: 48px; flex: 1; justify-content: center; }
  .portal-content .orders-table th, .portal-content .orders-table td { padding: 0.75rem; }
  .portal-content .orders-table td { overflow-wrap: anywhere; }
  .toast-container { left: 1rem; right: 1rem !important; width: auto; }
  .toast-container .toast-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

  .landing-nav .landing-nav-row { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 0.75rem; gap: 0.75rem; }
  .landing-nav .landing-nav-links { gap: 0.5rem; }
  .landing-nav .landing-nav-actions { flex-wrap: wrap; }
  .landing-page .landing-card { min-width: 0; gap: 1.5rem; }
  .landing-page .landing-panel { min-width: 0; padding: 0.85rem; }
  .landing-page .landing-mock-row { grid-template-columns: minmax(0, 1fr) auto; }
  .landing-page .landing-mock-stock, .landing-page .landing-mock-add { display: none; }
  .landing-page .landing-actions { align-items: stretch; }
  .landing-page .landing-actions .btn { flex: 1 1 100%; }
}

/* Dynamic Column Selector Buttons */
.grid-col-btn {
  height: 38px !important;
  min-width: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.85rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  background-color: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  transition: var(--transition-smooth) !important;
}

.grid-col-btn:hover {
  background-color: var(--bg-tertiary) !important;
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

.grid-col-btn.active {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.22) !important;
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.pagination-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.18);
}

.pagination-btn:disabled {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}
