/* ==========================================================================
   HRCheck Design System & Base Style Sheet (Vanilla CSS)
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  /* HSL Color System */
  --hue-primary: 250; /* Indigo/Violet */
  --hue-accent: 180;  /* Cyan */
  
  --primary: hsl(var(--hue-primary), 75%, 62%);
  --primary-hover: hsl(var(--hue-primary), 80%, 55%);
  --primary-glow: hsla(var(--hue-primary), 75%, 62%, 0.3);
  
  --accent: hsl(var(--hue-accent), 85%, 45%);
  --accent-hover: hsl(var(--hue-accent), 90%, 40%);
  --accent-glow: hsla(var(--hue-accent), 85%, 45%, 0.3);

  /* Slate Theme Dark Mode base colors */
  --bg-dark-base: hsl(222, 28%, 9%);
  --bg-dark-sidebar: hsl(222, 32%, 6%);
  --bg-dark-card: rgba(22, 28, 45, 0.65);
  --bg-dark-glass: rgba(15, 23, 42, 0.45);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 70%);
  --text-muted: hsl(215, 14%, 50%);
  
  /* Status Colors */
  --success: hsl(142, 72%, 48%);
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: hsl(38, 92%, 50%);
  --warning-glow: rgba(245, 158, 11, 0.2);
  --danger: hsl(350, 89%, 60%);
  
  /* Typography */
  --font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Utilities */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px hsla(var(--hue-primary), 75%, 62%, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(at 0% 0%, hsla(250, 70%, 15%, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(180, 70%, 12%, 0.3) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 2. Top Header */
.app-header {
  height: 70px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Sidebar aligns brand, header aligns profile/roles */
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo-mobile {
  display: none; /* Desktop hidden */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-role-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulse-ring 1.8s infinite;
}

.role-prefix {
  color: var(--text-muted);
  margin-right: 4px;
}

.active-role-text {
  color: var(--accent);
  font-weight: 700;
}

.role-pill-selector {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
}

.role-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.role-pill-btn:hover {
  color: var(--text-primary);
}

.role-pill-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 3. Layout Grid */
.app-container {
  flex: 1;
  display: flex;
  position: relative;
}

/* Left Sidebar */
.app-sidebar {
  width: 280px;
  background: var(--bg-dark-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  z-index: 90;
  padding: 24px 20px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 8px;
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation items */
.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.nav-item svg {
  opacity: 0.75;
  transition: var(--transition-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-item.active svg {
  color: var(--primary);
  opacity: 1;
}

.sidebar-footer {
  padding: 10px 8px 0 8px;
  border-top: 1px solid var(--border-color);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* Right Content Area */
.app-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  min-height: calc(100vh - 70px);
  overflow-y: auto;
}

/* 4. Content Views */
.content-view {
  display: none;
  animation: fade-in 0.4s ease-out forwards;
}

.content-view.active {
  display: block;
}

.view-header {
  margin-bottom: 30px;
}

.view-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.view-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.card:hover {
  border-color: var(--border-color-glow);
}

.selector-card {
  padding: 20px 30px;
  margin-bottom: 30px;
}

/* Forms controls */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Layout for select with button side by side */
.select-with-btn {
  display: flex;
  gap: 12px;
}

.select-with-btn select {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(var(--hue-primary), 75%, 52%));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), hsl(var(--hue-primary), 80%, 48%));
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-neutral {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-neutral:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.btn-ok {
  background: linear-gradient(135deg, var(--accent), hsl(var(--hue-accent), 85%, 35%));
  color: #fff;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.25);
}

.btn-ok:hover {
  background: linear-gradient(135deg, var(--accent-hover), hsl(var(--hue-accent), 90%, 30%));
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-icon span {
  display: inline-block;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   5. VIEW 2: Personnel Evaluation Design
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  border: 2px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.empty-state svg {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 14px;
  max-width: 320px;
}

/* Selected Employee Header Dashboard */
.evaluation-emp-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.emp-info-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.emp-info-block .meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  color: var(--text-muted);
}

.progress-score-badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
}

/* Chronological Timeline Design */
.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-step {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Checkpoint Circle Dot Indicators */
.step-node {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-dark-base);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-step.passed .step-node {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 0 12px var(--success-glow);
}

.timeline-step.passed .step-node svg {
  color: #fff;
  display: block;
}

.timeline-step.active .step-node {
  border-color: var(--primary);
  background: var(--bg-dark-base);
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-step.active .step-node::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

.timeline-step.pending .step-node {
  border-color: var(--border-color);
  background: var(--bg-dark-base);
}

/* Details inside timeline step card */
.step-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.timeline-step.passed .step-content {
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.15);
}

.timeline-step.active .step-content {
  background: rgba(99, 102, 241, 0.02);
  border-color: rgba(99, 102, 241, 0.2);
}

.step-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.step-details .passed-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.passed-meta .eval-tag {
  background: var(--success-glow);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.passed-meta .time-tag {
  color: var(--text-muted);
}

.step-status-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.step-status-tag.success {
  background: var(--success-glow);
  color: var(--success);
}

.step-status-tag.waiting {
  background: var(--warning-glow);
  color: var(--warning);
}

.step-status-tag.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* ==========================================================================
   6. VIEW 3: Personnel List Dashboard Tables
   ========================================================================== */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.premium-table th {
  background: rgba(15, 23, 42, 0.4);
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.premium-table td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

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

.premium-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.emp-name-cell {
  font-weight: 600;
}

.text-center {
  text-align: center !important;
}

/* Badge Status in List Table */
.status-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  min-width: 100px;
}

.status-pill.passed {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-pill.passed .signer {
  font-size: 9px;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 2px;
}

.status-pill.pending {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Table Overall Progress bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  width: 32px;
  text-align: right;
}

/* ==========================================================================
   7. MODAL OVERLAY STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   8. TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: calc(100% - 48px);
}

.toast {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: slide-in-toast 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.toast-success::before {
  background-color: var(--success);
}

.toast.toast-success {
  border-left: 1px solid var(--success);
}

.toast.toast-danger::before {
  background-color: var(--danger);
}

.toast.toast-danger {
  border-left: 1px solid var(--danger);
}

.toast-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* ==========================================================================
   9. ANIMATIONS DEFINITION
   ========================================================================== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-toast {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

/* ==========================================================================
   10. MOBILE / RESPONSIVE STYLING (Aesthetic Collapsible Grid)
   ========================================================================== */
@media (max-width: 991px) {
  .app-sidebar {
    width: 80px;
    padding: 20px 10px;
  }
  
  .sidebar-brand {
    justify-content: center;
    margin-bottom: 30px;
    padding-left: 0;
  }
  
  .brand-text,
  .nav-item span,
  .sidebar-footer {
    display: none; /* Icon-only sidebar on medium screens */
  }
  
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
  
  .app-content {
    margin-left: 80px;
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .app-header {
    justify-content: space-between;
    padding: 0 16px;
    height: 60px;
  }
  
  .header-logo-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
  }
  
  .header-logo-mobile svg {
    color: var(--primary);
  }
  
  .role-prefix {
    display: none; /* Hide '當前角色：' prefix on mobile */
  }

  .app-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark-sidebar);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    width: 100%;
  }

  .sidebar-nav ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 0;
  }

  .sidebar-nav li {
    margin-bottom: 0;
    flex: 1;
    max-width: 120px;
  }

  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    font-size: 10px;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
  }
  
  .nav-item span {
    display: block;
    font-size: 9px;
  }

  .app-content {
    margin-left: 0;
    padding: 20px 16px 80px 16px; /* padding-bottom to clear mobile navbar */
    min-height: calc(100vh - 60px);
  }
  
  .step-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .btn-ok {
    width: 100%;
  }
}
