:root {
    --primary-color: #2E5BFF;
    --accent-color: #09274A;
    --text-color: #333333;
    --bg-main: #ffffff;
    --bg-secondary: #fafafa;
    --bg-third: #f5f5f5;
}


/* BUTTON BAR STYLES */
.extra-actions {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.extra-actions button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* tarpas tarp ikonos ir teksto */
  font-family: inherit;
  transition: all 0.2s ease;
}

.extra-actions svg {
  width: 1em; /* automatiškai prisitaiko prie teksto dydžio */
  height: 1em;
}

.extra-actions button:hover {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
}


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;
}

.converter {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.scale-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scale-inputs input {
    text-align: center;
}

.scale-inputs span {
    font-size: 18px;
}

.formula {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.unit-input, .scale-inputs {
    display: flex;
    gap: 10px;
}

input, select {
    padding: 8px;
    font-size: 1rem;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.result-box {
  margin-top: 20px;
  border-radius: 8px;
}

#result {
  font-size: 20px;
  color: var(--primary-color, #2E5BFF);
  margin: 5px 0;
}

.result {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.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;
}

footer {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 30px;
}

@media (max-width: 550px) {
    .unit-input, .scale-inputs {
        flex-direction: column;
    }
}