:root {
  --primary-color: #4a6fa5;
  --secondary-color: #6b8cae;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 20px 0;
  color: var(--primary-color);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.app-description {
  color: var(--secondary-color);
  font-size: 1rem;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border 0.3s;
}

input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
}

button:hover {
  background-color: var(--secondary-color);
}

.records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--primary-color);
  font-size: 1.3rem;
}

.records-list {
  margin-top: 15px;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.record-item:hover {
  background-color: #f8f9fa;
}

.record-info {
  flex: 1;
}

.record-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.record-amount {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  width: auto;
}

.total-amount {
  font-weight: 700;
  color: #d63031;
}

.no-records {
  text-align: center;
  padding: 30px;
  color: #6c757d;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 15px;
  }
}
