body {
  font-family: "Inter", system-ui, sans-serif;
  background: #ffffff;
  color: #182525;
}

/* Header */
.header-section {
  text-align: center;
  padding: 22px 16px;

  background: linear-gradient(135deg, #02113b 0%, #03174f 100%);

  color: white;
  border-radius: 0 0 26px 26px;
  margin-bottom: 28px;

  box-shadow: 0 6px 18px rgba(2, 17, 59, 0.25);
}

.header-section h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
}

/* Form Container */
.form-container {
  padding: 0 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* Input Groups */
.input-group {
  margin-bottom: 20px;
}

.input-group p {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 14px;
  font-size: 16px;

  border: 1.5px solid #cac4b9;
  border-radius: 14px;

  background-color: #f7f9f9;
  box-sizing: border-box;

  transition: 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #02113b;
  background-color: white;

  box-shadow: 0 0 0 3px rgba(2, 17, 59, 0.12);
}

/* Category Section */
.category-section {
  padding: 0 20px;
  max-width: 500px;
  margin: 0 auto 25px auto;
}

.category-section p {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.Category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gridButton {
  flex: 0 0 calc(50% - 5px);

  padding: 12px 10px;
  min-height: 56px;

  font-size: 15px;
  font-weight: 500;

  background-color: #f7f9f9;
  border: 1.5px solid #cac4b9;
  border-radius: 16px;

  cursor: pointer;
  transition: all 0.2s ease;

  display: flex;
  align-items: center; /* ✅ Perfect vertical alignment */
  justify-content: center;
  gap: 8px;
}

.gridButton img {
  width: 18px;
  height: 18px;
  opacity: 0.95;
  filter: brightness(0) saturate(100%) invert(15%) sepia(40%) saturate(2000%)
    hue-rotate(200deg);
}

.gridButton:hover {
  border-color: #02113b;
  transform: translateY(-1px);
}

.gridButton.selected,
.gridButton.active {
  background: #02113b;
  border-color: #02113b;
  color: white;

  box-shadow: 0 6px 14px rgba(2, 17, 59, 0.25);
  transform: scale(1.02);
}

/* Payment & Description */
.payment-section,
.description-section {
  padding: 0 20px;
  max-width: 500px;
  margin: 0 auto 20px auto;
}

.payment-section label,
.description-section label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.payment-select,
.description-textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;

  border: 1.5px solid #cac4b9;
  border-radius: 14px;

  background-color: #f7f9f9;
  box-sizing: border-box;

  transition: 0.2s ease;
}

.payment-select:focus,
.description-textarea:focus {
  outline: none;
  border-color: #02113b;

  box-shadow: 0 0 0 3px rgba(2, 17, 59, 0.12);
}

/* Save Button */
.save-button-container {
  padding: 0 20px;
  max-width: 500px;
  margin: 0 auto 20px auto;
}

.save-button {
  width: 100%;
  padding: 16px;

  font-size: 17px;
  font-weight: 600;

  background: linear-gradient(135deg, #02113b 0%, #052275 100%);

  color: white;
  border: none;
  border-radius: 18px;

  cursor: pointer;

  box-shadow: 0 8px 18px rgba(2, 17, 59, 0.25);
  transition: 0.25s ease;
}

.save-button:hover {
  transform: translateY(-2px);
  background: #03174f;
}

/* Summary */
.expense-summary {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto 25px auto;

  background: linear-gradient(135deg, #f7f9f9 0%, #e3d8f1 100%);

  border-radius: 20px;
  border: 1px solid #cac4b9;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.expense-summary h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.expense-summary .amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.gridButton.active {
  background-color: #6366f1;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Mobile */
@media (max-width: 480px) {
  .header-section h1 {
    font-size: 24px;
  }
  .form-container,
  .category-section,
  .payment-section,
  .description-section,
  .save-button-container,
  .expense-summary {
    padding-left: 15px;
    padding-right: 15px;
  }
}
