body {
  background-color: #000000;         /* pure black */
  color: #f5f5f5;
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

img.logo {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}
h2 {
  text-align: center;
  margin-bottom: 10px;
}
p.subtitle {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 18px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th, td {
  border: 1px solid #444;
  padding: 6px;
  text-align: center;
}

th {
  background-color: #111;
  font-weight: bold;
}

.narrow-col {
  width: 70px;
}

.name-col {
  width: 200px;
  text-align: left;
}

.total-each-col {
  width: 120px;
}

.label-cell {
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
}

.total-employees-input-cell {
  width: 120px;              /* nice roomy input */
}

.total-employees-button-cell {
  text-align: left;
  padding-left: 8px;         /* moves button closer to the input */
}


.calculate-cell {
  text-align: center;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  background-color: #111;
  border: 1px solid #555;
  color: #f5f5f5;
  font-family: "Times New Roman", Times, serif;
  text-align: center;
}

input[type="text"] {
  text-align: left;
}

input[disabled] {
  background-color: #222;
  color: #999;
}

button {
  margin-top: 0;
  padding: 6px 14px; /* same size as before */
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;   /* same size as before */
  color: #ffffff;
  background: linear-gradient(to bottom, #1a8cff, #005fd1);
  border: 1px solid #003f8c;
  border-radius: 6px;                  /* soft bevel */
  box-shadow: 0 2px 4px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.25); /* raised look */
  text-shadow: 0 1px 1px rgba(0,0,0,0.7);          /* raised letters */
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

button:hover {
  background: linear-gradient(to bottom, #33a0ff, #006be0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

button:active {
  transform: translateY(1px); /* subtle “press in” */
  box-shadow: 0 1px 2px rgba(0,0,0,0.5),
              inset 0 1px 2px rgba(0,0,0,0.5);
}


.controls-section {
  margin-bottom: 20px;
}

.note {
  font-size: 14px;
  margin-top: 8px;
  color: #cccccc;
}

.note-error {
  font-size: 14px;
  margin-top: 8px;
  color: #ff5555;
  font-weight: bold;
}
.red-inline-note {
  color: #ff5555;
  font-size: 11px;
  margin-left: 4px;
  display: inline-block;
  max-width: 260px; /* keeps it from stretching the table too wide */
}
.label-cell {
  text-align: right;
  padding-right: 8px;
  white-space: normal; /* allow wrapping since there's more text now */
}


@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  p.subtitle {
    font-size: 16px;
  }

  button {
    width: auto;
  }
}
