*{
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
}

body{
  margin:0;
  background:#f4f6f8;
  color:#111827;
}

/* ===== HEADER ===== */
.topbar{
  background:#0f172a;
  color:#fff;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.logo{
  font-size:18px;
  font-weight:700;
}

.nav{
  display:flex;
  gap:12px;
}

.nav a{
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  padding:6px 10px;
  border-radius:6px;
}

.nav a:hover{
  background:#1e293b;
  color:#fff;
}

/* ===== PAGE ===== */
.page{
  max-width:1000px;
  margin:20px auto;
  padding:15px;
}

/* ===== CARD ===== */
.card{
  background:#fff;
  border-radius:12px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-bottom:20px;
}

.card h2{
  margin-top:0;
  font-size:18px;
}

/* ===== FORM ===== */
form{
  display:grid;
  gap:12px;
}

input,select,textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px;
}

textarea{
  min-height:70px;
}

button{
  background:#2563eb;
  color:#fff;
  border:none;
  padding:12px;
  font-size:15px;
  font-weight:600;
  border-radius:10px;
  cursor:pointer;
}

button:hover{
  background:#1d4ed8;
}

/* ===== TABLE ===== */
.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

th,td{
  padding:8px;
  border-bottom:1px solid #e5e7eb;
}

th{
  background:#f1f5f9;
  text-align:left;
}

/* ===== TAGS ===== */
.tag{
  padding:3px 8px;
  border-radius:12px;
  font-size:11px;
  font-weight:600;
}

.tag.dr{background:#fee2e2;color:#991b1b;}
.tag.cr{background:#dcfce7;color:#166534;}
.tag.cash{background:#fde68a;color:#92400e;}
.tag.bank{background:#bfdbfe;color:#1e3a8a;}

/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-box{
  background:#fff;
  padding:18px 24px;
  border-radius:12px;
  font-weight:600;
}

/* ===== FOOTER ===== */
.footer{
  text-align:center;
  font-size:12px;
  color:#6b7280;
  margin:30px 0;
}

/* ===== MOBILE ===== */
@media(max-width:600px){
  .nav{
    width:100%;
    margin-top:10px;
    flex-wrap:wrap;
  }

  .page{
    margin:10px;
    padding:0;
  }
}





.btn-delete{
  background:#fee2e2;
  color:#991b1b;
  padding:6px 10px;
  border-radius:6px;
  font-size:12px;
  text-decoration:none;
}

.btn-delete:hover{
  background:#fecaca;
}


.tag.both{
  background:#e0e7ff;
  color:#3730a3;
}






/* DASHBOARD */
.dash-header {
  background: linear-gradient(135deg, #2f5fd0, #4f7cff);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.dash-header h2 {
  margin: 0;
  font-size: 22px;
}

.dash-header p {
  margin-top: 6px;
  opacity: 0.9;
  font-size: 13px;
}

/* GRID */
.dash-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.dash-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dash-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CARD */
.dash-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.dash-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dash-card p {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

/* HIGHLIGHT CARDS */
.highlight {
  border-left: 4px solid #2f5fd0;
}

/* STATS */
.stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

/* BUTTON */
.btn {
  display: inline-block;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #2f5fd0;
  color: #2f5fd0;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #2f5fd0;
  color: #fff;
}

.btn.primary {
  background: #2f5fd0;
  color: #fff;
}

.btn.primary:hover {
  background: #244bb0;
}

/* SECTION TITLE */
.section-title {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}











