body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 20px;
  background-color: #f0f2f5;
  color: #333;
}

.container {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #1c1e21;
}
.description {
  text-align: center;
  color: #606770;
  margin-bottom: 25px;
}

.input-group {
  margin-bottom: 20px;
}
label {
  font-weight: 600;
  color: #4b4f56;
}
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 5px;
}

.cycle-fieldset {
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}
.cycle-fieldset legend {
  font-weight: 600;
  color: #007bff;
  padding: 0 5px;
}
.cycle-input-pair {
  display: flex;
  gap: 15px;
}
.cycle-input-pair > div {
  flex: 1;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #0056b3;
}

.result-area {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ebee;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  background-color: #f6f7f8;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.stats p {
  margin: 0;
}

.timeline-container {
  background-color: #f0f2f5;
  border-radius: 6px;
  overflow: hidden;
}
.timeline {
  display: flex;
  height: 40px;
  width: 100%;
}
.timeline-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.5s ease-in-out;
}
.uptime {
  background-color: #28a745;
}
.downtime {
  background-color: #dc3545;
}

.availability-result {
  text-align: right;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 15px;
}
#availability {
  color: #007bff;
  font-size: 1.3em;
}
