* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#months {
  padding: 5px;
  border: 2px solid black;
  border-radius: 5px;
  font-weight: bold;
}

#months option {
  border: 2px solid black;
  background-color: gray;
  border-radius: 5px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px;
  background: #f8f9fa;
}

.summary-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.summary-card h3 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.summary-card p {
  font-size: 1.8rem;
  font-weight: bold;
}

.income {
  color: #10b981;
}

.expense {
  color: #ef4444;
}

.balance {
  color: #3b82f6;
}

.form-section {
  padding: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section h2 {
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #667eea 0%, #8f75a8 100%);
}

.transactions {
  padding: 30px;
}

.transactions h2 {
  margin-bottom: 20px;
  color: #333;
}

.transaction-list {
  max-height: 400px;
  overflow-y: auto;
}

/* TRANSACTION ITEM STYLES - This is what you asked about! */
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background: #e6eef5;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid;
  transition: transform 0.2s;
}

.transaction-item:hover {
  transform: translateX(5px);
}

/* GREEN BORDER FOR INCOME */
.transaction-item.income-item {
  border-left-color: #10b981;
}

/* RED BORDER FOR EXPENSES */
.transaction-item.expense-item {
  border-left-color: #ef4444;
}

.transaction-info {
  flex: 1;
}

.transaction-info h4 {
  color: #333;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.transaction-info p {
  color: #666;
  font-size: 0.9rem;
}

/* AMOUNT STYLING - GREEN FOR INCOME, RED FOR EXPENSES */
.transaction-amount {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 15px;
}

.delete-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.delete-btn:hover {
  background: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

.filter-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Scrollbar styling for transaction list */
.transaction-list::-webkit-scrollbar {
  width: 8px;
}

.transaction-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* Category Breakdown */
.category {
  padding: 25px;
  border-bottom: 1px solid #e5e7eb;
}

.category h2 {
  margin-bottom: 30px;
  color: #333;
  font-size: 1.5rem;
}

.all-category {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 250px;
  margin: auto;
}

.all-category meter {
  width: 250px;
}

.all-category span {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

.catgr{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#food-money, #transport-money, #utilities-money, #entertainment-money, #healthcare-money, #other-money{
  color: #ef4444;
}

.prctg{
  font-size: 12px;
  margin-top: -15px;
  text-align: right;
  color: #666;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .header p {
    font-size: 15px;
  }

  .summary-card h3 {
    font-size: 0.8rem;
  }

  .summary-card p {
    font-size: 1.5rem;
  }

  .transactions {
    padding: 10px;
  }

  .transactions h2,
  .form-section h2 {
    font-size: 20px;
  }

  .transaction-amount {
    font-size: 1rem;
    margin-right: 10px;
  }

  .transaction-info p,
  .transaction-info h4 {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select {
    padding: 6px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 8px 15px;
  }

  .filter-section {
    gap: 5px;
  }

  .filter-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .category h2{
    font-size: 20px;
  }
}


