body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #eef2f7;
}

/* HEADER */
header {
  background: #1f2a36;
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

/* BUTTON */
.btn {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.primary {
  background: #00a8ff;
  color: white;
}

.cancel {
  background: #dcdde1;
}

/* CONTAINER */
.container {
  padding: 20px;
}

/* DASHBOARD GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.tile {
  padding: 20px;
  border-radius: 10px;
  color: white;
}

.tile h3 {
  margin: 0;
  font-size: 15px;
}

.tile p {
  font-size: 22px;
  margin-top: 10px;
  font-weight: bold;
}

.income { background: #44bd32; }
.expense { background: #e84118; }
.loan { background: #273c75; }

/* CARD */
.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.05);
}

/* SECTION HEADER */
.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 10px;
  font-size: 14px;
  background: #f1f3f6;
  border-radius: 4px;
}

.table td {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.table tr:hover {
  background: #f9fafc;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: white;
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 999;
  color: black;
  padding: 12px;
  cursor: pointer;
  
}

.dropdown-content div {
  padding: 12px;
  cursor: pointer;
}

.dropdown-content div:hover {
  background: #f1f2f6;
}

.show {
  display: block;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.4);
}

.modal-box {
  background:white;
  width:90%;
  max-width:450px;
  margin:80px auto;
  padding:20px;
  border-radius:10px;
}

.modal-actions {
  margin-top: 15px;
  text-align: right;
}

/* FORM */
input, select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
