/* General Body & Reset Styles */
body {
    margin: 0;
    font-family: Arial,sans-serif;
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
  line-height: 1.5;
}

* {
    box-sizing: border-box;
}

a {
    color: #0000ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Wrapper for centered content */
.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background-color: #def3f7;
    padding: 8px 0;
 border-bottom: 1px solid #e7e7e7;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #555;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: #333;
    font-size: 14px;
}

.header-nav a:hover {
    color: #0000ee;
}

/* Breadcrumb Navigation (For inner pages) */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #e7e7e7;
}

/* Main Content Layout */
.page-container {
    padding-top: 25px; /* Added padding since breadcrumb is gone */
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Main Content (Left Column) */
.main-content h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: normal;
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.section-title {
    font-size: 22px;
    font-weight: normal;
    margin: 40px 0 20px 0;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 8px;
}

/* === Homepage Specific Styles === */

.tool-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.tool-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 25px 15px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-radius: 4px;
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.tool-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-decoration: none;
}

.featured-articles ul {
    list-style-type: '› '; /* Simple custom bullet */
    padding-left: 20px;
    margin: 0;
}

.featured-articles li {
    padding: 5px 0;
    font-size: 15px;
}

/* === Styles from About Page (For reference) === */

.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 70px;
    line-height: 1.1;
    color: #000;
}

.tool-result {
    background-color: #808080;
    min-height: 300px;
    padding: 20px;
}

.info-blog {
    margin-top: 30px;
    min-height: 300px;
}

/* Sidebar (Right Column) */

.sidebar-section {
    margin-bottom: 25px;
    border: 1px solid #e7e7e7;
    border-radius: 4px; /* A little softer */
    overflow: hidden; /* Ensures the background of h3 conforms to the border-radius */
}

.sidebar-section h3 {
    background-color: #f5f5f5; /* A very light grey */
    font-size: 14px; /* A bit more readable */
    padding: 10px 15px;
    margin: 0;
    font-weight: 600; /* Bolder but not full bold */
    color: #333;
}

.sidebar-section ul {
    list-style-type: none;
    padding: 8px 0; /* Give it some vertical breathing room */
    margin: 0;
    font-size: 14px;
}

.sidebar-section li {
    padding: 0; /* Remove padding from li, move to the 'a' tag */
}

.sidebar-section li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    transition: all 0.2s ease; /* Smooth transition for multiple properties */
}

.sidebar-section li a:hover {
    background-color: #def3f7; /* Use the header's highlight color */
    color: #000;
    text-decoration: none;
    padding-left: 20px; /* Add a subtle indent on hover */
}

/* Footer Styles */
.site-footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.footer-nav {
    margin-bottom: 15px;
}

.footer-nav a,
.footer-bottom a {
    color: #333;
    margin: 0 5px;
}

.footer-nav a:hover,
.footer-bottom a:hover {
    color: #0000ee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .placeholder, .ads {
        font-size: 48px;
        min-height: 200px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .placeholder, .ads {
        font-size: 36px;
    }
    
    .footer-nav a,
    .footer-bottom a {
        margin: 0 3px;
    }

    .footer-nav {
        line-height: 1.8;
    }
    
    .tool-category-grid {
        grid-template-columns: 1fr; /* Stack tool cards on very small screens */
    }
}




.gdpr-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 960px;
  margin: auto;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 20px;
  z-index: 9999;
  display: none;
  font-family: Arial, sans-serif;
}

.gdpr-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.gdpr-box p {
  flex: 1 1 60%;
  margin: 0;
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
}

.gdpr-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gdpr-buttons button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.gdpr-buttons button:first-of-type {
  background-color: #007bff;
  color: white;
}

.gdpr-buttons button:first-of-type:hover {
  background-color: #0069d9;
}

.gdpr-buttons button:nth-of-type(2) {
  background-color: #e0e0e0;
  color: #333;
}

.gdpr-buttons button:nth-of-type(2):hover {
  background-color: #d5d5d5;
}

.gdpr-buttons a {
  align-self: center;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.gdpr-buttons a:hover {
  text-decoration: underline;
}






  .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .feature-card {
            background-color: #fff;
            border: 1px solid #e7e7e7;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .feature-card h3 {
            margin-top: 0;
            font-size: 1.2em;
        }












        
    .calculator {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      width: auto;
      padding: 20px;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin: 0 auto;
      margin-top: 50px;
      margin-bottom: 50px;
    }

    .screen {
      width: 100%;
      height: 60px;
      background: #222;
      color: #fff;
      font-size: 24px;
      text-align: right;
      padding: 10px;
      border-radius: 8px;
      margin-bottom: 15px;
      box-sizing: border-box;
    }

    .buttons {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    button {
      padding: 20px;
      font-size: 18px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    button:hover {
      background: #e0e0e0;
    }

    .operator {
      background: #ff9f43;
      color: #fff;
    }

    .clear {
      background: #ff6b6b;
      color: #fff;
    }

    .equal {
      background: #1dd1a1;
      color: #fff;
      grid-column: span 2;
    }




    .hero-section {
      background: linear-gradient(to right, #4facfe, #31b3b9);
      color: rgb(255, 252, 252);
      padding: 60px 20px;
      text-align: center;
      animation: fadeIn 1s ease-in-out;
    }

    .hero-section h1 {
      font-size: 2.5em;
      margin-bottom: 10px;
    }

    .hero-section p {
      font-size: 1.2em;
      max-width: 700px;
      margin: auto;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      padding: 40px 20px;
      background-color: #ffffff;
    }

    .feature-box {
      background: #fff;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s ease;
    }

    .feature-box:hover {
      transform: translateY(-5px);
    }

    .feature-icon {
      font-size: 40px;
      margin-bottom: 15px;
      color: #00bcd4;
    }

    .feature-box h3 {
      margin: 10px 0;
    }

    .feature-box p {
      font-size: 0.95em;
      color: #555;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }



/* === Tool Specific Styles === */
.tool-list-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #def3f7; /* Using your header color for a branded touch */
}

.tool-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns layout */
    gap: 12px;
}

.tool-link-list li a {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    padding: 12px 15px;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.tool-link-list li a:hover {
    text-decoration: none;
    background-color: #eef9fc;
    border-color: #cce9ef;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.07);
}

.featured-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 2rem 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

/* Tablet & Large Phones */
@media (max-width: 768px) {
    .header-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .main-content h1 {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 20px;
    }

    .ads {
        height: 250px;
        min-height: auto;
        font-size: 48px;
    }
    
    .gdpr-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .gdpr-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content h1 {
        font-size: 24px;
    }

    .tool-category-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        line-height: 1.8;
    }

    .footer-nav a,
    .footer-bottom a {
        margin: 0 3px;
    }
}




/* === Blog List Page Styles === */
.blog-post-summary {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e7e7e7;
}

.blog-post-summary:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post-summary h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 5px;
}

.blog-post-summary h2 a {
    color: #333;
    text-decoration: none;
}
.blog-post-summary h2 a:hover {
    color: #0000ee;
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.read-more-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.read-more-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Tablet & Large Phones */
@media (max-width: 768px) {
    .blog-post-summary h2 {
        font-size: 22px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .blog-post-summary h2 {
        font-size: 20px;
        line-height: 1.3;
    }
}



/* === BMI Calculator Styles === */
:root {
    --primary-bg: #f4f7f9;
    --secondary-bg: #ffffff;
    --primary-text: #333;
    --secondary-text: #555;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --border-color: #e1e8ed;
    --error-color: #d9534f;
    --undervikt: #3498db;
    --normalvikt: #2ecc71;
    --overvikt: #f1c40f;
    --fetma: #e74c3c;
}

.bmi-kalkylator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--primary-bg);
    border-radius: 12px;
    box-sizing: border-box;
}

.kalkylator-panel {
    flex: 1;
    min-width: 300px;
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.input-panel fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.input-panel legend {
    font-weight: 600;
    color: var(--accent-color);
    padding: 0 0.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.slider-group .slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.slider-group input[type="range"]:hover::-webkit-slider-thumb {
    background: var(--accent-hover);
}
.slider-group input[type="range"]:hover::-moz-range-thumb {
    background: var(--accent-hover);
}

.slider-group input[type="number"] {
    width: 80px;
    text-align: center;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}

.tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--secondary-text);
    font-style: normal;
    font-size: 12px;
    font-weight: bold;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: var(--primary-text);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.cta-button {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

.cta-button:active {
    transform: translateY(1px);
}

.result-panel {
    display: none; /* Initially hidden */
}

.result-main {
    text-align: center;
    margin-bottom: 1.5rem;
}
.result-main p {
    margin: 0 0 0.25rem 0;
    color: var(--secondary-text);
    font-size: 1.1rem;
}
.bmi-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-text);
    transition: color 0.3s;
}
.bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    color: white;
    background-color: var(--secondary-text);
    transition: background-color 0.3s;
}

.bmi-gauge {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.gauge-bar {
    display: flex;
    width: 100%;
    height: 25px;
    border-radius: 12.5px;
    overflow: hidden;
}
.gauge-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--color);
}
.gauge-section:nth-child(1) { width: 21.25%; } /* Under 18.5 -> (18.5-15)/16.5 = ~21.25% */
.gauge-section:nth-child(2) { width: 39.4%; } /* 18.5-24.9 -> (24.9-18.5)/16.5 = ~38.7% */
.gauge-section:nth-child(3) { width: 30.3%; } /* 25-29.9 -> (29.9-25)/16.5 = ~30.3% */
.gauge-section:nth-child(4) { width: 9.05%; } /* 30-31.5 -> (31.5-30)/16.5 = ~9%*/

.gauge-indicator {
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--primary-text);
    transition: left 0.5s ease-out;
}

.detailed-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-box {
    background-color: var(--primary-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.info-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--primary-text);
}
.info-box p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
}
.info-box small {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    display: none;
}

@media (max-width: 860px) {
    .bmi-kalkylator-container {
        flex-direction: column;
        padding: 1rem;
    }
    .detailed-results {
        grid-template-columns: 1fr;
    }
}


/* === BMI Calculator Styles === */
:root {
    --primary-bg: #f4f7f9;
    --secondary-bg: #ffffff;
    --primary-text: #333;
    --secondary-text: #555;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --border-color: #e1e8ed;
    --error-color: #d9534f;
    --undervikt: #3498db;
    --normalvikt: #2ecc71;
    --overvikt: #f1c40f;
    --fetma: #e74c3c;
}

.bmi-kalkylator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--primary-bg);
    border-radius: 12px;
    box-sizing: border-box;
}

.kalkylator-panel {
    flex: 1;
    min-width: 300px;
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.input-panel fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.input-panel legend {
    font-weight: 600;
    color: var(--accent-color);
    padding: 0 0.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.slider-group .slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.slider-group input[type="range"]:hover::-webkit-slider-thumb {
    background: var(--accent-hover);
}
.slider-group input[type="range"]:hover::-moz-range-thumb {
    background: var(--accent-hover);
}

.slider-group input[type="number"] {
    width: 80px;
    text-align: center;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}

.tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--secondary-text);
    font-style: normal;
    font-size: 12px;
    font-weight: bold;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: var(--primary-text);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.cta-button {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

.cta-button:active {
    transform: translateY(1px);
}

.result-panel {
    display: none; /* Initially hidden */
}

.result-main {
    text-align: center;
    margin-bottom: 1.5rem;
}
.result-main p {
    margin: 0 0 0.25rem 0;
    color: var(--secondary-text);
    font-size: 1.1rem;
}
.bmi-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-text);
    transition: color 0.3s;
}
.bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    color: white;
    background-color: var(--secondary-text);
    transition: background-color 0.3s;
}

.bmi-gauge {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.gauge-bar {
    display: flex;
    width: 100%;
    height: 25px;
    border-radius: 12.5px;
    overflow: hidden;
}
.gauge-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--color);
}
.gauge-section:nth-child(1) { width: 21.25%; } /* Under 18.5 -> (18.5-15)/16.5 = ~21.25% */
.gauge-section:nth-child(2) { width: 39.4%; } /* 18.5-24.9 -> (24.9-18.5)/16.5 = ~38.7% */
.gauge-section:nth-child(3) { width: 30.3%; } /* 25-29.9 -> (29.9-25)/16.5 = ~30.3% */
.gauge-section:nth-child(4) { width: 9.05%; } /* 30-31.5 -> (31.5-30)/16.5 = ~9%*/

.gauge-indicator {
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--primary-text);
    transition: left 0.5s ease-out;
}

.detailed-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-box {
    background-color: var(--primary-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.info-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--primary-text);
}
.info-box p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
}
.info-box small {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    display: none;
}

@media (max-width: 860px) {
    .bmi-kalkylator-container {
        flex-direction: column;
        padding: 1rem;
    }
    .detailed-results {
        grid-template-columns: 1fr;
    }
}

