/* --- style.css content embedded here --- */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  min-height: 100vh;
}

label {
  cursor: pointer;
}

.container {
  /* background-color: #fff; */
  padding: 24px 8px;
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  color: #222;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
}

#daysOffFieldset legend {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  /* justify-content: space-between; */
  gap: 20px;
}

.input-group,
fieldset.input-group {
  border: none;
  padding: 0;
  margin: 0;
  margin-bottom: 24px;
}

.input-group label,
fieldset.input-group legend {
  display: block;
  font-weight: bold;
  color: #444;
  margin-bottom: 6px;
  font-size: 1em;
}

input[type='date'],
input[type='number'],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

/* Inline checkboxes and radios */
.working-days-checkboxes div,
.vat > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
}

.working-days-checkboxes input[type='checkbox'],
.vat input[type='radio'] {
  margin: 0 4px 0 0;
  width: auto;
  accent-color: #4caf50;
}

.working-days-checkboxes label,
.vat label {
  display: inline-block;
  font-weight: normal;
  margin: 0 12px 0 0;
  font-size: 1em;
  color: #333;
}

/* Days off input row */
.day-off-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}
.day-off-input label {
  min-width: 90px;
  font-weight: normal;
  margin: 0;
}
.day-off-input input[type='date'] {
  flex: 1 1 0%;
  min-width: 0;
}

.remove-button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.2s;
}
.remove-button:hover {
  background-color: #c0392b;
}

.small-button {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
  /* margin-top: 10px; */
  transition: background 0.2s;
}
.small-button:hover {
  background-color: #217dbb;
}

.calculate-button {
  width: 100%;
  background-color: #4caf50;
  color: #fff;
  padding: 12px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background 0.3s;
}
.calculate-button:hover {
  background-color: #388e3c;
}

#error-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  /* background: #ffecec; */
  border: 1px solid #f2b8b5;
  color: #5e0011;
  /* font-weight: 600; */
  line-height: 1.4;
}

#results h2 {
  margin-top: 0;
  color: #222;
  font-size: 1.25em;
}

#results .result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

#results .result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#results .label {
  font-weight: 600;
  color: #444;
}

#results .value {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  color: #222;
  text-align: right;
}

.results-box {
  margin-top: 25px;
  padding: 15px;
  border: 2px solid #4caf50;
  border-radius: 4px;
  background-color: #f9f9f9;
}
.results-box h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.2em;
}
.results-box p {
  margin: 0;
  line-height: 1.5;
}
.daily-rate {
  font-size: 1.2em;
  color: #b03a2e;
  font-weight: bold;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

@media (min-width: 600px) {
  .container {
    padding: 32px 32px 32px 32px;
  }
  h1 {
    font-size: 2em;
  }
  .input-group label,
  fieldset.input-group legend {
    font-size: 1.1em;
  }
}
/* --- End of style.css content --- */
