/* Jiedax Hub v4.1 — Complete Stylesheet */
/* Preserves v3 login page design + new module pages */

:root {
  --primary: #1A5C78;
  --primary-dark: #134A60;
  --primary-light: #2A7A9B;
  --accent: #E63946;
  --accent-hover: #D32F3F;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --header-height: 56px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ==================== LOGIN PAGE (v3 design preserved) ==================== */
.login-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0F2B3C 0%, #1A5C78 40%, #2A7A9B 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  color: white;
}

/* Floating target motifs */
.login-left::before,
.login-left::after {
  content: '◎';
  position: absolute;
  font-size: 120px;
  opacity: 0.05;
  color: white;
  pointer-events: none;
}
.login-left::before { top: -20px; left: -20px; }
.login-left::after { bottom: -20px; right: -20px; font-size: 180px; }

.login-left .floating-target {
  position: absolute;
  color: white;
  opacity: 0.04;
  font-size: 80px;
  pointer-events: none;
}
.login-left .floating-target:nth-child(1) { top: 15%; right: 10%; font-size: 60px; opacity: 0.06; }
.login-left .floating-target:nth-child(2) { bottom: 25%; left: 8%; font-size: 100px; opacity: 0.03; }
.login-left .floating-target:nth-child(3) { top: 45%; right: 30%; font-size: 40px; opacity: 0.07; }
.login-left .floating-target:nth-child(4) { bottom: 10%; right: 25%; font-size: 70px; opacity: 0.04; }

.login-logo-area {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-logo-area img {
  width: 240px;
  max-width: 80%;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.login-tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 0.95rem;
  opacity: 0.65;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.login-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Right panel - login form */
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  max-width: 520px;
}

.login-form-container {
  width: 100%;
  max-width: 380px;
}

.login-form-container h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.login-form-container h1 span {
  color: var(--primary);
}

.login-staging-badge {
  display: inline-block;
  background: var(--warning);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.login-form-container h2 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

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

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  color: var(--text);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,120,0.1);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.99); }

.login-divider {
  text-align: center;
  margin: 1.25rem 0;
  position: relative;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.btn-demo {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1.5px solid #FCD34D;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-demo:hover { background: linear-gradient(135deg, #FDE68A, #FCD34D); }

.login-demo-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.login-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

.login-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .login-page { flex-direction: column; }
  .login-left { padding: 2rem 1.5rem; min-height: 200px; }
  .login-right { max-width: 100%; }
  .login-logo-area img { width: 180px; }
}

/* ==================== APP LAYOUT ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0F2B3C 0%, #1A5C78 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.25s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.sidebar-logo {
  display: block;
}

.sidebar-logo img {
  width: 140px;
  filter: brightness(0) invert(1);
  transition: width 0.25s;
}

.sidebar.collapsed .sidebar-logo img {
  width: 0;
  opacity: 0;
}

.sidebar.collapsed .sidebar-logo::after {
  content: '◎';
  font-size: 1.4rem;
  color: white;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.sidebar.collapsed .sidebar-brand { display: none; }

.sidebar-brand-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.9;
}

.tier-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.tier-grove { background: #10B981; color: white; }

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  padding: 1rem 1rem 0.35rem;
  text-transform: uppercase;
}

.sidebar.collapsed .nav-section-label {
  font-size: 0;
  padding: 0.5rem;
  text-align: center;
}
.sidebar.collapsed .nav-section-label::after {
  content: '—';
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: white;
  border-left-color: var(--accent);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item-text { white-space: nowrap; }
.sidebar.collapsed .nav-item-text { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0.6rem; }

.nav-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: auto;
}
.nav-badge-ai { background: rgba(139,92,246,0.25); color: #A78BFA; }
.nav-badge-new { background: rgba(16,185,129,0.25); color: #34D399; }
.nav-badge-count { background: rgba(239,68,68,0.25); color: #F87171; }

.sidebar.collapsed .nav-badge { display: none; }

/* Sidebar footer */
.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.sidebar-user:hover { background: rgba(255,255,255,0.08); }

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }
.sidebar.collapsed .sidebar-user-info { display: none; }
.sidebar-user-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.sidebar-user-role { font-size: 0.7rem; opacity: 0.6; white-space: nowrap; }

.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  padding: 0.4rem;
  margin-top: 0.3rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.sidebar-signout:hover { color: white; background: rgba(255,255,255,0.08); }
.sidebar-signout svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sidebar.collapsed .sidebar-signout span { display: none; }

.sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  z-index: 101;
  transition: transform 0.25s;
}
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.25s ease;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

/* Header */
.header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.header-search:hover { border-color: var(--primary); }
.header-search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.header-search kbd { font-size: 0.7rem; background: white; padding: 0.1rem 0.35rem; border-radius: 3px; border: 1px solid var(--border); }

.header-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.header-icon-btn:hover { background: var(--bg); color: var(--text); }
.header-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
}

.header-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.header-user-menu:hover { background: var(--bg); }

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.header-user-name { font-size: 0.85rem; font-weight: 500; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.35rem;
  display: none;
  z-index: 200;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dropdown-item.danger { color: var(--danger); }

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

/* ==================== PAGE CONTENT ==================== */
.page-content {
  padding: 1.5rem;
  max-width: 1400px;
}

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.trend-up { background: #D1FAE5; color: #065F46; }
.trend-down { background: #FEE2E2; color: #991B1B; }
.trend-neutral { background: #F1F5F9; color: #64748B; }

.stat-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Content cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

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

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.card-body { padding: 1.25rem; }

.card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-filled { background: var(--primary); color: white; }
.btn-filled:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); background: white; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.data-table td {
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.data-table tr:hover td { background: #FAFBFC; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-neutral { background: #F1F5F9; color: #475569; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Jai banner */
.jai-banner {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.jai-banner:hover { transform: translateY(-1px); }
.jai-banner-left { display: flex; align-items: center; gap: 1rem; }
.jai-banner-icon { font-size: 2rem; }
.jai-banner-title { font-size: 1rem; font-weight: 700; }
.jai-banner-desc { font-size: 0.85rem; opacity: 0.85; }
.jai-banner-action { font-size: 0.85rem; font-weight: 600; background: rgba(255,255,255,0.2); padding: 0.4rem 1rem; border-radius: 20px; }

/* Progress steps */
.progress-steps {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.progress-step {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.progress-step.done { background: #34D399; }
.progress-step.current { background: #FCD34D; }

/* Onboarding conversation */
.jai-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem 0;
}

.jai-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
}
.jai-msg.bot { align-self: flex-start; }
.jai-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.jai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.jai-msg.bot .jai-msg-avatar { background: #7C3AED; color: white; }
.jai-msg.user .jai-msg-avatar { background: var(--primary); color: white; }

.jai-msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}
.jai-msg.bot .jai-msg-bubble { background: #F3F0FF; color: var(--text); }
.jai-msg.user .jai-msg-bubble { background: var(--primary); color: white; }

.jai-input-area {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.jai-input-area input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.jai-input-area input:focus { outline: none; border-color: #7C3AED; }

/* Equipment & Fleet */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.asset-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: box-shadow 0.2s;
}
.asset-card:hover { box-shadow: var(--shadow-md); }

.asset-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}
.asset-status-dot.available { background: var(--success); }
.asset-status-dot.in-use { background: var(--info); }
.asset-status-dot.maintenance { background: var(--warning); }
.asset-status-dot.missing { background: var(--danger); }

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.35rem; }
.empty-state-desc { font-size: 0.9rem; max-width: 400px; margin: 0 auto; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Timeline / Activity */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.activity-text { font-size: 0.85rem; color: var(--text); }
.activity-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Pulse animation for notifications */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.pulse-anim { animation: pulse 2s infinite; }

/* Maven II phase colors */
.phase-intake { color: #3B82F6; }
.phase-assign { color: #8B5CF6; }
.phase-execute { color: #F59E0B; }
.phase-sowd { color: #10B981; }
.phase-grn { color: #06B6D4; }
.phase-payment { color: #EC4899; }
