/* CNG360 Stylesheet - Enhanced with Live Site Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --sidebar-width: 250px;
  --header-height: 65px;
  --bg-body: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
}

/* Material Symbols alignment helper */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* ====================================================
   DASHBOARD LAYOUT
   ==================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar mobile backdrop overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar-area {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-area.collapsed {
  transform: translateX(-100%);
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo img {
  height: 38px;
  max-width: 100%;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
}

.menu-category {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 14px 4px;
}

.menu-item {
  margin-bottom: 4px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: #475569;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.menu-link .material-symbols-outlined {
  color: #64748b;
  font-size: 20px;
}

.menu-link:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.menu-link:hover .material-symbols-outlined {
  color: var(--primary);
}

.menu-link.active {
  background-color: #eef2ff;
  color: var(--primary);
  font-weight: 600;
}

.menu-link.active .material-symbols-outlined {
  color: var(--primary);
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
  overflow-x: hidden;
}

.sidebar-area.collapsed + .main-content {
  margin-left: 0;
}

/* Topbar Header */
.header-area {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-burger:hover {
  background: #f1f5f9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-fullscreen {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.btn-fullscreen:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.profile-menu:hover {
  background-color: #f8fafc;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.profile-role {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 170px;
  display: none;
  z-index: 1100;
  padding: 6px 0;
}

.profile-dropdown-menu.show {
  display: block;
}

.profile-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
}

.profile-dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--primary);
}

/* Content Body */
.content-body {
  padding: 24px;
  flex: 1;
  min-width: 0;
}

/* Page Header with Breadcrumb (Matching Live Site) */
.page-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: #64748b;
}

.breadcrumb-list a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 14px;
}

/* Dashboard Top Summary Metrics Grid */
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  max-width: 100%;
}

.dashboard-summary-grid a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.dash-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.dash-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dash-summary-title {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.3;
}

.dash-summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-summary-number {
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.1;
}

.dash-summary-sub {
  font-size: 11.5px;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.3;
}

/* Verifier Top Stat Cards Grid */
.verifier-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  max-width: 100%;
}

/* Metrics Grid (Customer, Expirations, Policy Alert) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .dashboard-summary-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .verifier-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .dashboard-summary-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .verifier-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .dash-summary-card {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .dash-summary-title {
    font-size: 11.5px;
  }
  .dash-summary-icon {
    width: 28px;
    height: 28px;
  }
  .dash-summary-icon .material-symbols-outlined {
    font-size: 16px;
  }
  .dash-summary-number {
    font-size: 22px;
    margin-top: 4px;
  }
  .dash-summary-sub {
    font-size: 10.5px;
    margin-top: 2px;
  }
}

@media (max-width: 360px) {
  .dashboard-summary-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.metric-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
  text-decoration: none !important;
}

.metric-card-header {
  padding: 10px 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.metric-card-body {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card-number {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.metric-card-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Themes for cards */
.card-theme-dealers .metric-card-header { background-color: #16a34a; }
.card-theme-dealers .metric-card-badge { background-color: #dcfce7; color: #16a34a; }

.card-theme-customers .metric-card-header { background-color: #f97316; }
.card-theme-customers .metric-card-badge { background-color: #ffedd5; color: #f97316; }

.card-theme-vehicles .metric-card-header { background-color: #6366f1; }
.card-theme-vehicles .metric-card-badge { background-color: #e0e7ff; color: #6366f1; }

.card-theme-feeders .metric-card-header { background-color: #0d9488; }
.card-theme-feeders .metric-card-badge { background-color: #ccfbf1; color: #0d9488; }

.card-theme-exp-month .metric-card-header { background-color: #a855f7; }
.card-theme-exp-month .metric-card-badge { background-color: #f3e8ff; color: #a855f7; }

.card-theme-exp-week .metric-card-header { background-color: #22c55e; }
.card-theme-exp-week .metric-card-badge { background-color: #dcfce7; color: #22c55e; }

.card-theme-exp-today .metric-card-header { background-color: #ea580c; }
.card-theme-exp-today .metric-card-badge { background-color: #ffedd5; color: #ea580c; }

.card-theme-exp-invalid .metric-card-header { background-color: #ef4444; }
.card-theme-exp-invalid .metric-card-badge { background-color: #fee2e2; color: #ef4444; }

/* Data Panels & Tables (Matching Live Site) */
.data-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
  max-width: 100%;
}

.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.data-card-header h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.btn-primary-action {
  background-color: #5558f6;
  color: #ffffff;
  border: 1px solid #5558f6;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-outline-action {
  background-color: #ffffff;
  color: #5558f6;
  border: 1px solid #5558f6;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-action:hover {
  background-color: #5558f6;
  color: #ffffff;
}

/* Table Design */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.live-table th {
  color: #64748b;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}

.live-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.live-table tr:hover td {
  background-color: #fbfcfe;
}

/* Filter row under th */
.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.filter-input {
  width: 100%;
  padding: 6px 26px 6px 8px;
  font-size: 11.5px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  outline: none;
}

.filter-input:focus {
  border-color: #5558f6;
}

.filter-input-wrap .material-symbols-outlined {
  position: absolute;
  right: 6px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

/* Action Icon Buttons */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-active, .badge-valid {
  background-color: #dcfce7;
  color: #15803d;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.15s;
}

.action-btn:hover {
  opacity: 0.75;
}

.action-btn.edit {
  color: #f59e0b;
}

.action-btn.delete {
  color: #ef4444;
}

.action-btn.view {
  color: #3b82f6;
}

/* Pagination Footer */
.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.page-btn.active {
  background-color: #5558f6;
  color: #ffffff;
  border-color: #5558f6;
}

.entries-select {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
  outline: none;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-box-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.modal-box-header h5 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.modal-box-header .btn-close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 20px;
}

.modal-box-body {
  padding: 24px;
}

.modal-box-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfc;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 18px 24px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  background-color: #ffffff;
}

.app-footer a {
  color: #5558f6;
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-container .form-control-custom {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: #475569;
}

.forgot-password-link {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #5558f6;
  text-decoration: none;
  margin-top: 6px;
  margin-bottom: 22px;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.form-control-custom {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 88, 246, 0.15);
}

.btn-generate {
  background-color: #52606d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.btn-generate:hover {
  background-color: #3b4650;
}

/* Login specific */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-card .brand-logo {
  width: 250px;
  height: auto;
  margin-bottom: 24px;
}

.login-card .welcome-text {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 28px;
}

.btn-signin {
  width: 100%;
  padding: 12px 18px;
  background-color: #5558f6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-signin:hover {
  background-color: var(--primary-hover);
}

.login-footer-text {
  margin-top: 24px;
  font-size: 13.5px;
  color: #64748b;
}

.login-footer-text a {
  color: #5558f6;
  font-weight: 600;
  text-decoration: none;
}

/* Registration */
.register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  padding: 40px 16px;
}

.register-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.register-card-header {
  background: linear-gradient(135deg, #c4eed5 0%, #d8d3f6 100%);
  padding: 36px 30px 24px 30px;
  text-align: center;
}

.register-card-header .brand-logo {
  width: 170px;
  height: auto;
  margin-bottom: 12px;
}

.register-card-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.register-card-header p {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 24px;
}

.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 480px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step-item.active .step-number {
  background: #5558f6;
  color: #ffffff;
}

.step-item.active {
  color: #5558f6;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  max-width: 40px;
}

.register-card-body {
  padding: 32px 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.register-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.btn-back-signin {
  background-color: #52606d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-next-step {
  background-color: #5558f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ====================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ==================================================== */

/* Table Scroll Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Screen Width <= 991px (Tablets & Mobile) */
@media (max-width: 991px) {
  :root {
    --header-height: 58px;
    --sidebar-width: 270px;
  }

  /* Sidebar becomes off-canvas drawer */
  .sidebar-area {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    max-width: 82vw;
    z-index: 1100;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar-area.show-mobile,
  .sidebar-area.open {
    transform: translateX(0) !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }

  .content-body {
    padding: 16px 14px;
  }

  .header-area {
    padding: 0 14px;
    height: 58px;
  }

  .profile-info {
    display: none;
  }

  .profile-avatar {
    width: 34px;
    height: 34px;
  }
}

/* Screen Width <= 768px (Mobile Devices) */
@media (max-width: 768px) {
  .content-body {
    padding: 12px 10px;
  }

  .data-card {
    padding: 16px 12px;
    border-radius: 8px;
  }

  .data-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .data-card-header .btn-primary-action {
    width: 100%;
    justify-content: center;
  }

  .page-title-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .table-pagination-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-box {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 90vh;
    margin: 8px auto;
  }

  .modal-box-body {
    padding: 16px 14px;
    max-height: 65vh;
    overflow-y: auto;
  }

  .modal-box-footer {
    padding: 12px 14px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-box-footer button,
  .modal-box-footer a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .policy-alert-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-section-card {
    padding: 14px 12px !important;
  }

  .detail-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Override inline fixed column grids on mobile */
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns:repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Screen Width <= 480px (Small Mobile Phones) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .metric-card-body {
    padding: 14px 16px;
  }

  .metric-card-number {
    font-size: 22px;
  }

  .metric-card-badge {
    width: 36px;
    height: 36px;
  }

  .metric-card-header {
    padding: 8px 14px;
    font-size: 12px;
  }

  .btn-fullscreen {
    display: none;
  }

  .btn-signin {
    padding: 10px 14px;
    font-size: 14px;
  }
}

