/* ============================================================
   style.css - Webapp Quản Lý Lớp Học
   Mobile-first Premium Design
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f0f2f8;
  --card: #ffffff;
  --dark: #0f172a;
  --dark2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --orange: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 40px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .2);
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button, input, select, textarea { font-family: inherit; }

/* ===== Scrollbar =====  */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== UTILS ===== */
.hide { display: none !important; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ===== LOADING BAR ===== */
#soft-loader {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000;
  background: linear-gradient(90deg, var(--primary), var(--purple), var(--primary));
  background-size: 200% 100%;
  animation: loading-move .8s linear infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, .5);
}
@keyframes loading-move { to { background-position: -200% 0; } }

/* ===== TOAST ===== */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--dark); color: #fff;
  padding: 13px 18px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; max-width: 360px;
  animation: toast-in .25s cubic-bezier(.34,1.56,.64,1) both;
  cursor: pointer;
}
.toast.toast-success { background: linear-gradient(135deg, #059669, #10b981); }
.toast.toast-error   { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast.toast-warning { background: linear-gradient(135deg, #d97706, #f59e0b); color: #000; }
.toast.toast-info    { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.toast .toast-icon   { font-size: 18px; flex-shrink: 0; }
.toast.leaving       { animation: toast-out .25s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px) scale(.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(20px) scale(.9); } }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,.3) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,.2) 0%, transparent 50%);
}
.login-card {
  position: relative; width: 100%; max-width: 440px;
  background: rgba(255,255,255,.97);
  border-radius: 24px; padding: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
}
.login-logo {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.login-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
#login-msg .alert { margin-bottom: 16px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; color: var(--dark2); }
.form-control {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; background: #fff; color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-control::placeholder { color: #94a3b8; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ===== BUTTONS ===== */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 10px 16px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark2); }
.btn-light { background: #f1f5f9; color: var(--dark); }
.btn-light:hover { background: #e2e8f0; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #059669; box-shadow: 0 4px 16px rgba(16,185,129,.3); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--yellow); color: #000; }
.btn-warning:hover { background: #d97706; }
.btn-info { background: var(--blue); color: #fff; }
.btn-info:hover { background: #2563eb; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--dark); }
.btn-outline:hover { background: #f1f5f9; }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 6px; }

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

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w); background: var(--dark); color: #fff;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.brand-text { line-height: 1.3; }
.brand-text strong { font-size: 14px; font-weight: 800; display: block; }
.brand-text span { font-size: 11px; color: #94a3b8; }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-label { font-size: 10px; font-weight: 700; color: #475569; letter-spacing: .08em; text-transform: uppercase; padding: 12px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 12px; margin: 2px 0;
  cursor: pointer; color: #94a3b8; font-weight: 600; font-size: 14px;
  transition: all var(--transition); border: none; background: none; width: 100%;
  text-align: left;
}
.nav-item .nav-icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.nav-item.active .nav-icon { filter: none; }
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h); background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 20px; font-weight: 800; color: var(--dark); }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 14px;
}
.user-details strong { font-size: 14px; font-weight: 700; display: block; line-height: 1.2; }
.user-details span { font-size: 12px; color: var(--muted); }

/* ===== CONTENT AREA ===== */
.content-area { padding: 24px; flex: 1; }
.content-area.loading { opacity: .6; pointer-events: none; }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7);
  padding: 20px;
  animation: content-in .2s ease both;
}
@keyframes content-in { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7);
  padding: 20px; display: flex; justify-content: space-between; align-items: flex-start;
  animation: content-in .2s ease both;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-info .stat-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.stat-info .stat-value { font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1; }
.stat-info .stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.indigo { background: var(--primary-light); }
.stat-icon.green  { background: var(--green-light); }
.stat-icon.yellow { background: var(--yellow-light); }
.stat-icon.blue   { background: var(--blue-light); }
.stat-icon.red    { background: var(--red-light); }
.stat-icon.purple { background: var(--purple-light); }

/* ===== CHARTS SECTION ===== */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7); padding: 20px; }
.chart-title { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.mini-bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding: 8px 0 0; }
.mini-bar { flex: 1; border-radius: 6px 6px 0 0; min-height: 8px; position: relative; cursor: pointer; transition: opacity var(--transition); }
.mini-bar:hover { opacity: .85; }
.mini-bar-label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.mini-bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ===== TOOLBAR ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.toolbar-filters .form-control { max-width: 200px; }
.toolbar-actions { display: flex; gap: 8px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.data-table thead th {
  background: #f8fafc; color: #374151; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
  text-align: left;
}
.data-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9;
  font-size: 14px; vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f8fafc; }
.table-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.table-empty { padding: 48px; text-align: center; color: var(--muted); }
.table-empty .empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .5; }
.table-empty p { font-size: 14px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-success { background: var(--green-light); color: #065f46; }
.badge-danger  { background: var(--red-light); color: #991b1b; }
.badge-warning { background: var(--yellow-light); color: #92400e; }
.badge-info    { background: var(--blue-light); color: #1e40af; }
.badge-gray    { background: #f1f5f9; color: #475569; }
.badge-purple  { background: var(--purple-light); color: #5b21b6; }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 999; backdrop-filter: blur(2px);
}
.modal-dialog {
  background: #fff; border-radius: 20px; width: 100%; max-width: 720px;
  max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s cubic-bezier(.34,1.3,.64,1) both;
}
.modal-dialog.modal-sm { max-width: 440px; }
.modal-dialog.modal-lg { max-width: 900px; }
@keyframes modal-in { from { opacity: .5; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h4 { font-size: 17px; font-weight: 800; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; background: #f1f5f9; border: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--muted); transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #e2e8f0; color: var(--dark); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== FORM GRID ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { margin-top: 24px; margin-bottom: 12px; font-size: 14px; font-weight: 800; color: var(--dark2); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: all var(--transition); }
.check-item:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.check-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.schedule-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }

/* ===== ATTENDANCE TABLE ===== */
.att-table-wrap { overflow-x: auto; }
.att-table { border-collapse: collapse; background: #fff; font-size: 12px; width: max-content; min-width: 100%; }
.att-table th { background: #f8fafc; padding: 8px 6px; border: 1px solid var(--line); text-align: center; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--muted); }
.att-table td { border: 1px solid #f1f5f9; padding: 5px 4px; text-align: center; }
.att-name-cell { text-align: left !important; position: sticky; left: 0; background: #fff; z-index: 2; min-width: 160px; padding: 8px 12px !important; font-weight: 600; white-space: nowrap; }
.att-cell {
  width: 36px; height: 30px; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); user-select: none;
}
.att-cell:hover { transform: scale(1.08); }
.att-cell:active { transform: scale(.95); }
.att-present  { background: var(--green-light); color: #065f46; }
.att-absent   { background: var(--red-light); color: #991b1b; }
.att-late     { background: var(--yellow-light); color: #92400e; }
.att-permit   { background: var(--blue-light); color: #1e40af; }
.att-early    { background: var(--purple-light); color: #5b21b6; }
.att-empty    { background: #f1f5f9; color: #94a3b8; }
.att-holiday  { background: #f8fafc; color: #cbd5e1; }

/* ===== INVOICE PRINT ===== */
.invoice-print-area { padding: 24px; }
.invoice-print-area .inv-header { text-align: center; margin-bottom: 20px; }
.invoice-print-area .inv-header h2 { font-size: 22px; font-weight: 900; }
.invoice-print-area .inv-header p { color: var(--muted); font-size: 14px; }
.invoice-print-area .inv-title { text-align: center; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.inv-meta div strong { display: inline-block; min-width: 110px; }
.inv-total { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--dark); font-size: 15px; }
.inv-total .row { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-total .row.highlight { font-weight: 900; color: var(--primary); font-size: 16px; }

/* ===== SKELETON ===== */
.skeleton-item { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skeleton-move 1.2s ease-in-out infinite; border-radius: 8px; }
@keyframes skeleton-move { to { background-position: -200% 0; } }

/* ===== ALERT ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-success { background: var(--green-light); color: #065f46; }
.alert-error   { background: var(--red-light); color: #991b1b; }
.alert-warning { background: var(--yellow-light); color: #92400e; }
.alert-info    { background: var(--blue-light); color: #1e40af; }

/* ===== SIDEBAR OVERLAY (Mobile) ===== */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 49; }

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }

  .topbar { padding: 0 16px; }
  .user-details { display: none; }
  .content-area { padding: 14px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-info .stat-value { font-size: 22px; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-filters { width: 100%; }
  .toolbar-filters .form-control { max-width: none; width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; }

  .form-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row .btn { grid-column: 2; justify-self: end; }

  .modal-dialog { border-radius: 16px; max-height: 96vh; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 16px; }
  .modal-foot { padding: 12px 16px; }

  #toast-container { bottom: 16px; right: 12px; left: 12px; align-items: stretch; }
  .toast { max-width: none; }

  .inv-meta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 16px; }
}

/* ===== PRINT ===== */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .toolbar, .modal-head .modal-close, .modal-foot .btn:not(.print-only), .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .modal-backdrop { position: static; background: none; padding: 0; backdrop-filter: none; }
  .modal-dialog { box-shadow: none; max-height: none; }
  .content-area { padding: 0; }
  .card, .modal-dialog { border: none; box-shadow: none; }
}

/* ===== TABS ===== */
.tabs-container { display: flex; flex-direction: column; width: 100%; }
.tabs-header { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs-header::-webkit-scrollbar { display: none; }
.tab-btn { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); white-space: nowrap; }
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; animation: content-in 0.2s ease; }
.tab-pane.active { display: block; }
