
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  background: #f4f6f8;
  padding: 20px;
  color: #333;
}

header {
  margin-bottom: 25px;
}

.buttons{
  display: flex;
  gap: 2rem;
}

.currency-picker {
  position: relative;
}

#currencyBtn {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  background: none;
  border: 1px solid black;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
}

#currencyMenu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  padding: 6px;
  z-index: 10;
}

.currency-option {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.currency-option:hover {
  background: rgba(0,0,0,0.06);
}

.hidden {
  display: none;
}

#container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

#container h1 {
  font-size: 1.4rem;
  font-weight: 600;
}

#openFormBtn {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.25s ease;
}

#openFormBtn.active{
  transform: rotate(45deg);
}



#totals {
  background: #000;
  border-radius: 2rem;
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}


#t-balance {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}


#t-income {
  color: #2ecc71;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 1.2rem;
}

#t-expenses {
  color: #e74c3c;
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.8rem 1rem;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
}

.amount {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}




#add {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  color: #333; 
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

#add:hover {
  background: rgba(0, 0, 0, 0.15); 
  transform: scale(1.02);
}

form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

form label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

form input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}



main section {
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

main h2 {
  margin-bottom: 12px;
}


#transaction-list article,
#expense-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f9f9f9;
}

#expense-list article {
  border-left: 4px solid #e74c3c;
}


button {
  padding: 6px 10px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

button:hover {
  background: #c0392b;
}



.type-toggle {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.type-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ccc;
  background: #f1f1f1;
  font-weight: 600;
  cursor: pointer;
}

.type-toggle button.active {
  border: none;
  color: #000;
}

#incomeBtn.active {
  background: #2ecc71;
}

#expenseBtn.active {
  background: #e74c3c;
}


input.error{
  border: 2px solid #e74c3c;
  background-color: #ffe6e6;
}