* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

h2 {
  text-align: center;
  color: #666;
  margin-bottom: 35px;
  font-size: 18px;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}

/* Desktop column layout */
.grid > div {
  grid-column: span 4;
}

/* Full width */
.grid .full {
  grid-column: span 12;
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  outline: none;
}

input:focus {
  border-color: #1e88e5;
}

/* Buttons */
button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  background: #1e88e5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #1565c0;
}

/* Message */
#message {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

/* Links */
.links {
  text-align: center;
  margin-top: 25px;
}

.links a {
  text-decoration: none;
  color: #1e88e5;
  font-weight: 600;
}

/* =========================
   TABLE (REPORTS PAGE)
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th, td {
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

th {
  background: #f3f3f3;
  font-weight: 600;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablets */
@media (max-width: 992px) {
  .container {
    margin: 20px;
    padding: 25px;
  }

  .grid > div {
    grid-column: span 6;
  }
}

/* Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 16px;
  }

  .grid {
    gap: 16px;
  }

  .grid > div {
    grid-column: span 12;
  }

  button {
    font-size: 16px;
  }

  table {
    min-width: 100%;
    font-size: 13px;
  }
}

/* ===== LIVE TOTAL PREVIEW ===== */
.preview-box {
  margin-top: 25px;
  padding: 18px 22px;
  background: #f5faff;
  border: 2px dashed #1e88e5;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #0d47a1;
}

.preview-box span {
  font-weight: bold;
}

@media (max-width: 600px) {
  .preview-box {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 16px;
  }
}
