/* ============================================================
   ManaSet - Premium IT Asset Management Dashboard
   Design System & Styles
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --sidebar-width: 260px;
  --topbar-height: 64px;

  /* Dark sidebar palette */
  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-hover: #1e293b;
  --sidebar-active: #6366f1;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f1f5f9;
  --sidebar-label: #475569;

  /* Main area */
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Accent colors */
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light: #e0e7ff;
  --emerald: #10b981;
  --emerald-light: #d1fae5;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --rose: #f43f5e;
  --rose-light: #ffe4e6;
  --sky: #0ea5e9;
  --sky-light: #e0f2fe;
  --violet: #8b5cf6;
  --violet-light: #ede9fe;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --shadow-card: 0 1px 4px rgba(15,23,42,.06), 0 2px 12px rgba(15,23,42,.06);

  /* Transitions */
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
  top: -200px; right: -200px; border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
  bottom: -150px; left: -100px; border-radius: 50%;
}
.login-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
}
.login-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px; color: white;
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.login-brand h1 { font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.login-brand p { font-size: .85rem; color: #94a3b8; margin-top: 4px; }
.login-subtitle { font-size: .9rem; color: #cbd5e1; text-align: center; margin-bottom: 28px; font-weight: 500; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: #cbd5e1; margin-bottom: 7px; letter-spacing: .3px; }
.form-input-wrap { position: relative; }
.form-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: .9rem; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 40px;
  color: #f1f5f9;
  font-size: .93rem;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  border-color: var(--indigo);
  background: rgba(99,102,241,.1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.btn-login {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  border-radius: var(--radius-sm);
  color: white; font-size: .95rem; font-weight: 700;
  letter-spacing: .3px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,.5); }
.btn-login:active { transform: translateY(0); }
.login-error {
  background: rgba(244,63,94,.15);
  border: 1px solid rgba(244,63,94,.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fda4af;
  font-size: .85rem;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.login-hint {
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 24px;
}
.login-hint p { font-size: .78rem; color: #94a3b8; margin-bottom: 4px; }
.login-hint strong { color: #c7d2fe; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 200;
}
.sidebar-overlay.show { display: block; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 300; overflow-y: auto;
  transition: transform var(--transition);
  scrollbar-width: thin; scrollbar-color: #1e293b transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.brand-name { font-size: 1.1rem; font-weight: 800; color: #f1f5f9; letter-spacing: -.3px; }
.brand-sub { font-size: .68rem; color: var(--sidebar-label); font-weight: 500; display: block; margin-top: 1px; }
.sidebar-close-btn { display: none; color: var(--sidebar-text); margin-left: auto; padding: 4px; font-size: 1.1rem; }

.sidebar-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  margin: 12px 10px;
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
}
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name { font-size: .82rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.user-role-badge { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 8px 10px 4px; }
.nav-section-label { font-size: .62rem; font-weight: 700; color: var(--sidebar-label); letter-spacing: 1px; padding: 12px 6px 4px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: .875rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.nav-item i { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.15));
  color: #a5b4fc; border: 1px solid rgba(99,102,241,.3);
}
.nav-item.active i { color: var(--indigo); }
.sidebar-footer { padding: 10px; border-top: 1px solid var(--sidebar-border); }
.logout-btn { color: #f87171 !important; }
.logout-btn:hover { background: rgba(244,63,94,.1) !important; }

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

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.hamburger-btn {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-main);
  font-size: 1rem; flex-shrink: 0;
  transition: var(--transition);
}
.hamburger-btn:hover { background: var(--border-color); color: var(--text-primary); }
.topbar-title h1 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); flex: 1; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-time { font-size: .78rem; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-username { font-size: .83rem; font-weight: 600; color: var(--text-primary); }

/* ---- PAGE CONTENT ---- */
.page-content { flex: 1; padding: 28px 24px; max-width: 1400px; width: 100%; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.card-title { font-size: .95rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--indigo); }
.card-body { padding: 20px; }

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: .08;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.stat-delta { font-size: .75rem; font-weight: 600; margin-top: 6px; }
.stat-delta.up { color: var(--emerald); }
.stat-delta.down { color: var(--rose); }

/* Stat color themes */
.stat-indigo .stat-icon { background: var(--indigo-light); color: var(--indigo); }
.stat-emerald .stat-icon { background: var(--emerald-light); color: var(--emerald); }
.stat-amber .stat-icon { background: var(--amber-light); color: var(--amber); }
.stat-rose .stat-icon { background: var(--rose-light); color: var(--rose); }
.stat-sky .stat-icon { background: var(--sky-light); color: var(--sky); }
.stat-violet .stat-icon { background: var(--violet-light); color: var(--violet); }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.dashboard-grid .card-full { grid-column: 1 / -1; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: #f8fafc;
  border-bottom: 1.5px solid var(--border-color);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700; font-size: .75rem; color: var(--text-secondary);
  white-space: nowrap; letter-spacing: .3px; text-transform: uppercase;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-main); }
.td-nowrap { white-space: nowrap; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.badge-baik { background: var(--emerald-light); color: #065f46; }
.badge-kurang { background: var(--amber-light); color: #78350f; }
.badge-rusak-ringan { background: rgba(251,146,60,.15); color: #c2410c; }
.badge-rusak-berat { background: var(--rose-light); color: #9f1239; }
.badge-aktif { background: var(--emerald-light); color: #065f46; }
.badge-tidak-aktif { background: #f1f5f9; color: #475569; }
.badge-dipinjam { background: var(--sky-light); color: #0369a1; }
.badge-perbaikan { background: var(--amber-light); color: #78350f; }
.badge-dihapus { background: var(--rose-light); color: #9f1239; }
.badge-admin { background: var(--indigo-light); color: #3730a3; }
.badge-unit { background: var(--emerald-light); color: #065f46; }
.badge-pimpinan { background: var(--amber-light); color: #78350f; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--indigo); color: white; }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.btn-emerald { background: var(--emerald); color: white; }
.btn-emerald:hover { background: #059669; }
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: #d97706; }
.btn-rose { background: var(--rose); color: white; }
.btn-rose:hover { background: #e11d48; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-light); }
.btn-sm { padding: 5px 10px; font-size: .78rem; }
.btn-icon { padding: 7px; width: 32px; height: 32px; justify-content: center; }

/* Action Buttons */
.action-btns { display: flex; gap: 4px; }
.btn-edit { background: var(--indigo-light); color: var(--indigo); }
.btn-edit:hover { background: var(--indigo); color: white; }
.btn-delete { background: var(--rose-light); color: var(--rose); }
.btn-delete:hover { background: var(--rose); color: white; }
.btn-view { background: var(--sky-light); color: var(--sky); }
.btn-view:hover { background: var(--sky); color: white; }
.btn-qr { background: var(--emerald-light); color: var(--emerald); }
.btn-qr:hover { background: var(--emerald); color: white; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-inner { display: flex; flex-direction: column; gap: 5px; }
.form-group-inner label { font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-primary);
  background: white; transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-control-full { grid-column: 1 / -1; }

/* Filter Bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 20px;
}
.filter-bar .form-control { width: auto; min-width: 140px; }
.search-wrap { position: relative; }
.search-wrap .form-control { padding-left: 36px; min-width: 220px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }

/* Pagination */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: flex-end; padding-top: 16px; }
.page-btn {
  padding: 6px 12px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--border-color); color: var(--text-secondary);
  background: white; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-light); }
.page-info { font-size: .8rem; color: var(--text-muted); margin-right: auto; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
.modal-lg { max-width: 800px; }
.modal-sm { max-width: 440px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg-main); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: .9rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--rose-light); color: var(--rose); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; justify-content: flex-end; }

/* QR Code Scanner */
.qr-scanner-wrap {
  background: var(--bg-main); border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
}
.qr-result-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px; margin-top: 20px;
}
.qr-generate-box {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px; background: var(--bg-main);
  border-radius: var(--radius-md);
}
#qr-canvas { border-radius: var(--radius-sm); overflow: hidden; }

/* Asset Detail */
.asset-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asset-detail-item { }
.asset-detail-item .det-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.asset-detail-item .det-value { font-size: .9rem; color: var(--text-primary); font-weight: 500; margin-top: 2px; }

/* Toast Notifications */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 360px;
  border-left: 4px solid var(--indigo);
  animation: slideInRight .3s ease;
  font-size: .875rem; font-weight: 500;
}
.toast.success { border-color: var(--emerald); }
.toast.error { border-color: var(--rose); }
.toast.warning { border-color: var(--amber); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--emerald); }
.toast.error i { color: var(--rose); }
.toast.warning i { color: var(--amber); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--border-color); margin-bottom: 16px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: .85rem; color: var(--text-muted); }

/* Section Page Header */
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -.3px; }
.page-header p { font-size: .875rem; color: var(--text-secondary); margin-top: 4px; }

/* Category Icon colors */
.cat-pc .cat-icon { background: var(--indigo-light); color: var(--indigo); }
.cat-laptop .cat-icon { background: var(--violet-light); color: var(--violet); }
.cat-printer .cat-icon { background: var(--sky-light); color: var(--sky); }
.cat-monitor .cat-icon { background: var(--emerald-light); color: var(--emerald); }
.cat-switch .cat-icon { background: var(--amber-light); color: var(--amber); }
.cat-default .cat-icon { background: #f1f5f9; color: var(--text-secondary); }

/* Chart wrappers */
.chart-wrap { position: relative; height: 200px; }
.chart-wrap-lg { position: relative; height: 260px; }

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar, .topbar, .filter-bar, .action-btns, .btn, .pagination { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  table { font-size: 11px; }
}

/* ============================================================
   RESPONSIVE - MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --topbar-height: 58px; }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; }

  .main-content { margin-left: 0; }
  .hamburger-btn { display: flex; }

  .page-content { padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .stat-value { font-size: 1.5rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-control-full { grid-column: 1; }

  .filter-bar { flex-wrap: wrap; }
  .search-wrap .form-control { min-width: 100%; }

  .modal { margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; }

  .topbar { padding: 0 14px; }
  .topbar-time { display: none; }
  .topbar-username { display: none; }

  .dashboard-grid { grid-template-columns: 1fr; }
  
  .asset-detail-grid { grid-template-columns: 1fr; }

  thead th { font-size: .7rem; padding: 9px 10px; }
  tbody td { padding: 10px 10px; font-size: .82rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 22px; }
  .card-header { flex-wrap: wrap; gap: 10px; }
}
