/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #6d7950;
  --primary-light: #8a9a6a;
  --primary-dark: #525c3c;
  --primary-glow: rgba(109, 121, 80, 0.35);
  --accent: #c9a84c;
  --accent-light: #e0c46e;
  --accent-dark: #a08230;
  --bg-dark: #121a0e;
  --bg-card: #1a2414;
  --bg-card-hover: #222f1a;
  --bg-surface: #1e2b16;
  --bg-glass: rgba(26, 36, 20, 0.75);
  --border-subtle: rgba(109, 121, 80, 0.2);
  --border-hover: rgba(109, 121, 80, 0.45);
  --text-primary: #e8ede2;
  --text-secondary: #a3b08e;
  --text-muted: #6e7d5e;
  --danger: #d9534f;
  --danger-hover: #c9302c;
  --success: #5cb85c;
  --info: #5bc0de;
  --warning: #f0ad4e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.18);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition-fast: 0.2s cubic-bezier(.4,0,.2,1);
  --transition-med: 0.35s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.5s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle animated background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(109,121,80,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(109,121,80,0.03) 0%, transparent 70%);
  animation: bgDrift 25s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 1%) rotate(1deg); }
  100% { transform: translate(1%, -1%) rotate(-0.5deg); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ===== NAVBAR ===== */
.navbar-custom {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: box-shadow var(--transition-med);
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(109,121,80,0.3);
}

.navbar-logo:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: var(--shadow-glow);
}

.navbar-brand-text {
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary) !important;
  background: rgba(109,121,80,0.15);
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== HERO / PAGE HEADER ===== */
.page-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

/* ===== STATS CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transition: height var(--transition-med);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
  height: 4px;
}

.stat-card.income::before { background: linear-gradient(90deg, var(--success), #7dd87d); }
.stat-card.expense::before { background: linear-gradient(90deg, var(--danger), #e87878); }
.stat-card.balance::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.count::before { background: linear-gradient(90deg, var(--info), #8fd8ef); }

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.stat-card:hover .stat-icon {
  transform: scale(1.15);
}

.stat-card.income .stat-icon { color: var(--success); }
.stat-card.expense .stat-icon { color: var(--danger); }
.stat-card.balance .stat-icon { color: var(--accent); }
.stat-card.count .stat-icon { color: var(--info); }

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ===== TOOLBAR ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 3rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.search-box input:focus ~ .search-icon,
.search-box input:not(:placeholder-shown) ~ .search-icon {
  color: var(--primary-light);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-danger-custom {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-danger-custom:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,83,79,0.3);
}

.btn-edit-custom {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-edit-custom:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.btn-secondary-custom {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary-custom:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== DATA TABLE ===== */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-med);
}

.table-wrapper:hover {
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg-surface);
}

.data-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(109,121,80,0.08);
  font-size: 0.92rem;
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.data-table tbody tr {
  transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Category badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(109,121,80,0.15);
  color: var(--primary-light);
}

.category-badge i {
  font-size: 0.75rem;
}

/* Type badge */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-badge.income {
  background: rgba(92,184,92,0.15);
  color: #7dd87d;
}

.type-badge.expense {
  background: rgba(217,83,79,0.15);
  color: #e87878;
}

/* Amount display */
.amount-display {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.amount-display.positive { color: var(--success); }
.amount-display.negative { color: var(--danger); }

/* Actions cell */
.actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state h3 {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== FORM (CREATE VIEW) ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
  transition: box-shadow var(--transition-med);
}

.form-card:hover {
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control-custom {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

select.form-control-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e7d5e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control-custom option {
  background: var(--bg-card);
  color: var(--text-primary);
}

textarea.form-control-custom {
  min-height: 100px;
  resize: vertical;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--primary-light);
  background: rgba(109,121,80,0.15);
  color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.radio-label:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Validation */
.form-control-custom.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(217,83,79,0.2) !important;
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.form-control-custom.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-med);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  font-size: 3.5rem;
  color: var(--danger);
  margin-bottom: 1rem;
  display: block;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}

.modal-content h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-modal-cancel {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-cancel:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-modal-delete {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-delete:hover {
  background: var(--danger-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,83,79,0.4);
}

/* ===== FOOTER ===== */
.footer-custom {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  opacity: 0.85;
}

.footer-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
}

.footer-developer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.footer-developer i {
  color: var(--primary-light);
  font-size: 1.1rem;
}

.dev-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dev-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dev-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== TOAST / NOTIFICATION ===== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  animation: slideIn 0.4s ease forwards;
  min-width: 280px;
}

.toast.hide {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

@keyframes slideOut {
  to { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
  font-size: 1.3rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info .toast-icon { color: var(--info); }
.toast.info { border-left: 3px solid var(--info); }

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Row entrance animation */
.data-table tbody tr {
  animation: fadeInUp 0.3s ease backwards;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.03s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.06s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.09s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.12s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.18s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.21s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-title { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-direction: column; }
  .search-box { min-width: 100%; }
  .footer-content { flex-direction: column; text-align: center; }
  .table-wrapper { overflow-x: auto; }
  .form-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
}

/* ===== VIEW TRANSITIONS ===== */
.view {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.view.active {
  display: block;
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-chip.active {
  background: rgba(109,121,80,0.2);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* ===== DATE DISPLAY ===== */
.date-display {
  color: var(--text-muted);
  font-size: 0.85rem;
}
