@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --blue: #38bdf8;
  --blue-dark: #2563eb;
  --bg-dark: #020617;
  --glass: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.15);
  --text-light: #e5e7eb;
  --green: #22c55e;
  --red: #ef4444;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a, var(--bg-dark));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
}

/* MAIN CARD */
.container {
  width: auto;
  padding: 28px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

/* TITLE */
h1 {
  text-align: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue);
}

/* FORM */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

form input,
form select {
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.9rem;
}

form select {
  grid-column: span 2;
  cursor: pointer;
}

form select{
  background:#0f172a;
}

form input::placeholder {
  color: #c7d2fe;
}

/* ADD BUTTON */
form button {
  grid-column: span 2;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.45);
}

/* EXPENSE LIST */
#expense-list {
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

#expense-list::-webkit-scrollbar {
  width: 6px;
}

#expense-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

#expense-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  animation: slideUp 0.3s ease;
}

/* LEFT TEXT */
#expense-list strong {
  font-size: 0.95rem;
  display: block;
}

.meta {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* RIGHT SIDE */
.right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.right button {
  background: transparent;
  border: none;
  color: var(--red);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.right button:hover {
  transform: scale(1.15);
}

/* TOTAL */
h3 {
  margin-top: 18px;
  text-align: center;
  font-weight: 500;
}

#total {
  color: var(--green);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ANIMATION */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .container {
    width: 92%;
    padding: 22px;
  }
}
