/* --- Access Granted Education - Premium Client Portal CSS --- */

:root {
  /* Master Palette */
  --cream: #F7ECD9;
  --sand: #E4C7A1;
  --gold: #D5B45D;
  --rust: #7C4D3B;
  --deep-teal: #12374B;
  --crimson: #8B0010;
  --orange: #EC781F;
  --forest-green: #36642B;
  --white: #FFFFFF;

  /* Master Aliases */
  --text-dark: var(--deep-teal);
  --text-mid: #6B5038;
  --text-light: #9C8060;
  --text-faint: #7A6550;
  --text-meta-size: 0.8125rem;
  --text-meta-weight: 700;
  --border: rgba(124, 77, 59, 0.08);
  --card-bg: var(--white);

  /* Master Elevation */
  --shadow-xs: 0 2px 8px rgba(124, 77, 59, 0.08);
  --shadow-sm: 0 8px 25px rgba(124, 77, 59, 0.12);
  --shadow-md: 0 12px 35px rgba(124, 77, 59, 0.15);
  --shadow-lg: 0 20px 40px rgba(124, 77, 59, 0.15);

  /* Master Geometry */
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

.text-meta {
  font-size: var(--text-meta-size);
  font-weight: var(--text-meta-weight);
  color: var(--text-mid);
}

.field-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Atten";
  src: url("../../../assets/fonts/AttenNewBook.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("../../../assets/fonts/AttenNewRegular.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("../../../assets/fonts/AttenRoundNewRegular.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("../../../assets/fonts/Cannon-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("../../../assets/fonts/Cannon-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

body {
  font-family: "Atten", sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cannon", serif;
  font-weight: 700;
  color: var(--rust);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 16px;
}

p,
span,
div,
li,
td,
th {
  font-family: "Atten", sans-serif;
}

/* Surgical Heading Fonts */
.card-title,
.dash-featured-head,
.nav-link,
.stat-pill-label,
.section-title,
.dash-view-all {
  font-family: "Cannon", serif !important;
}

/* LAYOUT */
.main {
  width: 100%;
  box-sizing: border-box;
  padding-top: clamp(20px, 3vw, 30px);
  padding-left: clamp(15px, 3vw, 28px);
  padding-right: clamp(15px, 3vw, 28px);
  padding-bottom: clamp(32px, 4vw, 48px);
  max-width: 1480px;
  margin: 0 auto;
}

/* PREMIUM TOP NAVIGATION (ACCESS GRANTED) */
.topnav {
  position: sticky;
  top: 0;
  width: 100%;
  background: #F7ECD9;
  z-index: 1000;
  border-bottom: none !important;
  box-shadow: none !important;
}

.nav-top-row {
  height: 56px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 28px !important;
  border-bottom: 1px solid rgba(124, 77, 59, 0.05) !important;
  background: #F7ECD9 !important;
  box-shadow: 0 4px 10px rgba(124, 77, 59, 0.06) !important;
  position: relative !important;
  z-index: 10 !important;
}

.brand img {
  width: 120px;
  height: auto;
  display: block;
}

.nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

/* Portal tab bar — GlobalPortalNavTabs + portal-shell-nav.css (matches admin) */

/* TOPNAV ELEMENTS */
.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: rgba(124, 77, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rust);
  transition: all 0.25s;
  position: relative;
}

.nav-icon:hover {
  background: rgba(124, 77, 59, 0.1);
  color: var(--rust-dark);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid #F7ECD9;
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cannon', serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  border: 2px solid rgba(213, 180, 93, 0.3);
  transition: all 0.25s;
}

.nav-avatar:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  color: var(--rust);
  padding: 5px;
}

.nav-hamburger svg {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 900px) {
  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }

  .dash-welcome-right {
    align-items: flex-start !important;
    width: 100%;
  }

  .main {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.tab-btn.active {
  background: var(--rust-dark);
  color: var(--white);
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

/* DROPDOWNS */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 8px;
  display: none;
  z-index: 1001;
  margin-top: 10px;
}

.dropdown-menu.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--cream);
  color: var(--rust);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CARDS BASE */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid rgba(124, 77, 59, 0.2);
  /* Defined rust border */
  box-shadow: 0 4px 15px rgba(124, 77, 59, 0.08);
  /* Rust-tinted shadow */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(124, 77, 59, 0.12);
  border-color: rgba(124, 77, 59, 0.4);
}

/* GENERIC COMPONENTS */
.back-btn {
  display: none !important;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-family: 'Atten', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 12px;
  text-decoration: none;
}

.back-btn:hover {
  border-color: var(--gold);
  color: var(--rust);
  background: var(--cream);
}

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

.student-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(247, 236, 217, 0.2);
}

.student-select-el {
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-family: 'Atten', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.student-select-el option {
  background: var(--rust-dark);
  color: var(--white);
}

/* DASHBOARD COMPONENTS */
.dash-welcome {
  background: var(--rust-dark);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dash-welcome-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.dash-welcome-avatar {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cannon', serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dark);
}

.dash-welcome-text h2 {
  font-family: 'Cannon', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2px;
}

.dash-welcome-text p {
  font-size: 14px;
  color: rgba(247, 236, 217, 0.6);
}

.dash-welcome-date {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: rgba(247, 236, 217, 0.8);
}

.dash-welcome-date span {
  display: block;
  font-family: 'Cannon', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
}

/* STAT PILLS */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(10px, 1.5vw, 14px);
  margin-bottom: clamp(14px, 2vw, 20px);
  width: 100%;
}

.dash-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s;
  cursor: pointer;
  min-width: 0;
}

.dash-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.6;
}

.dash-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dash-stat:hover::before {
  opacity: 1;
}

.dash-stat.bg-deep-teal,
.dash-stat.bg-teal {
  background: var(--deep-teal);
  color: var(--white);
  border-color: var(--deep-teal);
}

.dash-stat.bg-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.dash-stat.bg-crimson {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.dash-stat.bg-forest-green {
  background: var(--forest-green);
  color: var(--white);
  border-color: var(--forest-green);
}

.dash-stat .dash-stat-val,
.dash-stat .dash-stat-label,
.dash-stat .dash-stat-delta {
  color: inherit;
}

.dash-stat.bg-deep-teal .dash-stat-delta,
.dash-stat.bg-teal .dash-stat-delta,
.dash-stat.bg-orange .dash-stat-delta,
.dash-stat.bg-crimson .dash-stat-delta,
.dash-stat.bg-forest-green .dash-stat-delta {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white) !important;
  opacity: 1;
}

.dash-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 16px;
}

.dash-stat-val {
  font-family: 'Cannon', serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}

.dash-stat-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dash-stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 14px;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

/* DASHBOARD LAYOUT */
.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 14px);
  margin-bottom: clamp(12px, 1.5vw, 14px);
  width: 100%;
}

@media (max-width: 1024px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
}

.dash-featured {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.dash-featured:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header,
.dash-featured-head,
.dash-progress-head,
.dash-collapse-head,
.dash-actions-head,
.month-header,
.modal-header,
.modal-top-bar,
.cal-header-row,
.checkout-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--rust) !important;
  color: var(--white) !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 40px;
}

.modal-header h2,
.modal-top-bar h2,
.month-header h3,
.card-title {
  color: var(--white) !important;
  margin: 0;
}

.modal-close {
  color: rgba(255, 255, 255, 0.8) !important;
}

.modal-close:hover {
  color: var(--gold) !important;
}

.card-title {
  font-family: 'Cannon', serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.card-title svg {
  color: var(--white);
  opacity: 0.9;
}

.page-title {
  font-family: 'Cannon', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--rust);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.card-badge {
  background: var(--gold) !important;
  color: var(--white) !important;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.dash-session-row:last-child {
  border-bottom: none;
}

.dash-session-row:hover {
  background: rgba(228, 199, 161, 0.08);
}

.dash-session-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-session-date {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: 'Crimson Pro', serif;
}

.ds-month {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ds-day {
  font-size: 16px;
  font-weight: 800;
}

.dash-session-topic {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.dash-session-meta {
  font-size: 14px;
  color: var(--text-light);
}

.dash-session-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
}

.badge {
  padding: 2px 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-online {
  background: rgba(18, 55, 75, 0.08);
  color: var(--deep-blue);
}

.badge-blue {
  background: rgba(18, 55, 75, 0.08);
  color: var(--deep-blue-light);
}

.dash-view-all {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.dash-view-all:hover {
  background: rgba(213, 180, 93, 0.06);
  color: var(--rust);
}

/* PROGRESS */
.dash-progress-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 0;
}

.dash-progress-body {
  padding: 16px 18px;
}

.progress-eval-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  width: 90px;
  flex-shrink: 0;
}

.progress-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(124, 77, 59, 0.06);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-score {
  font-family: 'Crimson Pro', serif;
  font-size: 14px;
  font-weight: 800;
  width: 36px;
  text-align: right;
}

.dash-actions-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* COLLAPSIBLE */
.dash-collapse-body {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
}

.dash-collapse-body.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.dash-collapse-toggle {
  transition: transform 0.3s;
}

.dash-collapse-toggle.collapsed {
  transform: rotate(-90deg);
}

.mt-16 {
  margin-top: 16px;
}

/* BUTTONS */
.btn-primary {
  padding: 12px 24px;
  background: var(--rust);
  background-image: linear-gradient(to bottom, var(--rust), var(--rust-dark));
  color: var(--cream);
  border: 1px solid var(--rust-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(124, 77, 59, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(124, 77, 59, 0.25);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-gold {
  padding: 12px 24px;
  background: var(--gold);
  background-image: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--white);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(213, 180, 93, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(213, 180, 93, 0.35);
  filter: brightness(1.1);
}

.btn-checkout {
  padding: 14px 28px;
  background: var(--rust-dark);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(92, 52, 37, 0.3);
}

.btn-checkout:hover {
  background: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(92, 52, 37, 0.45);
}

.btn-outline {
  padding: 10px 20px;
  background: var(--white);
  color: var(--rust);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.dash-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.dash-task-item:last-child {
  border-bottom: none;
}

/* LOADER */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
  animation: forceHideLoader 0.5s ease 1.5s forwards;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes forceHideLoader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loader-logo {
  height: 60px;
  margin-bottom: 20px;
}

.loading-bar-container {
  width: 200px;
  height: 4px;
  background: rgba(124, 77, 59, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.3s;
}

/* MODAL GENERIC */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 22, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-download:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--rust);
  transform: translateY(-1px);
}

.btn-download svg {
  color: var(--gold-dark);
}

/* ===== STATUS BADGES ===== */
.stat-value {
  font-family: 'Crimson Pro', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--rust);
  line-height: 1.05;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 3px;
}

.dash-list {
  list-style: none;
}

.dash-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-list li:last-child {
  border-bottom: none;
}

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-green {
  background: rgba(54, 100, 43, 0.08);
  color: var(--green);
}

.badge-orange {
  background: rgba(236, 120, 31, 0.08);
  color: var(--orange);
}

.badge-red {
  background: rgba(174, 0, 15, 0.06);
  color: var(--crimson);
}

.badge-blue {
  background: rgba(18, 55, 75, 0.08);
  color: var(--deep-blue);
}

.badge-gold {
  background: rgba(213, 180, 93, 0.12);
  color: var(--gold-dark);
}

.badge-online {
  background: rgba(18, 55, 75, 0.08);
  color: var(--deep-blue);
}

.badge-inhome {
  background: rgba(236, 120, 31, 0.08);
  color: var(--orange);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--r);
  padding: 3px;
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn:hover {
  color: var(--rust);
}

.tab-btn.active {
  background: var(--deep-teal);
  color: var(--white);
}

.tab-btn .count {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 14px;
}

.tab-btn.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== TABLES ===== */
.table-wrap {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--cream);
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(228, 199, 161, 0.08);
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

/* ===== TASKS PAGE CONTROLS (Unified) ===== */
.tasks-controls {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.tasks-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Ensure filter tabs fit within the new flex layout */
.tasks-controls .tabs {
  margin-bottom: 0 !important;
  display: flex;
  gap: 8px;
}

/* Premium Filter Select Styling */
.filter-select {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rust);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  outline: none;
}

.filter-select:hover {
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: var(--shadow-xs);
}

.filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.15);
}

/* ===== UNLOCK ALL TABS OVERRIDE ===== */
.nav-link.locked,
.tab-btn.locked,
.locked {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.locked svg,
.locked i,
.lock-icon {
  display: none !important;
}
