/* Base & Layout */
body {
  font-family: 'Poppins', sans-serif;
  margin: 20px 40px;
  background: #f5f7fa;
  color: #333;
  line-height: 1.7;
  text-align: left;
  min-height: 100vh;
}

h1 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

h1 a {
  color: #0072ff;
  text-decoration: none;
}

h1 a:hover {
  text-decoration: underline;
}

h2 {
  margin-top: 40px;
  color: #0072ff;
  font-weight: 600;
  font-size: 1.8rem;
}

h3 {
  margin-top: 25px;
  font-weight: 600;
  color: #004a99;
  font-size: 1.3rem;
}

p {
  margin-top: 12px;
  font-size: 1rem;
}

ul, ol {
  margin-top: 15px;
  margin-left: 20px;
}

ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

pre {
  background-color: #e3f2fd;
  padding: 12px 16px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  margin-top: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Icon style */
.icon {
  color: #0072ff;
  margin-right: 8px;
}

/* Container */
.container {
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: auto;
  box-sizing: border-box;
}

/* Header (index page) */
header {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: white;
  padding: 20px 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  text-align: left;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  margin-top: 0;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background: #00040a;
  color: white;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.cta-button:hover {
  background: #0059c9;
}

/* Forms */
label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
  font-size: 1rem;
  color: #004a99;
}

select, input[type="number"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1.8px solid #0072ff;
  font-size: 1rem;
  font-weight: 400;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background: white;
  color: #333;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
  border-color: #0059c9;
  box-shadow: 0 0 5px rgba(0,114,255,0.4);
}

/* Buttons */
button {
  cursor: pointer;
  background-color: #0072ff;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

button:hover {
  background-color: #0059c9;
  transform: scale(1.05);
}

button:focus {
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.5);
}

/* Action buttons container */
.actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.actions button {
  flex: 1;
  background-color: #00aaff;
}

.actions button:hover {
  background-color: #007bbf;
}

/* Result */
.result {
  margin-top: 25px;
  font-weight: 600;
  font-size: 1.2rem;
  color: #0072ff;
  background: rgba(0,114,255,0.1);
  padding: 12px 16px;
  border-radius: 8px;
  box-sizing: border-box;
}

/* PDF Button */
#pdfButtonContainer button {
  background-color: #00c853;
  margin-top: 10px;
}

#pdfButtonContainer button:hover {
  background-color: #009624;
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 15px 10px;
  background: #222;
  color: #eee;
  text-align: center;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .container {
    padding: 15px;
  }
  table, thead, tbody, th, td, tr {
    display: block;
    text-align: left;
  }
  th {
    display: none;
  }
  td {
    padding: 10px;
    position: relative;
  }
  td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: rgba(0, 114, 255, 0);
}
}