/* 
  Premium Design System for Bitos Manajemen
  Author: AI Assistant
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────────
   COLOR TOKENS — Light & Dark Mode
───────────────────────────────────────────── */
:root {
  --primary-color: #002D80;
  --primary-light: #3359A1;
  --primary-dark: #001A4D;
  --secondary-color: #10B981;
  --secondary-light: #34D399;
  --accent-color: #F59E0B;

  --bg-body:    #F0F4F8;
  --bg-color:   #F0F4F8;
  --bg-card:    #FFFFFF;
  --surface-color: #FFFFFF;
  --surface-hover: #F1F5F9;

  --text-main:  #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-sm:    0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 45, 128, 0.07);

  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar gradient logo */
  --logo-gradient: linear-gradient(135deg, #002D80, #3359A1, #0ea5e9);
  --logo-glow: 0 4px 18px rgba(0, 45, 128, 0.45);
}

/* ─── DARK MODE ─── */
html.dark {
  color-scheme: dark;
  --primary-color: #60a5fa;
  --primary-light: #93c5fd;

  --bg-body:    #0D1117;
  --bg-color:   #0D1117;
  --bg-card:    #161B22;
  --surface-color: #161B22;
  --surface-hover: #21262D;

  --text-main:  #E6EDF3;
  --text-muted: #8B949E;
  --text-light: #6E7681;

  --border-color: #30363D;
  --border-light: #21262D;

  --shadow-sm:    0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --logo-gradient: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
  --logo-glow: 0 4px 18px rgba(14, 165, 233, 0.5);
}

/* ── Dark Mode Button Overrides ── */
html.dark .btn-primary {
  background: #3b82f6; /* Solid bright blue */
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  border: none;
}
html.dark .btn-primary:hover {
  background: #60a5fa; /* Lighter blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.28);
}

html.dark .btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #E6EDF3;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .btn-danger {
  background: #ef4444; /* Solid red */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}
html.dark .btn-danger:hover {
  background: #f87171; /* Lighter red on hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.28);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* ─────────────────────────────────────────────
   GLASSMORPHISM
───────────────────────────────────────────── */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glass);
}
html.dark .glass-panel {
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(48, 54, 61, 0.6);
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar {
  width: 260px;
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: fixed;
  height: 100vh;
  z-index: 40;
}

.sidebar-header {
  height: 68px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* ── Point 6: Premium Gradient Logo ── */
.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--logo-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--logo-glow);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.sidebar-logo-icon::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  filter: blur(4px);
}

.sidebar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.sidebar-brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  padding: 1.25rem 0.875rem;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-left: 0.875rem;
  margin-top: 0.5rem;
}

/* ── Point 2: Active Nav Indicator ── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  margin-bottom: 0.15rem;
  position: relative;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background-color: var(--surface-hover);
  color: var(--primary-color);
  border-left-color: rgba(0, 45, 128, 0.3);
}
html.dark .nav-item:hover {
  color: #60a5fa;
  border-left-color: rgba(96, 165, 250, 0.4);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(0,45,128,0.1) 0%, rgba(0,45,128,0.03) 100%);
  color: var(--primary-color);
  font-weight: 700;
  border-left-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px rgba(0,45,128,0.06);
}
html.dark .nav-item.active {
  background: linear-gradient(90deg, rgba(96,165,250,0.12) 0%, rgba(96,165,250,0.03) 100%);
  color: #60a5fa;
  border-left-color: #60a5fa;
}
.nav-item.active i {
  color: var(--primary-color);
  filter: drop-shadow(0 0 4px rgba(0,45,128,0.3));
}
html.dark .nav-item.active i {
  color: #60a5fa;
  filter: drop-shadow(0 0 4px rgba(96,165,250,0.4));
}
.nav-item i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-navbar {
  height: 68px;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

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

.content-area {
  padding: 1.75rem;
  flex: 1;
}

/* ─────────────────────────────────────────────
   DARK MODE TOGGLE BUTTON
───────────────────────────────────────────── */
.dark-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: var(--border-color);
  color: var(--primary-color);
  transform: rotate(20deg);
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-color);
}
.card-body {
  padding: 1.5rem;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 45, 128, 0.2);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 45, 128, 0.28);
}
.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-light);
}
.btn-danger {
  background-color: #EF4444;
  color: white;
}
.btn-danger:hover {
  background-color: #DC2626;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  transition: var(--transition);
  background-color: var(--surface-hover);
  color: var(--text-main);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--surface-color);
  box-shadow: 0 0 0 3px rgba(0, 45, 128, 0.1);
}

/* ─────────────────────────────────────────────
   TABLES
───────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.table th {
  background-color: var(--bg-body);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.875rem;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background-color: var(--surface-hover); }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-success {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
}
html.dark .badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-primary {
  background-color: rgba(0, 45, 128, 0.1);
  color: var(--primary-color);
}
html.dark .badge-primary {
  background-color: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}
.badge-danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

/* ─────────────────────────────────────────────
   ALERTS (inline)
───────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─────────────────────────────────────────────
   POINT 4: TOAST NOTIFICATION
───────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
  overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.toast-success::before { background: #10B981; }
.toast-error::before   { background: #EF4444; }
.toast-info::before    { background: var(--primary-color); }

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-success .toast-icon { background: rgba(16,185,129,0.12); color: #10B981; }
.toast-error   .toast-icon { background: rgba(239,68,68,0.12);  color: #EF4444; }
.toast-info    .toast-icon { background: rgba(0,45,128,0.1);    color: var(--primary-color); }

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 0.85rem; color: var(--text-main); }
.toast-msg   { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.4; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  animation: toastProgress 4s linear forwards;
}
.toast-success .toast-progress { background: #10B981; }
.toast-error   .toast-progress { background: #EF4444; }
.toast-info    .toast-progress { background: var(--primary-color); }

.toast.removing {
  animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 120px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(110%); max-height: 0; padding: 0; margin: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ─────────────────────────────────────────────
   POINT 5: SKELETON LOADING
───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border-color) 50%, var(--surface-hover) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.skeleton-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skeleton-text-sm  { height: 10px; border-radius: 5px; }
.skeleton-text-md  { height: 12px; border-radius: 5px; }
.skeleton-text-lg  { height: 16px; border-radius: 5px; }
.skeleton-badge    { height: 22px; width: 70px; border-radius: 9999px; }
.skeleton-btn      { height: 32px; width: 80px; border-radius: var(--radius-md); }

/* ─────────────────────────────────────────────
   POINT 7: EMPTY STATE
───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
}
.empty-state-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}
.empty-state-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--border-color);
}
.empty-state-icon i {
  font-size: 2.5rem;
  color: var(--text-light);
}
.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────
   AUTH PAGE
───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 500px; height: 500px;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 600px; height: 600px;
  background: var(--secondary-color);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  position: relative;
  z-index: 10;
}
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination {
  display: flex;
  list-style: none;
  padding: 0; margin: 0;
  gap: 0.4rem;
  justify-content: flex-end;
}
.pagination li { display: inline-block; }
.pagination li a, .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.pagination li a:hover {
  border-color: var(--primary-light);
  color: var(--primary-color);
  background: rgba(0, 45, 128, 0.05);
}
.pagination li.active span {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────
   MODALS
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  width: 70vw;
  height: auto;
  max-height: 70vh;
  overflow-y: auto;
  margin-bottom: 0;
  box-shadow: var(--shadow-lg);
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
}
.flex-wrap { flex-wrap: wrap; }

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    width: 280px;
  }
  .sidebar.active { transform: translateX(0); }
  .main-wrapper { margin-left: 0; width: 100%; max-width: 100vw; overflow-x: hidden; }
  .mobile-toggle { display: block; }
  .auth-card { padding: 1.5rem; margin: 1rem; max-width: calc(100% - 2rem); }
  .top-navbar { padding: 0 1rem; }
  .navbar-user { gap: 0.5rem; }
  .user-details, .logout-text { display: none !important; }
  .logout-btn { padding: 0.5rem !important; width: auto !important; margin-bottom: 0 !important; }
  .logout-btn i { font-size: 1.25rem; margin: 0; }
  .content-area { padding: 1rem; }
  .card-header { flex-direction: column; align-items: stretch !important; gap: 1rem; }
  .card-header > div { flex-wrap: wrap; width: 100%; }
  .card-header form { flex: 1; width: 100%; }
  .card-header input[type="text"] { width: 100%; min-width: 0 !important; }
  .card-body { padding: 1rem; }
  .btn { width: 100%; margin-bottom: 0.5rem; justify-content: center; }
  .flex-responsive { flex-direction: column; align-items: flex-start !important; }
  .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 35; }
  .sidebar-overlay.active { display: block; }
  .modal-content { width: 95vw; height: 90vh; }
  #toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { min-width: unset; max-width: 100%; }
  .table { min-width: 0 !important; }
  .table thead { display: none; }
  .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
  }
  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-light);
    padding: 0.75rem 0.5rem !important;
    text-align: right;
  }
  .table tbody td:last-child { border-bottom: none; justify-content: center; padding-top: 1rem !important; }
  .table tbody td::before { content: attr(data-label); font-weight: 600; text-align: left; color: var(--text-muted); margin-right: 1rem; }
}

.table-responsive { width: 100%; -webkit-overflow-scrolling: touch; }
