/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f9;
  margin: 0;
  padding: 0;
}

/* Form Container */
.form-container {
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Labels */
label {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  display: block;
}


/* Focus Effect */
input:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Select Dropdown */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gray'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  /* background-size: 16px; */
  cursor: pointer;
}

/* Textarea */
textarea {
  height: 120px;
  resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
      max-width: 90%;
  }
}

Fieldset {
  border: 0px !important;
}



.bg-light-danger{
  background-color: rgba(255, 0, 0, 0.1) !important;
}

:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --primary: #6366f1;
  --success: #16a34a;
  --danger: #dc2626;
  --border: #e5e7eb;
}
[data-theme="dark"]{
  --bg: #0f172a;
  --card: #111827;
  --muted: #a1a1aa;
  --text: #e5e7eb;
  --border: #1f2937;
}

body{ background: var(--bg) !important; color: var(--text); }

.page-toolbar{
  display:flex; gap:.5rem; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
.title-wrap{ display:flex; align-items:center; gap:.75rem; }
.title-wrap h3{ margin:0; font-weight:700; letter-spacing:.2px; }

.btn-modern{
  --_bg: var(--primary);
  background: var(--_bg);
  color:#fff; border:none; border-radius:12px; padding:.55rem .9rem;
  font-weight:600; box-shadow: 0 8px 20px rgba(99,102,241,.25);
  transition: transform .12s ease, box-shadow .2s ease;
}
.btn-modern:hover{ transform: translateY(-1px); box-shadow:0 12px 28px rgba(99,102,241,.35); }
.btn-outline-modern{
  border-radius:12px; padding:.5rem .9rem; border:1px solid var(--border); color:var(--text); background:transparent;
}
.btn-chip{ border-radius:999px; padding:.35rem .9rem; border:1px solid var(--border); background:var(--card); color:var(--muted); }

.card-glass{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .8rem; border-radius:999px;
  background: var(--card); border:1px solid var(--border);
  color: var(--muted); font-weight:600;
}
.chip .value{ font-weight:800; color:var(--text); }
.chip.success{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); }
.chip.danger { border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.08); }

.filters .form-select, .filters .form-control{
  border-radius:12px; border:1px solid var(--border); background: var(--card); color: var(--text);
}

.table-modern{
  border-collapse: separate; border-spacing: 0 8px; width:100%;
}
.table-modern thead th{
  color: var(--muted); font-weight:700; border:0; padding:.5rem .75rem;
}
.table-modern tbody tr{
  background: var(--card); box-shadow: 0 6px 14px rgba(0,0,0,.04);
}
.table-modern tbody td{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:.65rem .75rem; vertical-align:middle;
}
.table-modern tbody tr td:first-child{ border-left:1px solid var(--border); border-top-left-radius:12px; border-bottom-left-radius:12px; }
.table-modern tbody tr td:last-child { border-right:1px solid var(--border); border-top-right-radius:12px; border-bottom-right-radius:12px; }

.tx-dot{ width:10px; height:10px; border-radius:50%; border:1px solid rgba(0,0,0,.08); display:inline-block; }
[data-theme="dark"] .tx-dot{ border-color: rgba(255,255,255,.1); }

/* Mobile-first responsive table */
@media (max-width: 768px){
  .hide-sm{ display:none; }
  .table-modern thead{ display:none; }
  .table-modern tbody tr{ display:block; margin-bottom:10px; }
  .table-modern tbody td{ display:flex; justify-content:space-between; gap:1rem; border:0; padding:.5rem .75rem; }
  .table-modern tbody td::before{ content: attr(data-label); font-weight:600; color:var(--muted); }
  .table-modern tbody tr td:first-child,
  .table-modern tbody tr td:last-child{ border-radius:0; }
}

.badge-soft{
  border:1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight:600;
  border-radius:999px;
  padding:.25rem .6rem;
}
.badge-income{ background: rgba(22,163,74,.12); color:#16a34a; border-color: rgba(22,163,74,.25); }
.badge-expense{ background: rgba(220,38,38,.12); color:#dc2626; border-color: rgba(220,38,38,.25); }

.switch{
  position:relative; width:56px; height:32px; background:var(--border); border-radius:999px; cursor:pointer; border:1px solid var(--border);
}
.switch .knob{
  position:absolute; top:2px; left:2px; width:28px; height:28px; background:#fff; border-radius:50%; transition:left .2s ease, background .2s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
[data-theme="dark"] .switch{ background:#374151; }
[data-theme="dark"] .switch .knob{ left:26px; background:#111827; }