﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #6c757d;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #212529;
    --border-color: #dee2e6;
    --border-radius: 0.5rem;
}

html {
    overflow-x: hidden; /* Yatay kaydırmayı engeller */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    max-width: 960px;
   /* padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;*/
}

/* ==========================================================================
   Layout (Header, Main, Footer)
   ========================================================================== */
.navbar {
    background-color: #fff;
    /* Yüksekliği azaltmak için padding düşürüldü */
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    /* Yüksekliğe uyum için font boyutu küçültüldü */
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand:hover {
        text-decoration: none;
    }

main {
    flex-grow: 1;
    padding: 2rem 0;
}

.footer {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    text-align: center;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

    .footer-links a {
        color: #fff;
        margin: 0 0.5rem;
    }

/* ==========================================================================
   Hero Section & Cards
   ========================================================================== */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 1rem;
    transition: padding 0.3s ease;
}

    .hero-section h1 {
        margin-bottom: 0.5rem;
        transition: font-size 0.3s ease;
    }

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calculator-card, .result-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: var(--primary-color);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    }

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    margin-right: 0.5rem;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #1e40af;
        border-color: #1d4ed8;
        text-decoration: none;
    }

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
        text-decoration: none;
    }

/* ==========================================================================
   Multi-Step Form & New Features
   ========================================================================== */

/* Hero Section Compact State */
.hero-section.compact {
    padding: 1rem 0;
    text-align: center;
    display:none;
}

    .hero-section.compact h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
        display: none;
    }

    .hero-section.compact .hero-subtitle {
        display: none;
    }

/* Start View Styles */
#start-container {
    text-align: center;
    padding: 1rem 0;
}

    #start-container .btn-start {
        font-size: 1.25rem;
        padding: 0.8rem 2rem;
    }

/* Utility class to hide elements */
.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 2rem;
    width: 100%;
}

.progress-bar {
    display: flex;
    height: 8px;
    background-color: var(--gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-step {
    flex: 1;
    background-color: var(--gray);
    transition: background-color 0.4s ease;
}

    .progress-bar-step.active {
        background-color: var(--primary-color);
    }

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

    .form-step.active {
        display: block;
    }

/* Form Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    align-items: stretch;
    gap: 1rem;
}

    .form-navigation .btn {
        min-width: 120px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-grow: 1;
    }

    .form-navigation .next-btn:only-child {
        flex-grow: 0;
        margin-left: auto; /* Push to the right */
    }



/* Result Section */
.result-section .email-prompt {
    margin-top: 2rem;
}

.dose-result {
    text-align: center;
    margin: 2rem 0;
}

.dose-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dose-unit {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    color: var(--dark-gray);
}

.calculation-breakdown {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.message {
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .message .success {
        color: #0f5132;
        background-color: #d1e7dd;
        border: 1px solid #badbcc;
    }

    .message .error {
        color: #842029;
        background-color: #f8d7da;
        border: 1px solid #f5c2c7;
    }

.start-over-btn {
    margin-top: 1rem;
    display: inline-block;
    width: 100%;
    text-align: center;
}



/* GÜNCELLEME: PWA Yükleme Banner Stili (Açık Tema) */
.pwa-install-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8f9fa; /* Bootstrap Açık Gri */
    color: #212529; /* Bootstrap Koyu Metin */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #dee2e6; /* İnce bir çerçeve */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pwa-install-banner.show {
    opacity: 1;
    visibility: visible;
}

.pwa-install-banner .btn-close {
    /* Artık özel bir SVG'ye gerek yok, Bootstrap'in varsayılanı kullanılacak */
    margin-left: 1rem;
}

/* infografik section **/
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
    color: #2E294E;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    height: 320px;
    max-height: 350px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
        max-height: 400px;
    }
}

.card {
    background-color: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 2rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px dashed;
    height: 100%;
}

.flow-arrow {
    font-size: 3rem;
    line-height: 1;
    font-weight: bold;
    color: #9CA3AF;
}

.section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #6B7280;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}
/* Language Switcher */
/* Dil seçici için basit stil */
.language-switcher-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f9fa;
}



.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* display: flex;
    align-items: center;
    gap: 0.5rem;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0.5rem auto 0.5rem;
    padding: 0.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);*/
}
.language-dropdown {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    top: 150%; /* İkonun biraz altına */
    right: 0;
    background-color: #ffffff;
    border-radius: var(--border-radius, 0.5rem);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color, #dee2e6);
    z-index: 1100; /* Diğer elementlerin üzerinde olmalı */
    min-width: 150px;
    padding: 0.5rem 0;
    animation: fadeIn 0.2s ease-out;
}
    .language-dropdown.show {
        display: block; /* Menüyü görünür yapacak sınıf */
    }

    .language-dropdown a {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--text-color, #212529);
        text-decoration: none;
        white-space: nowrap;
    }

        .language-dropdown a:hover {
            background-color: var(--light-gray, #f8f9fa);
            text-decoration: none;
        }
/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .language-switcher label {
        margin-right: 0.5rem;
        font-weight: 500;
    }

    .language-switcher select {
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        border: 1px solid #ced4da;
    }

#lang-select {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #D1D5DB;
    background-color: #F9FAFB;
}

/* İkon için yeni stiller ve hover efekti */
#language-icon-trigger {
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box; /* Padding'in boyutu içeride kalmasını sağlar */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    #language-icon-trigger:hover {
        background-color: var(--border-color);
        transform: scale(1.1);
    }