/* =============================================
   AdminOS — Main Stylesheet
   Theme: Dark Indigo / Refined Utility
   Fonts: Syne (headings) + DM Sans (body)
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --bg-base: #0b0f1a;
  --bg-surface: #111827;
  --bg-card: #151d2e;
  --bg-card-hover: #1a2540;
  --bg-sidebar: #0d1424;
  --sidebar-width: 258px;
  --sidebar-collapsed: 72px;

  --accent: #6366f1;
  --accent-hover: #4f52d8;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --text-primary: #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted: #4b5568;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --blue: #3b82f6;

  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'DM Sans', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-base); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page { background: var(--bg-base); overflow: hidden; }

/* Animated Background */
.login-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.15); top: -150px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(16,185,129,0.08); bottom: -100px; right: -80px; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(139,92,246,0.1); top: 40%; left: 50%; animation-delay: 5s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}
@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Login Card */
.login-wrapper { position: relative; z-index: 1; }
.login-card {
  width: 100%; max-width: 420px; padding: 0 20px;
  animation: fadeSlideUp 0.6s ease both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive Login Card */
@media (max-width: 480px) {
  .login-card { max-width: 100%; padding: 0 16px; }
  .login-brand { margin-bottom: 24px; }
  .login-form-box { padding: 20px; }
}

@media (max-width: 360px) {
  .login-card { padding: 0 12px; }
  .login-form-box { padding: 16px; }
}

/* Brand */
.brand-icon {
  width: 64px; height: 64px; background: var(--accent); border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 32px var(--accent-glow);
}
.brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.5px; color: var(--text-primary); }
.brand-tagline { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* Form Box */
.login-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1);
}
.form-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary); }
.form-subtitle { font-size: 13px; color: var(--text-secondary); }

/* Inputs */
.form-label-custom { font-size: 12px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none; z-index: 2;
}
.custom-input {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px 12px 40px !important;
  font-size: 14px;
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.custom-input::placeholder { color: var(--text-muted); }
.custom-input:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  background: var(--bg-card) !important;
}

@media (max-width: 480px) {
  .custom-input {
    font-size: 16px !important;
    padding: 14px 12px 14px 40px !important;
    min-height: 48px;
  }
}

.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 8px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-pw:hover { color: var(--text-primary); }

/* Remember & Forgot */
.remember-check .form-check-input { background: var(--bg-surface); border-color: var(--border-strong); }
.remember-check .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.remember-check .form-check-label { font-size: 13px; color: var(--text-secondary); }
.forgot-link { font-size: 13px; color: var(--accent); transition: var(--transition); }
.forgot-link:hover { color: #a5b4fc; }

/* Login Button */
.btn-login {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 12px 20px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
  cursor: pointer;
  min-height: 44px;
  width: 100%;
}
.btn-login:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); color: #fff; }
.btn-login:active { transform: translateY(0); }

@media (max-width: 480px) {
  .btn-login {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 48px;
  }
}

.login-footer-text { font-size: 13px; color: var(--text-secondary); }
.signup-link { color: var(--accent); font-weight: 500; }
.signup-link:hover { color: #a5b4fc; }
.login-version { font-size: 11px; color: var(--text-muted); }


/* =============================================
   DASHBOARD PAGE — LAYOUT
   ============================================= */
.dashboard-page { background: var(--bg-base); }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  min-height: auto;
}
/* Sidebar Logo Image */
.sidebar-logo-img {
  width: 100%; height: auto; max-width: 220px;
  object-fit: contain; 
  flex-shrink: 0;
}

/* Login Logo */
.login-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 0;
  width: 100%;
}
.login-logo-img {
  max-width: 220px; width: 100%; height: auto; 
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.25));
}

.brand-icon-sm {
  width: 36px; height: 36px; background: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.brand-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; white-space: nowrap; transition: opacity var(--transition); }

/* Sidebar User */
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  flex-shrink: 0; position: relative;
}
.user-status-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 10px; height: 10px; background: var(--green);
  border-radius: 50%; border: 2px solid var(--bg-sidebar);
}
.user-info { overflow: hidden; }
.user-name { font-weight: 600; font-size: 13px; color: var(--text-primary); white-space: nowrap; }
.user-role { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

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

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--text-muted); padding: 8px 20px 4px;
  white-space: nowrap; transition: opacity var(--transition);
}
.nav-list { list-style: none; padding: 0; }
.nav-item { position: relative; }

.nav-link-custom {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; color: var(--text-secondary);
  border-radius: 0; transition: var(--transition);
  cursor: pointer; white-space: nowrap;
  border-left: 3px solid transparent;
}
.nav-link-custom:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.nav-item.active .nav-link-custom {
  color: var(--accent); background: rgba(99,102,241,0.1);
  border-left-color: var(--accent);
}
.nav-icon { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-text { flex: 1; font-size: 13.5px; font-weight: 400; }

.nav-badge {
  font-size: 9px; font-weight: 700; background: var(--accent);
  color: #fff; padding: 2px 6px; border-radius: 20px; letter-spacing: 0.5px;
}
.nav-count {
  font-size: 11px; font-weight: 600; background: rgba(239,68,68,0.15);
  color: var(--red); padding: 2px 7px; border-radius: 20px;
}
.nav-arrow { font-size: 10px; transition: transform var(--transition); color: var(--text-muted); }
.nav-arrow.rotated { transform: rotate(90deg); }

/* Submenu */
.submenu {
  list-style: none; padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.15);
}
.submenu.open { max-height: 200px; }
.submenu li a {
  display: block; padding: 8px 20px 8px 52px;
  color: var(--text-muted); font-size: 13px;
  transition: var(--transition);
}
.submenu li a:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logout-btn {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: var(--transition); white-space: nowrap;
}
.logout-btn:hover { color: var(--red); background: rgba(239,68,68,0.08); }

/* Overlay (mobile) */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

/* ---- Collapsed Sidebar ---- */
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-count,
.sidebar.collapsed .nav-arrow,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .user-info,
.sidebar.collapsed .logout-btn span {
  opacity: 0; pointer-events: none; width: 0; overflow: hidden;
}
.sidebar.collapsed .nav-link-custom { padding: 10px; justify-content: center; gap: 0; }
.sidebar.collapsed .nav-icon { width: auto; }
.sidebar.collapsed .sidebar-brand { padding: 20px 18px; justify-content: center; }
.sidebar.collapsed .sidebar-user { justify-content: center; padding: 16px 12px; }
.sidebar.collapsed .logout-btn { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-footer { padding: 16px 12px; }
.sidebar.collapsed .submenu { display: none; }

/* ---- Main Wrapper ---- */
.main-wrapper {
  margin-left: 0;
  min-height: 100vh;
  transition: margin-left var(--transition);
  display: flex; 
  flex-direction: column;
  width: 100%;
}
.main-wrapper.collapsed { margin-left: var(--sidebar-collapsed); }

/* ---- Header ---- */
.dashboard-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; gap: 16px;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
  background: none; border: 1px solid var(--border-strong);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--text-primary); border-color: var(--accent); background: var(--accent-glow); }
.breadcrumb-area { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb-page { color: var(--text-secondary); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.header-search:focus-within { border-color: var(--accent); color: var(--text-primary); }
.search-input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 13px; width: 180px;
}
.search-input::placeholder { color: var(--text-muted); }
.header-icon-btn {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); position: relative;
}
.header-icon-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  border: 1.5px solid var(--bg-base);
}
.header-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px;
  cursor: pointer;
}

/* ---- Dashboard Main ---- */
.dashboard-main { padding: 28px 24px; flex: 1; }

/* Welcome Bar */
.welcome-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.welcome-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-primary); }
.welcome-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.welcome-date { font-size: 13px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; }

/* Stat Cards */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.stat-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.stat-blue::before { background: linear-gradient(90deg, var(--blue), transparent); }
.stat-green::before { background: linear-gradient(90deg, var(--green), transparent); }
.stat-orange::before { background: linear-gradient(90deg, var(--orange), transparent); }
.stat-purple::before { background: linear-gradient(90deg, var(--purple), transparent); }

.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.stat-blue .stat-icon { background: rgba(59,130,246,0.12); color: var(--blue); }
.stat-green .stat-icon { background: rgba(16,185,129,0.12); color: var(--green); }
.stat-orange .stat-icon { background: rgba(245,158,11,0.12); color: var(--orange); }
.stat-purple .stat-icon { background: rgba(139,92,246,0.12); color: var(--purple); }

.stat-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.stat-change { font-size: 11.5px; margin-top: 8px; font-weight: 500; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* Dash Cards */
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: var(--transition);
}
.dash-card:hover { border-color: var(--border-strong); }

.card-header-custom {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px;
}
.card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-actions { display: flex; gap: 6px; }
.pill-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 20px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: var(--transition);
}
.pill-btn.active, .pill-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.view-all-link { font-size: 12px; color: var(--accent); white-space: nowrap; }
.view-all-link:hover { color: #a5b4fc; }

/* Bar Chart SVG */
.chart-area { margin-top: 8px; }
.bar-chart-svg { width: 100%; height: 200px; }
.chart-label { fill: var(--text-muted); font-size: 10px; font-family: 'DM Sans', sans-serif; }

/* Donut Chart */
.donut-wrap { display: flex; justify-content: center; padding: 10px 0; }
.donut-svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.donut-center-label { fill: var(--text-muted); font-size: 9px; font-family: 'DM Sans', sans-serif; transform: rotate(90deg); transform-origin: 60px 60px; }
.donut-center-value { fill: var(--text-primary); font-size: 13px; font-family: 'Syne', sans-serif; font-weight: 700; transform: rotate(90deg); transform-origin: 60px 60px; }
.donut-legend { padding: 0 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.legend-item:last-child { border: none; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-name { flex: 1; font-size: 13px; color: var(--text-secondary); }
.legend-pct { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Table */
.custom-table { margin: 0; width: 100%; }
.custom-table thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 8px 12px; background: none; }
.custom-table tbody td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); font-size: 13px; }
.custom-table tbody tr:last-child td { border: none; }
.custom-table tbody tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }
.order-id { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--text-primary) !important; font-size: 13px !important; }
.cust-cell { display: flex; align-items: center; gap: 8px; }
.cust-av { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }

/* Status Badges */
.status-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px; }
.status-success { background: rgba(16,185,129,0.12); color: var(--green); }
.status-warning { background: rgba(245,158,11,0.12); color: var(--orange); }
.status-danger { background: rgba(239,68,68,0.12); color: var(--red); }
.status-info { background: rgba(99,102,241,0.12); color: var(--accent); }

/* Product List */
.product-list { display: flex; flex-direction: column; gap: 16px; }
.product-item { display: flex; align-items: center; gap: 14px; }
.product-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.product-info { flex: 1; }
.product-name { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.product-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.prog-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.product-rev { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-primary); white-space: nowrap; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet (≤992px): collapse sidebar by default */
/* Tablet (≤992px) */
@media (max-width: 992px) {
  .sidebar { 
    transform: translateX(-100%); 
    width: var(--sidebar-width) !important;
    z-index: 1001;
  }
  .sidebar.mobile-open { 
    transform: translateX(0);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .main-wrapper { 
    margin-left: 0 !important;
    width: 100%;
  }
  .sidebar-overlay { 
    display: none;
  }
  .sidebar-overlay.visible { 
    display: block;
    z-index: 1000;
  }
  .header-search { display: none; }
  .search-input { width: 140px; }
}

/* Desktop (≥993px) - Sidebar always visible */
@media (min-width: 993px) {
  .sidebar {
    transform: translateX(0) !important;
  }
  .sidebar-overlay {
    display: none !important;
  }
  .main-wrapper {
    margin-left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width));
  }
}

/* Large Mobile (≤768px) */
@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }
  .dashboard-main { padding: 20px 16px; }
  .dashboard-header { padding: 12px 16px; gap: 8px; }
  .sidebar-logo-img { max-width: 180px; }
  .welcome-bar { flex-direction: column; align-items: flex-start; }
  .welcome-title { font-size: 20px; }
  .welcome-date { width: 100%; }
  .card-header-custom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card-actions { flex-wrap: wrap; }
  .stat-card { flex-direction: column; }
  .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-value { font-size: 20px; }
  .bar-chart-svg { height: 150px; }
  .donut-svg { width: 100px; height: 100px; }
  .header-icon-btn:not(.notif-btn) { display: none; }
  .header-avatar { width: 36px; height: 36px; font-size: 12px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .custom-table { font-size: 12px; }
  .custom-table tbody td { padding: 8px; }
}

/* Medium Mobile (≤600px) */
@media (max-width: 600px) {
  .dashboard-main { padding: 16px 12px; }
  .dashboard-header { flex-direction: column; gap: 10px; padding: 12px; }
  .header-left { width: 100%; }
  .header-right { width: 100%; display: flex; justify-content: space-between; }
  .header-search { display: flex; width: 100%; }
  .search-input { width: 100%; }
  .breadcrumb-area { font-size: 12px; }
  .sidebar-brand { min-height: auto; padding: 10px 12px; }
  .sidebar-logo-img { max-width: 160px; }
  .sidebar-user { padding: 12px 16px; }
  .user-avatar { width: 32px; height: 32px; font-size: 11px; }
  .user-name { font-size: 12px; }
  .user-role { font-size: 10px; }
  .nav-text { font-size: 12px; }
  .nav-icon { width: 18px; font-size: 14px; }
  .welcome-title { font-size: 18px; }
  .welcome-sub { font-size: 12px; }
  .stat-card { padding: 16px; gap: 12px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .stat-change { font-size: 10px; }
  .dash-card { padding: 16px; }
  .card-title { font-size: 14px; }
  .card-subtitle { font-size: 11px; }
  .pill-btn { padding: 3px 10px; font-size: 11px; }
  .bar-chart-svg { height: 120px; }
  .chart-label { font-size: 9px; }
  .donut-svg { width: 80px; height: 80px; }
  .donut-center-value { font-size: 11px; }
  .legend-item { gap: 6px; padding: 4px 0; }
  .legend-name { font-size: 12px; }
  .legend-pct { font-size: 12px; }
  .custom-table { font-size: 11px; }
  .custom-table thead th { font-size: 10px; padding: 6px 8px; }
  .custom-table tbody td { padding: 6px 8px; }
  .order-id { font-size: 12px; }
  .cust-av { width: 24px; height: 24px; font-size: 9px; }
  .status-badge { font-size: 10px; padding: 2px 8px; }
  .product-item { gap: 10px; }
  .product-icon { width: 36px; height: 36px; font-size: 16px; }
  .product-name { font-size: 12px; }
  .product-rev { font-size: 12px; }
  .form-label-custom { font-size: 12px; }
  .custom-input { font-size: 14px; padding: 10px; }
  .form-check-label { font-size: 12px; }
  .btn-login { font-size: 14px; padding: 10px; }
  .form-title { font-size: 20px; }
  .form-subtitle { font-size: 12px; }
  .toggle-track { width: 36px; height: 20px; }
  .toggle-thumb { width: 14px; height: 14px; }
  .toggle-track.on .toggle-thumb { transform: translateX(16px); }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .dashboard-main { padding: 12px 10px; }
  .dashboard-header { padding: 10px; }
  .sidebar-logo-img { max-width: 140px; }
  .sidebar-brand { padding: 8px 10px; }
  .sidebar-user { padding: 10px 12px; gap: 8px; }
  .nav-label { font-size: 9px; padding: 6px 16px 2px; }
  .nav-item { font-size: 12px; }
  .welcome-title { font-size: 16px; }
  .welcome-bar { gap: 8px; margin-bottom: 16px; }
  .row { gap: 12px; margin-bottom: 12px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .stat-value { font-size: 16px; }
  .dash-card { padding: 12px; margin-bottom: 12px; }
  .card-title { font-size: 13px; }
  .card-header-custom { margin-bottom: 12px; }
  .bar-chart-svg { height: 100px; }
  .donut-wrap { padding: 8px 0; }
  .donut-svg { width: 70px; height: 70px; }
  .login-card { padding: 0 12px; }
  .login-form-box { padding: 24px; border-radius: 12px; }
  .form-title { font-size: 18px; margin-bottom: 8px; }
  .form-subtitle { font-size: 11px; margin-bottom: 16px; }
  .input-group-custom { margin-bottom: 12px; }
  .custom-input { font-size: 13px; padding: 10px 12px; }
  .btn-login { font-size: 13px; padding: 10px; }
  .form-check-label { font-size: 11px; }
  .forgot-link { font-size: 12px; }
  .login-footer-text { font-size: 12px; }
  .login-version { font-size: 11px; }
  .submit-button { width: 100%; }
}

/* Extra Small Mobile (≤360px) */
@media (max-width: 360px) {
  .dashboard-main { padding: 8px 8px; }
  .sidebar-logo-img { max-width: 120px; }
  .sidebar-brand { padding: 6px 8px; }
  .welcome-title { font-size: 14px; }
  .welcome-sub { font-size: 11px; }
  .stat-card { padding: 10px; }
  .stat-icon { width: 32px; height: 32px; font-size: 14px; }
  .stat-value { font-size: 14px; }
  .stat-label { font-size: 10px; }
  .dash-card { padding: 10px; }
  .card-title { font-size: 12px; }
  .bar-chart-svg { height: 80px; }
  .donut-svg { width: 60px; height: 60px; }
  .login-form-box { padding: 20px; }
  .form-title { font-size: 16px; }
  .form-subtitle { font-size: 10px; }
  .custom-input { font-size: 12px; padding: 8px 10px; }
  .btn-login { font-size: 12px; padding: 8px; }
  .remember-check { font-size: 10px; }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  .dashboard-main { padding: 16px 12px; }
  .dashboard-header { padding: 10px 12px; }
  .welcome-date { display: none; }
  .welcome-title { font-size: 18px; }
  .stat-value { font-size: 18px; }
  .card-header-custom { flex-direction: column; align-items: flex-start; }
  .header-icon-btn:not(.notif-btn) { display: none; }
}


/* =============================================
   DARK / LIGHT MODE TOGGLE
   ============================================= */
.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.theme-toggle-row:hover { background: rgba(255,255,255,0.08); }

.theme-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.theme-toggle-left i { width: 16px; text-align: center; font-size: 14px; }

.toggle-track {
  width: 40px; height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  position: relative; flex-shrink: 0;
  transition: background 0.25s;
}
.toggle-track.on  { background: var(--accent); }

.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.toggle-track.on .toggle-thumb { transform: translateX(18px); }

/* =============================================
   LIGHT MODE
   ============================================= */
body.light-mode {
  --bg-base:       #f0f4f8;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-sidebar:    #ffffff;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);
}
body.light-mode .dashboard-header {
  background: rgba(240,244,248,0.92) !important;
}
body.light-mode .theme-toggle-row {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
body.light-mode .theme-toggle-row:hover { background: rgba(0,0,0,0.07); }
body.light-mode .toggle-track          { background: #cbd5e1; }
body.light-mode .toggle-track.on       { background: var(--accent); }
body.light-mode .notif-dot             { border-color: #f0f4f8 !important; }
body.light-mode .user-status-dot       { border-color: #ffffff !important; }


/* =============================================
   JOBS PAGE
   ============================================= */
.careers-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: #1e293b;
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.topbar-back:hover {
  background: #334155;
  color: #fff;
}
.topbar-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  flex-shrink: 0;
}
.topbar-back-text {
  line-height: 1;
  white-space: nowrap;
}
.topbar-sep {
  color: #94a3b8;
  font-size: 18px;
}
.topbar-page {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.topbar-flag-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.topbar-flag-left {
  margin-right: 2px;
}
.topbar-flag-right {
  margin-right: 6px;
}
.topbar-flag-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topbar-flag-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: #ffffff;
}
.india-flag-mark {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
}
.flag-band {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-band-saffron { background: #ff9933; }
.flag-band-white { background: #ffffff; }
.flag-band-green { background: #138808; }
.flag-chakra {
  width: 6px;
  height: 6px;
  border: 1.4px solid #000080;
  border-radius: 50%;
  display: inline-block;
}
.topbar-avatar,
.topbar-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.topbar-avatar {
  object-fit: cover;
  border: 2px solid #e2e8f0;
}
.topbar-initials {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-initials.is-hidden {
  display: none;
}
.topbar-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.topbar-theme-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.careers-main {
  padding: 24px;
}
.jobs-page-card {
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.jobs-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.jobs-title {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
}
.jobs-subtitle {
  margin: 8px 0 0;
  color: #64748b;
}
.jobs-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.jobs-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.job-filter-form {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.filter-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.filter-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}
.filter-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
}
.filter-btn.primary {
  background: #2563eb;
  color: #fff;
}
.filter-btn.secondary {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.jobs-table {
  width: 100%;
}
.jobs-table th {
  white-space: nowrap;
}
.jobs-table td,
.jobs-table th {
  vertical-align: middle;
}
.job-title-cell {
  min-width: 180px;
  font-weight: 700;
  color: #0f172a;
}
.eligibility-cell {
  min-width: 260px;
}
.date-cell {
  min-width: 120px;
  white-space: nowrap;
}
.no-data {
  text-align: center;
  padding: 28px 12px;
  color: #64748b;
}
.btn-view-desc {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
}
.apply-job-form {
  margin: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.pill-applied {
  background: #ecfdf5;
  color: #047857;
}
.pill-apply {
  background: #dbeafe;
  color: #1d4ed8;
}
.pill-closed {
  background: #fee2e2;
  color: #dc2626;
}
.flash-msg {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}
.flash-success {
  background: #ecfdf5;
  color: #047857;
}
.flash-error {
  background: #fee2e2;
  color: #b91c1c;
}
.pagination-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}
.pagination-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.pagination-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 500;
}
.modal-backdrop.open {
  display: flex;
}
.desc-modal {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
.desc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.desc-modal-header h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.modal-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f8fafc;
  color: #334155;
}
.desc-modal-body {
  padding: 20px;
  color: #475569;
  line-height: 1.7;
  white-space: pre-line;
  max-height: 65vh;
  overflow: auto;
}
@media (max-width: 991px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .careers-main {
    padding: 16px;
  }
  .jobs-page-card {
    padding: 16px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .pagination-wrap {
    justify-content: center;
  }
}


.applied-jobs-card {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.applied-jobs-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.applied-jobs-title {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}
.applied-jobs-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}
.pill-review {
  background: #fef3c7;
  color: #b45309;
}
.pill-short {
  background: #dbeafe;
  color: #1d4ed8;
}
.pill-rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.pill-selected {
  background: #dcfce7;
  color: #15803d;
}

/* Jobs & Apply Jobs UI refresh */
.careers-main {
  padding: 28px;
}
.jobs-page-card,
.applied-jobs-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.jobs-page-card {
  padding: 28px;
}
.jobs-toolbar {
  margin-bottom: 24px;
}
.jobs-title,
.applied-jobs-title {
  letter-spacing: -0.02em;
}
.jobs-subtitle,
.applied-jobs-subtitle {
  font-size: 15px;
}
.jobs-summary span {
  min-height: 40px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.job-filter-form {
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}
.filter-field input {
  min-height: 48px;
  border-radius: 14px;
}
.filter-actions {
  margin-top: 20px;
}
.filter-btn {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  transition: all 0.2s ease;
}
.filter-btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.18);
}
.filter-btn.primary:hover {
  transform: translateY(-1px);
}
.filter-btn.secondary:hover {
  background: #f8fafc;
}
.clean-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.enhanced-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.enhanced-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 18px;
  border: none;
}
.enhanced-table tbody td {
  padding: 18px;
  border-top: 1px solid #eef2f7;
  color: #334155;
  line-height: 1.65;
  background: #fff;
}
.enhanced-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}
.enhanced-table tbody tr:hover td {
  background: #f8fbff;
}
.enhanced-table .job-title-cell {
  font-size: 16px;
}
.enhanced-table .eligibility-cell {
  color: #475569;
}
.btn-view-desc {
  min-width: 170px;
  min-height: 44px;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-view-desc:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}
.status-pill {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.pill-apply {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #1d4ed8;
}
.pill-closed {
  background: linear-gradient(135deg, #fee2e2, #ffe4e6);
  color: #dc2626;
}
.pill-applied {
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  color: #047857;
}
.pill-review {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #a16207;
}
.pill-short {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.pill-rejected {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}
.pill-selected {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.pagination-wrap {
  margin-top: 24px;
}
.pagination-btn {
  border-radius: 12px;
  transition: all 0.2s ease;
}
.pagination-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}
.pagination-btn.active:hover {
  color: #fff;
  background: #1d4ed8;
}
.applied-jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.applied-jobs-card .jobs-summary span {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.applied-jobs-card .jobs-summary strong {
  color: #fff;
}
.no-data {
  padding: 34px 18px !important;
}
@media (max-width: 991px) {
  .jobs-toolbar,
  .applied-jobs-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 576px) {
  .careers-main {
    padding: 16px;
  }
  .jobs-page-card {
    padding: 18px;
  }
  .job-filter-form {
    padding: 16px;
  }
  .enhanced-table thead th,
  .enhanced-table tbody td {
    padding: 14px;
  }
  .btn-view-desc {
    min-width: 145px;
    min-height: 40px;
    padding: 10px 14px;
  }
}

/* Full details jobs UI */
.jobs-page-card-v2,
.applied-card-v2 {
  border-radius: 24px;
  overflow: hidden;
}
.jobs-toolbar-v2,
.applied-header-v2 {
  margin-bottom: 26px;
}
.job-filter-form-v2 {
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.jobs-list,
.applied-jobs-list {
  display: grid;
  gap: 18px;
}
.job-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 22px;
}
.job-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.job-item-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-item-title {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}
.job-item-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.job-open-chip,
.job-index-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.job-open-chip i,
.meta-chip i {
  font-size: 12px;
}
.job-index-chip {
  background: #eef2ff;
  color: #4338ca;
}
.chip-open {
  background: #ecfdf5;
  color: #047857;
}
.chip-closed {
  background: #fff1f2;
  color: #be123c;
}
.job-item-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.meta-chip {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.job-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.applied-item-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.job-detail-panel {
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e8eef7;
}
.job-detail-wide {
  grid-column: span 2;
}
.job-detail-full {
  grid-column: 1 / -1;
}
.detail-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-value {
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.75;
}
.detail-text {
  white-space: pre-line;
  word-break: break-word;
}
.applied-item-card .job-item-title {
  font-size: 22px;
}
.applied-item-card .job-item-head {
  margin-bottom: 16px;
}
.empty-state-card {
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 42px 20px;
  text-align: center;
}
.empty-state-card i {
  font-size: 30px;
  color: #6366f1;
  margin-bottom: 14px;
}
.empty-state-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}
.empty-state-card p {
  margin: 0;
  color: #64748b;
}
.pagination-wrap-v2 {
  margin-top: 28px;
}
.pill-apply {
  cursor: pointer;
}
@media (max-width: 991px) {
  .job-item-head {
    flex-direction: column;
  }
  .job-item-action {
    width: 100%;
    justify-content: flex-start;
  }
  .job-item-grid,
  .applied-item-grid {
    grid-template-columns: 1fr;
  }
  .job-detail-wide,
  .job-detail-full {
    grid-column: auto;
  }
}
@media (max-width: 576px) {
  .job-item-card {
    padding: 16px;
    border-radius: 18px;
  }
  .job-item-title {
    font-size: 20px;
  }
  .detail-value {
    font-size: 14px;
  }
  .job-item-meta-row {
    flex-direction: column;
  }
}


/* Job detail page */
.detail-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.detail-link-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;background:linear-gradient(135deg,#4f7cff,#6d3ef7);color:#fff!important;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 10px 24px rgba(79,124,255,.18)}
.detail-link-btn:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(79,124,255,.24)}
.job-description-card{padding:28px;border-radius:28px;background:#fff;box-shadow:0 12px 38px rgba(15,23,42,.08)}
.job-description-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:26px;border-radius:24px;background:linear-gradient(135deg,#eff5ff 0%,#f7f2ff 100%);border:1px solid rgba(79,124,255,.12);margin-bottom:24px;flex-wrap:wrap}
.job-description-main h1{margin:14px 0 8px;font-size:38px;line-height:1.15;color:#0f172a;font-weight:800}
.job-description-subtitle{margin:0;color:#51607a;font-size:16px}
.job-description-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.job-description-status{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.detail-apply-form{margin:0}
.job-description-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.job-description-panel{background:#f8fbff;border:1px solid #e6edf8;border-radius:20px;padding:20px;min-width:0}
.job-description-panel-wide{grid-column:1/-1}
.detail-rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
@media (max-width:991px){
  .job-description-grid{grid-template-columns:1fr}
  .job-description-main h1{font-size:30px}
}
@media (max-width:767px){
  .job-description-card{padding:18px;border-radius:20px}
  .job-description-hero{padding:18px;border-radius:18px}
  .detail-link-btn{width:100%;justify-content:center}
}


/* ===== Mobile/header fixes ===== */
body.sidebar-open { overflow: hidden; }
.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-menu-btn:hover { background: #f8fafc; }
.careers-topbar { gap: 12px; }
.topbar-left,
.topbar-right { min-width: 0; }
.topbar-page,
.topbar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welcome-card { max-width: 100%; overflow: hidden; }
.welcome-illustration svg { max-width: 100%; height: auto; }
.table-responsive { width: 100%; }

@media (max-width: 992px) {
  .topbar-menu-btn { display: inline-flex; }
  .careers-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .topbar-left,
  .topbar-right {
    width: 100%;
  }
  .topbar-left {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .topbar-right {
    justify-content: flex-end;
  }
  .welcome-card {
    gap: 20px;
    padding: 20px;
  }
  .welcome-illustration {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .careers-main {
    padding: 16px 12px 32px;
  }
  .careers-topbar {
    align-items: center;
  }
  .topbar-back {
    padding: 8px 12px;
  }
  .topbar-page {
    font-size: 13px;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-name {
    max-width: 120px;
    font-size: 13px;
  }
  .welcome-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .welcome-illustration {
    width: 100%;
  }
  .welcome-illustration svg {
    width: 100% !important;
    max-width: 190px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 576px) {
  .careers-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .topbar-left {
    gap: 6px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }
  .topbar-right {
    width: auto;
    flex: 0 0 auto;
  }
  .topbar-sep,
  .topbar-page,
  .topbar-caret,
  .topbar-name {
    display: none;
  }
  .topbar-back {
    padding: 8px 10px;
    min-width: 72px;
    justify-content: center;
  }
  .topbar-avatar,
  .topbar-initials,
  .topbar-theme-btn,
  .topbar-menu-btn {
    width: 36px;
    height: 36px;
  }
  .jobs-page-card,
  .applied-jobs-card,
  .section-card {
    border-radius: 14px;
  }
  .section-header-orange,
  .section-header-blue {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .topbar-back {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .topbar-back-text {
    display: none;
  }
}
