/* ============================================================
   HubTown — Main Stylesheet
   Construction Project Management System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-primary:       #E8621A;
  --color-primary-dark:  #C0511A;
  --color-primary-light: #F4824A;
  --color-primary-bg:    #FEF3EC;

  --color-bg:            #F5F4F0;
  --color-surface:       #FFFFFF;
  --color-surface-2:     #F9F8F5;
  --color-border:        #E4E2DB;
  --color-border-strong: #C8C5BC;

  --color-text:          #1A1916;
  --color-text-2:        #4A4843;
  --color-text-muted:    #8A8780;

  --color-success:       #2A7A4B;
  --color-success-bg:    #EBF5EF;
  --color-warning:       #B45309;
  --color-warning-bg:    #FEF3C7;
  --color-danger:        #C0392B;
  --color-danger-bg:     #FDECEA;
  --color-info:          #1A5FAB;
  --color-info-bg:       #EBF3FD;

  /* Sidebar */
  --sidebar-bg:          #1A1916;
  --sidebar-width:       240px;
  --sidebar-text:        #C8C5BC;
  --sidebar-text-muted:  #5A5854;
  --sidebar-active-bg:   #2A2824;
  --sidebar-accent:      #E8621A;

  /* Typography */
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing & Shape */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  --transition:  0.18s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; }

/* ============================================================
   LAYOUT
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  border-right: 1px solid #2A2824;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #2A2824;
}

.sidebar-logo .logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--sidebar-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-logo .logo-tagline {
  color: var(--sidebar-text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-section-label {
  color: var(--sidebar-text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px 4px;
  font-weight: 500;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 400;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  text-decoration: none;
}

.sidebar-nav a:hover {
  color: #FFFFFF;
  background: var(--sidebar-active-bg);
}

.sidebar-nav a.active {
  color: #FFFFFF;
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-accent);
  font-weight: 500;
}

.sidebar-nav a .nav-icon {
  width: 16px;
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid #2A2824;
}

.sidebar-user {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .user-avatar {
  width: 30px;
  height: 30px;
  background: var(--sidebar-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user .user-name {
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top Bar --- */
.topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.topbar-breadcrumb .crumb-separator { opacity: 0.4; }
.topbar-breadcrumb .crumb-current {
  color: var(--color-text);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Page Content Wrapper --- */
.page-content {
  padding: 28px;
  flex: 1;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-header-title h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-header-title p {
  color: var(--color-text-muted);
  font-size: 13.5px;
  margin-top: 3px;
}

.page-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-2);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: #F5C6C2;
}
.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}

.btn-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: #B7DEC9;
}
.btn-success:hover {
  background: var(--color-success);
  color: #fff;
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 11px 22px;
  font-size: 15px;
}

.btn-icon {
  padding: 7px 9px;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.card-body { padding: 20px; }

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- Stat Cards --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card .stat-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.stat-card.accent { border-left: 3px solid var(--color-primary); }
.stat-card.success { border-left: 3px solid var(--color-success); }
.stat-card.warning { border-left: 3px solid var(--color-warning); }
.stat-card.info    { border-left: 3px solid var(--color-info); }

/* --- Badges / Status Chips --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-not-started { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.badge-in-progress { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid #FDE68A; }
.badge-completed   { background: var(--color-success-bg); color: var(--color-success); border: 1px solid #B7DEC9; }
.badge-delayed     { background: var(--color-danger-bg);  color: var(--color-danger);  border: 1px solid #F5C6C2; }
.badge-active      { background: var(--color-primary-bg); color: var(--color-primary); border: 1px solid #F4C09A; }
.badge-on-hold     { background: var(--color-info-bg);    color: var(--color-info);    border: 1px solid #BDD8F4; }

/* --- Tables --- */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 13.5px;
}

table.data-table thead th {
  background: var(--color-surface-2);
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

table.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-2);
  vertical-align: middle;
}

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

table.data-table tbody tr {
  transition: background var(--transition);
}

table.data-table tbody tr:hover {
  background: var(--color-surface-2);
}

table.data-table .td-primary {
  color: var(--color-text);
  font-weight: 500;
}

table.data-table .td-link {
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
}

table.data-table .td-link:hover { text-decoration: underline; }

.table-actions { display: flex; gap: 6px; }

/* --- Forms --- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-2);
  margin-bottom: 6px;
}

.form-label .required { color: var(--color-primary); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 98, 26, 0.12);
}

.form-control::placeholder { color: var(--color-text-muted); }

textarea.form-control { resize: vertical; min-height: 80px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8780' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-help {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 4px;
}

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

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

/* --- Alerts / Messages --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.alert-success  { background: var(--color-success-bg); color: var(--color-success); border-color: #B7DEC9; }
.alert-warning  { background: var(--color-warning-bg); color: var(--color-warning); border-color: #FDE68A; }
.alert-danger   { background: var(--color-danger-bg);  color: var(--color-danger);  border-color: #F5C6C2; }
.alert-info     { background: var(--color-info-bg);    color: var(--color-info);    border-color: #BDD8F4; }

/* --- Progress Bar --- */
.progress-bar-wrap {
  background: var(--color-border);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 20px;
  transition: width 0.6s ease;
}

.progress-bar-fill.success { background: var(--color-success); }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* --- Stepper --- */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.step-circle.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step-circle.done {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.step-label {
  margin-left: 10px;
}

.step-label .step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.step-label .step-title.active { color: var(--color-primary); }
.step-label .step-title.done   { color: var(--color-success); }

.step-label .step-sub {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 12px;
  margin-bottom: 14px;
}

.step-connector.done { background: var(--color-success); }

/* --- Gantt Chart --- */
.gantt-chart {
  overflow-x: auto;
}

.gantt-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
  min-width: 600px;
}

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

.gantt-task-label {
  width: 180px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--color-text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar-area {
  flex: 1;
  position: relative;
  height: 28px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.gantt-bar:hover { opacity: 1; }

.gantt-bar.done    { background: var(--color-success); }
.gantt-bar.running { background: var(--color-warning); }
.gantt-bar.delayed { background: var(--color-danger); }

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}

/* --- Info Row (key-value pairs) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.info-item .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.info-item .info-value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 480px;
  padding: 28px;
  position: relative;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.modal-close:hover { background: var(--color-surface-2); color: var(--color-text); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* --- Project Card (list view) --- */
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.project-card-title a {
  color: inherit;
  text-decoration: none;
}

.project-card-title a:hover { color: var(--color-primary); }

.project-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.project-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card-actions {
  display: flex;
  gap: 6px;
}

/* --- CSV Upload Area --- */
.upload-area {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.upload-area .upload-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.upload-area h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: 4px;
}

.upload-area p {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.auth-card-header {
  background: var(--sidebar-bg);
  padding: 28px 32px 24px;
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.auth-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.auth-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.auth-tagline {
  font-size: 12px;
  color: var(--sidebar-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card-body { padding: 28px 32px 32px; }

.auth-card-body h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.auth-card-body .auth-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* --- Utility --- */
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 12.5px; }
.text-mono { font-family: var(--font-mono); font-size: 12.5px; }
.fw-600 { font-weight: 600; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* --- Divider --- */
hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

/* --- Dot indicator --- */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-success { background: var(--color-success); }
.dot-warning { background: var(--color-warning); }
.dot-danger  { background: var(--color-danger); }
.dot-muted   { background: var(--color-border-strong); }

/* --- Scrollbar styling --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
