:root {
    --primary-color: #2E5BFF;
    --accent-color: #09274A;
    --text-color: #333333;
    --bg-main: #ffffff;
    --bg-secondary: #fafafa;
    --bg-third: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 50%, #e8fdf1 100%);
}

main {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h1 {
    color: var(--primary-color);
}

.intro-text {
    max-width: 600px;
}

.tool {
  background: var(--bg-main, #fff);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.input-group {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  align-items: center;
  gap: 10px;
}
.input-group label { grid-column: 1 / 2; }
.input-group input,
.input-group select { padding: 0.5rem; }

.pitch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  grid-column: 2 / 4; /* išplėsti visą eilę */
}
.pitch-block small.muted { color:#777; display: block; margin-top: 6px; }
.slope-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.slope-wrap input { width: 90px; }

.result-box { margin-top: 1.5rem; }

#roofResults {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}
#roofResults th, #roofResults td {
  border: 1px solid #e6e6e6;
  padding: 10px;
  text-align: center;
}
#roofResults thead th {
  background: var(--bg-secondary, #fafafa);
}

.material-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary, #fafafa);
  border-radius: 8px;
}

.formula {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .input-group {
    grid-template-columns: 1fr;
  }
  .pitch-row { grid-column: auto; grid-template-columns: 1fr; }
}

.info-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.6;
}

.info-section h2,
.info-section h3 {
  margin-top: 1rem;
  color: #333;
}

.info-section ul,
.info-section ol {
  margin-left: 1.5rem;
}

.info-section code {
  background: rgba(255, 255, 255, 0.35);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.extra-tool {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary-color);
  box-shadow: 0 6px 20px rgba(46,91,255,0.2);
  transition: all 0.25s ease;
  border-radius: 6px;
}

.extra-tool a {
  color: var(--primary-color);
  text-decoration: none;
}

.extra-tool a:hover {
  text-decoration: underline;
}


h2, h3 {
    color: #2b3a42;
}
