/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #74ebd5, #9face6);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Wave Styles */
.wave {
  position: absolute;
  width: 100%;
  height: 150px;
  left: 0;
  z-index: 0;
}

.wave.top {
  top: 0;
  transform: rotate(180deg);
}

.wave.bottom {
  bottom: 0;
}

/* Header */
header {
  background-color: #000000;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  color: #fff;
}

/* Container */
.container {
  background-color: rgba(255, 255, 255, 0.95);
  margin: 20px auto;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: relative;
}

/* Form Inputs */
.input-container {
  margin-bottom: 20px;
}

.input-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.input-container input,
.input-container select {
  width: 100%;
  padding: 10px;
  border: 1px solid #999;
  border-radius: 8px;
}

/* Buttons */
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.button-container button {
  padding: 12px 20px;
  background-color: #5a67d8;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-container button:hover {
  background-color: #434190;
}

.pdf-button {
  background-color: #2b6cb0;
}

.pdf-button:hover {
  background-color: #2c5282;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

table thead {
  background-color: #edf2f7;
  font-weight: bold;
}

/* Summary Section */
.summary-container {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
}

.summary-item {
  background-color: #f7fafc;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: #000000;
  color: #fff;
}

#category-container {
  display: none;
}

/* Net Balance Styling */
#net-balance-box {
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 10px;
}

#net-balance-box.positive {
  background-color: #e6fffa; /* light green */
  color: #2f855a;            /* dark green text */
  border: 1px solid #38a169; /* green border */
}

#net-balance-box.negative {
  background-color: #fff5f5; /* light red */
  color: #c53030;            /* dark red text */
  border: 1px solid #e53e3e; /* red border */
}
