/* ============================================================
   ── 译宝翻译系统 · 现代化主题系统
    designed for modern, clean, tech-forward UI
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Primary palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #0ea5e9;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Neutral / Slate palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Accent */
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;

  /* Semantic */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  /* Surfaces */
  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-navbar: rgba(255,255,255,0.85);
  --bg-input: #ffffff;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders */
  --border-color: #e2e8f0;
  --border-radius-sm: 0.375rem;
  --border-radius: 0.625rem;
  --border-radius-lg: 0.875rem;
  --border-radius-xl: 1.125rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Reset Enhancements ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ── Cards ── */
.card,
.card-rounded {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.card-body { padding: 1.25rem; }
.card-footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}
.card-header-clean {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
}

/* ── Buttons ── */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); box-shadow: 0 4px 12px rgba(37,99,235,0.35); }

.btn-info { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }
.btn-info:hover { background: var(--primary-600); box-shadow: 0 4px 12px rgba(14,165,233,0.35); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; box-shadow: 0 4px 12px rgba(16,185,129,0.35); }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; box-shadow: 0 4px 12px rgba(245,158,11,0.35); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239,68,68,0.35); }

.btn-secondary, .btn-default { background: #fff; color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover, .btn-default:hover { background: var(--slate-50); border-color: var(--slate-300); }

.btn-light { background: var(--slate-100); color: var(--text-primary); border-color: transparent; }
.btn-light:hover { background: var(--slate-200); }

.btn-outline-primary { background: transparent; color: var(--primary-600); border-color: var(--primary-600); }
.btn-outline-primary:hover { background: var(--primary-600); color: #fff; }

.btn-outline-warning { background: transparent; color: var(--warning); border-color: var(--warning); }
.btn-outline-warning:hover { background: var(--warning); color: #fff; }

.btn-outline-info { background: transparent; color: var(--primary-500); border-color: var(--primary-500); }
.btn-outline-info:hover { background: var(--primary-500); color: #fff; }

.btn-outline-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border-color); }
.btn-outline-secondary:hover { background: var(--slate-100); }

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ── Forms ── */
.form-control,
.form-select,
select.form-control,
input.form-control,
textarea.form-control {
  border-radius: var(--border-radius);
  border: 1.5px solid var(--border-color);
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: all var(--transition);
  font-family: var(--font-family);
  width: 100%;
}
.form-control:focus,
.form-select:focus,
select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
  background: #fff;
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-label,
.col-form-label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.form-group { margin-bottom: 1.125rem; }

/* ── Tables ── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.table thead th {
  background: var(--slate-50);
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem 0.875rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.table tbody td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--slate-50); }
.table-bordered { border: 1px solid var(--border-color); }
.table-bordered th,
.table-bordered td { border: 1px solid var(--border-color); }
.table-hover tbody tr { transition: background var(--transition); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Badges ── */
.badge, .badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: #065f46; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-info { background: var(--info-bg); color: #1e40af; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-secondary { background: var(--slate-100); color: var(--slate-600); }
.badge-light { background: var(--slate-50); color: var(--text-secondary); border: 1px solid var(--border-color); }

/* ── Alert ── */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  position: relative;
}
.alert-success { background: var(--success-bg); color: #065f46; }
.alert-danger { background: var(--danger-bg); color: #991b1b; }
.alert-info { background: var(--info-bg); color: #1e40af; }
.alert-warning { background: var(--warning-bg); color: #92400e; }
.alert-secondary { background: var(--slate-100); color: var(--slate-600); }

/* ── Progress ── */
.progress {
  background: var(--slate-100);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.progress-bar {
  height: 100%;
  border-radius: 50px;
  transition: width 0.4s ease;
  background: var(--primary-500);
}
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent); }
.progress-bar-animated { animation: progress-bar-stripes 1s linear infinite; }
@keyframes progress-bar-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } }
.progress-bar.bg-success { background: var(--success); }
.progress-bar.bg-warning { background: var(--warning); }
.progress-bar.bg-danger { background: var(--danger); }
.progress-bar.bg-info { background: var(--info); }

/* ── Input Group ── */
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { flex: 1; min-width: 0; }
.input-group-append { margin-left: -1px; }
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--slate-50);
  border: 1.5px solid var(--border-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.input-group-append .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-prepend .input-group-text { border-radius: var(--border-radius) 0 0 var(--border-radius); border-right: none; }
.input-group-append .input-group-text { border-radius: 0 var(--border-radius) var(--border-radius) 0; border-left: none; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  justify-content: center;
}
.page-item { margin: 0; }
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  background: #fff;
}
.page-link:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--text-primary); }
.page-item.active .page-link { background: var(--primary-600); border-color: var(--primary-600); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.page-item.disabled .page-link { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Dropdown ── */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  background: #fff;
}
.dropdown-item {
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--slate-50); }
.dropdown-footer { padding: 0.625rem 0.875rem; text-align: center; font-size: 0.8125rem; color: var(--text-muted); }

/* ── Content Wrapper ── */
.content-wrapper {
  background: var(--bg-body);
  min-height: calc(100vh - 3.75rem);
  padding: 1.25rem;
  margin-left: 250px;
  transition: margin-left var(--transition-slow);
}
@media (max-width: 768px) {
  .content-wrapper { margin-left: 0; padding: 1rem; }
}

/* ── Section Title ── */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-left: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 3px;
  background: var(--primary-500);
}

/* ── Quick Action Card ── */
.quick-action-card {
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  padding: 1.25rem 0.75rem;
  transition: all var(--transition);
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-sm);
  min-height: 110px;
  text-decoration: none;
  display: block;
}
.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}
.quick-action-card .icon-circle {
  width: 48px; height: 48px;
  line-height: 48px;
  border-radius: 50%;
  display: inline-block;
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  color: #fff;
}
.quick-action-card .action-title { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.quick-action-card .action-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ── Stat Card ── */
.stat-card {
  border-radius: var(--border-radius-lg);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  min-height: 120px;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .icon-bg {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 4rem;
  opacity: 0.15;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.8125rem; opacity: 0.9; margin-top: 0.25rem; }
.stat-card .card-body { padding: 1.125rem 1.25rem; }

.bg-gradient-blue { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981, #059669); }
.bg-gradient-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-gradient-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.bg-gradient-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.bg-gradient-night { background: linear-gradient(135deg, #1e293b, #0f172a); }

/* ── Welcome Card ── */
.welcome-card {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.welcome-card::after {
  content: '\f2b9';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
  top: -0.625rem;
  font-size: 6rem;
  opacity: 0.08;
  color: #fff;
}
.welcome-card h3 { margin-bottom: 0.25rem; font-weight: 600; font-size: 1.25rem; }
.welcome-card p { margin-bottom: 0; opacity: 0.9; font-size: 0.875rem; }

/* ─── Navbar (AdminLTE override) ─── */
.main-header.navbar {
  background: var(--bg-navbar) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  height: 3.75rem;
  padding: 0 1.25rem;
}
.main-header .navbar-nav .nav-link { color: var(--text-secondary) !important; padding: 0.5rem 0.75rem; border-radius: var(--border-radius); }
.main-header .navbar-nav .nav-link:hover { background: var(--slate-100); color: var(--text-primary) !important; }

/* ─── Sidebar (AdminLTE override) ─── */
.main-sidebar {
  background: var(--bg-sidebar) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.08) !important;
}
.main-sidebar .brand-link {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  padding: 1rem 1.125rem !important;
}
.main-sidebar .brand-text { color: #fff !important; font-weight: 600; }
.brand-image { border-radius: var(--border-radius) !important; }

.nav-sidebar .nav-item > .nav-link {
  color: rgba(255,255,255,0.7) !important;
  border-radius: var(--border-radius) !important;
  margin: 0.125rem 0.5rem !important;
  padding: 0.625rem 0.875rem !important;
  transition: all var(--transition);
}
.nav-sidebar .nav-item > .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08) !important; }
.nav-sidebar .nav-item > .nav-link.active { color: #fff !important; background: var(--primary-600) !important; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.nav-sidebar .nav-treeview .nav-item > .nav-link { padding-left: 2.25rem !important; font-size: 0.8125rem; }

.user-panel { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.user-panel .info a { color: rgba(255,255,255,0.7) !important; font-size: 0.8125rem; }
.user-panel .info a:hover { color: #fff !important; }

/* ─── Footer ─── */
.main-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.main-footer a { color: var(--primary-600); text-decoration: none; }
.main-footer a:hover { text-decoration: underline; }

/* ─── Info Box ─── */
.info-box-small {
  border-radius: var(--border-radius);
  padding: 0.875rem;
  background: var(--slate-50);
  text-align: center;
  transition: all var(--transition);
}
.info-box-small:hover { background: var(--slate-100); transform: translateY(-1px); }
.info-box-small .info-value { font-size: 1.375rem; font-weight: 700; color: var(--text-primary); }
.info-box-small .info-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }

/* ─── Auth Pages ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0ea5e9 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 1.25rem;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo a { color: #fff; font-weight: 700; font-size: 1.75rem; text-decoration: none; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.auth-logo i { margin-right: 0.5rem; }
.auth-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.auth-card .card-body { padding: 2rem 2.25rem; }
.auth-card .login-box-msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-card .copyright-text { color: var(--text-muted); font-size: 0.75rem; text-align: center; margin-top: 1rem; }
.auth-card .copyright-text a { color: var(--text-muted); }

/* ─── Landing Page ─── */
.landing-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-navbar .logo { display: flex; align-items: center; gap: 0.625rem; color: #fff; font-weight: 600; font-size: 1.1rem; }
.landing-navbar .logo .logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: #fff;
}
.landing-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.landing-nav-links li a {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: 40px;
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: all 0.25s ease; cursor: pointer;
}
.landing-nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.landing-nav-links li a.active { color: #fff; background: var(--primary-600); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.landing-nav-links li a.login-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.5rem 1.75rem; margin-left: 0.5rem;
}
.landing-nav-links li a.login-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 4px; transition: all 0.25s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .landing-nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(15,23,42,0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch;
    padding: 1.2rem; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-120%); transition: transform 0.35s ease;
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  }
  .landing-nav-links.open { transform: translateY(0); }
  .landing-nav-links li a { display: block; padding: 0.75rem 1rem; border-radius: 12px; text-align: center; }
  .landing-nav-links li a.login-btn { margin-left: 0; }
  .hamburger { display: flex; }
}

/* ─── Responsive Helpers ─── */
@media (max-width: 768px) {
  .content-wrapper { margin-left: 0; }
  .card-body { padding: 1rem; }
  .row { margin-left: -0.5rem; margin-right: -0.5rem; }
  .col, [class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; }
  .stat-card { min-height: 100px; }
  .stat-card .stat-value { font-size: 1.375rem; }
  .table thead th, .table tbody td { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .auth-card .card-body { padding: 1.5rem 1.25rem; }
  .welcome-card { padding: 1.125rem 1.25rem; }
  .welcome-card::after { display: none; }
}

@media (max-width: 576px) {
  .content-wrapper { padding: 0.75rem; }
  .stat-card .stat-value { font-size: 1.125rem; }
  .btn { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
  .pagination .page-link { min-width: 2rem; height: 2rem; font-size: 0.75rem; }
  .auth-box { max-width: 100%; }
}

/* ─── Misc modern touches ─── */
.rounded-circle { border-radius: 50% !important; }
.shadow-hover { transition: box-shadow var(--transition); }
.shadow-hover:hover { box-shadow: var(--shadow-lg); }
.cursor-pointer { cursor: pointer; }
.text-muted { color: var(--text-muted) !important; }
a:not(.btn) { color: var(--primary-600); transition: color var(--transition); }
a:not(.btn):hover { color: var(--primary-700); }

/* ─── Breadcrumb ─── */
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 0.8125rem; }
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-primary); }

/* ─── Icheck Bootstrap fix ─── */
.icheck-primary { margin-bottom: 0; }
.icheck-primary label { font-weight: 400; }
.icheck-danger label { font-weight: 400; }

/* ─── Switch ─── */
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--primary-600) !important;
  background-color: var(--primary-600) !important;
}
.custom-switch .custom-control-label::before { border-radius: 50px; }

/* ─── Smooth sidebar collapse ─── */
.sidebar-mini .wrapper { transition: padding-left var(--transition-slow); }
.control-sidebar { background: var(--bg-sidebar) !important; }

/* ─── Task progress details ─── */
#taskDetails, .task-details {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--slate-50);
  border-radius: var(--border-radius);
  padding: 0.625rem;
  max-height: 200px;
  overflow-y: auto;
}

/* ─── Custom file input ─── */
.custom-file-label { border-radius: var(--border-radius); padding: 0.55rem 0.875rem; font-size: 0.875rem; border: 1.5px solid var(--border-color); }
.custom-file-label::after { border-radius: 0 var(--border-radius) var(--border-radius) 0; height: 100%; padding: 0.55rem 0.875rem; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse-dot { animation: pulse-dot 2s ease infinite; }

/* ─── DataTables Override ─── */
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0.25rem 0.5rem !important; border-radius: var(--border-radius) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--primary-600) !important; border-color: var(--primary-600) !important; color: #fff !important; }
.dataTables_wrapper .dataTables_filter input { border-radius: var(--border-radius) !important; border: 1.5px solid var(--border-color) !important; padding: 0.3rem 0.625rem !important; }
