@import url('../css/lingo-logo.css');
/* Özel İmleç Stilleri - En Üstte */
* {
    cursor: url('../assets/slimicons/orange-pointer.svg'), auto !important;
}

*[style*="cursor: pointer"], 
*[style*="cursor:pointer"], 
a, 
button, 
input[type="button"], 
input[type="submit"], 
.clickable,
[onclick],
[role="button"] {
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
}

/* Genel sayfa ayarları (Kaldırıldı - Ana CSS'den alınacak) */
/* body stili tamamen kaldırıldı */
body {
  padding-top: 60px !important;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

/* Ana konteyner ayarları (Kaldırıldı - Ana CSS'den alınacak) */
/* .container stili tamamen kaldırıldı */

/* Main stilini ezerek dikey ortalamayı sağla (Kaldırıldı) */
/*
main {
    flex-grow: 0 !important;
    padding-top: 20px !important;
}
*/

#appContainer {
    width: 100%;
    max-width: none;
    padding-left: 15px; /* İçeriğin kenarlara yapışmasını önlemek için */
    padding-right: 15px; /* İçeriğin kenarlara yapışmasını önlemek için */
    box-sizing: border-box; /* Padding'in genişliğe dahil edilmesini sağlar */
    padding-bottom: 50px; /* Değer artırıldı (30px idi) */
}

/* Başlık fontunu zorla uygula */
#appContainer h1,
.freq-page-header h1 {
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0;
    color: #344C64;
}

.checkbox-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    gap: 8px;
    border: 1px solid #e0e0e0;
}

.checkbox-container h5 {
    margin: 0;
    color: #344C64;
    font-weight: 600;
    font-size: 1.05em;
}

.checkbox-container .toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    margin: 0;
    position: relative;
}

.checkbox-container .toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-container .toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95em;
    font-weight: 500;
    color: #555;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
    box-sizing: border-box;
}

.checkbox-container .toggle-option:hover .toggle-button {
    background-color: #e9ecef;
    border-color: #c5d0db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-container .toggle-option input[type="radio"]:checked + .toggle-button {
    background-color: #5a8aab;
    border-color: #344C64;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(90, 138, 171, 0.3);
    transform: translateY(-1px);
}

.checkbox-container .toggle-option input[type="radio"]:checked + .toggle-button:hover {
    background-color: #4a7a9b;
    box-shadow: 0 4px 16px rgba(90, 138, 171, 0.4);
}

/* Özel Aralık Input Container - Hem Frekans hem Desibel için */
.custom-range-inputs {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0 15px 0;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#customRangeInputs {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0 15px 0;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#customDecibelRangeInputs {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0 15px 0;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.display {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#frequency {
    font-size: 1.4em;
    font-weight: bold;
    color: #344C64;
    margin-bottom: 0;
}

#currentDecibel {
    font-size: 1.2em;
    font-weight: 600;
    color: #c0392b;
    margin-top: 0.15rem;
}

#currentDecibel[data-voice-state="waiting"] {
    color: #64748b;
    font-weight: 500;
    font-size: 1.05em;
}
#averageFrequencyDisplay{
    font-size: 1.1em;
    font-weight: normal;
    color: #555;
    margin-bottom: 10px;
}

#feedback {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    min-height: 2.8em; /* Artırıldı: İki satırlık metni kapsa */
    width: 100%;
    box-sizing: border-box;
    /* Renk script tarafından ayarlanıyor */
}

canvas {
    border: 1px solid #c5d0db;
    border-radius: 10px;
    background-color: #ffffff;
    transition: background-color 0.5s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 25px; /* Boşluk ayarlandı */
}
.responsive-canvas {
    width: 100%;
    height: 200px;
    display: block;
}

/* Geniş ekranlar için grafik yüksekliğini artır */
@media (min-width: 992px) {
    .responsive-canvas {
        height:500px;
    }
}

/* Tam Ekran Butonu - Küçük İkon */
.fullscreen-button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.2s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 24px;
    color: #344C64;
}

.fullscreen-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
    box-shadow: none;
}

.fullscreen-button:active {
    transform: translateX(-50%) scale(0.95);
}

.fullscreen-button img {
    display: none; /* İmg kullanmıyoruz artık */
}

/* Tam Ekran Modu - Buton Stili */
.fullscreen-active .fullscreen-button {
    background-color: transparent;
    border-color: transparent;
    color: #344C64; /* Beyaz zemin üzerinde görünmesi için koyu renk */
}

.fullscreen-active .fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Hafif koyu hover efekti */
}

/* Tam ekran modunda container stilleri (.fullscreen-active class'ı için) */
.fullscreen-active {
    background-color: #ffffff !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
}

    /* Tam ekran modunda canvas stilleri (.fullscreen-active class'ı için) */
    .fullscreen-active .responsive-canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        border: none !important;
    }

    /* İki grafik birlikte tam ekran container */
    .charts-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* İki grafik birlikte tam ekran modu */
    .charts-container.both-fullscreen-active {
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: stretch !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        background-color: #ffffff !important;
        gap: 20px !important;
    }

    .charts-container.both-fullscreen-active > div:not(.fullscreen-toolbar):not(.decibel-calibration-collapsible) {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        margin: 0 !important;
        margin-top: 0 !important;
    }

    /* Tam ekranda kalibrasyon ve ayarlar panelini gizle */
    .charts-container.both-fullscreen-active .decibel-calibration-collapsible,
    .charts-container:fullscreen .decibel-calibration-collapsible,
    .charts-container:-webkit-full-screen .decibel-calibration-collapsible,
    .charts-container:-moz-full-screen .decibel-calibration-collapsible,
    .charts-container:-ms-fullscreen .decibel-calibration-collapsible,
    body.body-pseudo-fullscreen .decibel-calibration-collapsible {
        display: none !important;
    }

    .charts-container.both-fullscreen-active > div:first-of-type:not(.fullscreen-toolbar) {
        margin-top: 0 !important;
    }

    .charts-container.both-fullscreen-active > div[style*="margin-top"] {
        margin-top: 0 !important;
    }

    /* Tam ekranda sol üst toolbar: Tam Ekrandan Çık + Analizi Başlat/Durdur, şeffaf arka plan */
    .charts-container.both-fullscreen-active .fullscreen-toolbar {
        display: flex !important;
        flex: 0 0 auto !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 100000 !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 14px 20px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .fullscreen-toolbar .fullscreen-toolbar-btn {
        flex-shrink: 0;
    }

    /* Toolbar sadece ikon butonları – her zaman daire, silik renkli arka plan */
    .fullscreen-toolbar .fullscreen-toolbar-icon-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        aspect-ratio: 1 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        border: 2px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
        flex: 0 0 48px !important;
        overflow: hidden !important;
    }

    /* Tam Ekrandan Çık – silik kırmızı/pembe */
    .fullscreen-toolbar #fullscreenExitInToolbar {
        background: rgba(220, 53, 69, 0.22) !important;
    }
    .fullscreen-toolbar #fullscreenExitInToolbar:hover {
        background: rgba(220, 53, 69, 0.35) !important;
        transform: scale(1.08) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    }

    /* Analizi Başlat/Durdur – silik mavi/yeşil */
    .fullscreen-toolbar #toggleDrawInToolbar {
        background: rgba(23, 162, 184, 0.22) !important;
    }
    .fullscreen-toolbar #toggleDrawInToolbar:hover {
        background: rgba(23, 162, 184, 0.38) !important;
        transform: scale(1.08) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    }

    .fullscreen-toolbar .fullscreen-toolbar-icon-btn:active {
        transform: scale(0.96) !important;
    }

    .fullscreen-toolbar .fullscreen-toolbar-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
    }

    .fullscreen-toolbar .fullscreen-toolbar-icon-btn:disabled .fullscreen-toolbar-icon {
        opacity: 0.5;
    }

    /* Tam ekran açıkken alttaki kontrol butonlarını gizle (toolbar kullanılıyor) */
    body.charts-both-fullscreen .controls-container #fullscreenBothButton,
    body.charts-both-fullscreen .controls-container #toggleDrawButton {
        display: none !important;
    }

    .charts-container.both-fullscreen-active .responsive-canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 8px !important;
        border: 1px solid #c5d0db !important;
    }

/* Tam ekran modunda container ve canvas stilleri */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen {
    background-color: #ffffff;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
}

:fullscreen > *:not(.decibel-calibration-collapsible),
:-webkit-full-screen > *:not(.decibel-calibration-collapsible),
:-moz-full-screen > *:not(.decibel-calibration-collapsible),
:-ms-fullscreen > *:not(.decibel-calibration-collapsible) {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

:fullscreen .responsive-canvas,
:-webkit-full-screen .responsive-canvas,
:-moz-full-screen .responsive-canvas,
:-ms-fullscreen .responsive-canvas {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Tam ekran modunda butonun görünür olması */
:fullscreen .fullscreen-button,
:-webkit-full-screen .fullscreen-button,
:-moz-full-screen .fullscreen-button,
:-ms-fullscreen .fullscreen-button {
    z-index: 9999 !important;
    position: fixed !important;
    top: 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 40px !important;
}

/* Mobil / iOS: Fullscreen API yok; pseudo-fullscreen (position:fixed, tüm viewport) */
.pseudo-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: -webkit-fill-available !important;
    z-index: 99999 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.pseudo-fullscreen .responsive-canvas {
    flex: 1 !important;
    min-height: 0 !important;
}

.pseudo-fullscreen .fullscreen-button {
    z-index: 9999 !important;
}

/* İki grafik birlikte pseudo-fullscreen */
.charts-container.pseudo-fullscreen {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 20px !important;
    overflow: auto !important;
}

.charts-container.pseudo-fullscreen.both-fullscreen-active {
    overflow: hidden !important;
}

/* Tam ekranda kalibrasyon ve ayarlar panelini gizle */
body.charts-both-fullscreen #chartsContainer > .decibel-calibration-collapsible,
#chartsContainer.both-fullscreen-active > .decibel-calibration-collapsible,
#chartsContainer:fullscreen > .decibel-calibration-collapsible,
#chartsContainer:-webkit-full-screen > .decibel-calibration-collapsible,
#chartsContainer:-moz-full-screen > .decibel-calibration-collapsible,
#chartsContainer:-ms-fullscreen > .decibel-calibration-collapsible,
body.body-pseudo-fullscreen #chartsContainer > .decibel-calibration-collapsible {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    flex: 0 0 0 !important;
}

body.body-pseudo-fullscreen {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* İki grafik pseudo-fullscreen'de "Tam Ekrandan Çık" butonu overlay üstünde kalsın */
body.body-both-pseudo-fullscreen #fullscreenBothButton {
    position: fixed !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100000 !important;
}

/* Mobil görünüm için responsive tasarım + dokunma iyileştirmeleri */
.fullscreen-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#fullscreenBothButton.inline-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .fullscreen-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: 8px;
    }
}

@media (max-width: 480px) {
    .fullscreen-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: 6px;
        font-size: 20px;
    }
}

/* Siren İşaretleri */
.siren-indicator {
    position: absolute;
    font-size: 2rem;
    z-index: 10;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.3);
}

.siren-inactive {
    filter: grayscale(100%) opacity(0.3);
    animation: none;
}

.siren-active {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    animation: sirenPulse 0.5s ease-in-out infinite, sirenShake 0.3s ease-in-out infinite;
}

#sirenTopLeft {
    top: -10px;
    left: -10px;
}

#sirenTopRight {
    top: -10px;
    right: -10px;
}

#sirenBottomLeft {
    bottom: 15px;
    left: -10px;
}

#sirenBottomRight {
    bottom: 15px;
    right: -10px;
}

/* Desibel Grafiği Siren İşaretleri */
#decibelSirenTopLeft {
    top: -10px;
    left: -10px;
}

#decibelSirenTopRight {
    top: -10px;
    right: -10px;
}

#decibelSirenBottomLeft {
    bottom: 15px;
    left: -10px;
}

#decibelSirenBottomRight {
    bottom: 15px;
    right: -10px;
}

/* Siren Animasyonları */
@keyframes sirenPulse {
    0%, 100% {
        transform: scale(1);
        filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    }
    50% {
        transform: scale(1.2);
        filter: grayscale(0%) opacity(1) drop-shadow(0 0 20px rgba(255, 0, 0, 1));
    }
}

@keyframes sirenShake {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    25% {
        transform: rotate(5deg) scale(1.1);
    }
    50% {
        transform: rotate(-5deg) scale(1.15);
    }
    75% {
        transform: rotate(5deg) scale(1.1);
    }
}

/* Başlık fontunu zorla uygula */
#appContainer h1,
.freq-page-header h1 {
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0;
    color: #344C64;
}

/* Özel Aralık Input Stilleri - Hem Frekans hem Desibel için */
.custom-range-input {
    flex: 1;
    max-width: 200px;
    min-width: 120px;
    padding: 12px 16px;
    margin: 0;
    border: 2px solid #c5d0db;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #344C64;
    -moz-appearance: textfield;
    appearance: textfield;
}

.custom-range-input:hover {
    border-color: #5a8aab;
    box-shadow: 0 2px 6px rgba(90, 138, 171, 0.15);
}

.custom-range-input:focus {
    border-color: #5a8aab;
    box-shadow: 0 0 0 3px rgba(90, 138, 171, 0.2), 0 2px 6px rgba(90, 138, 171, 0.15);
    outline: none;
    background-color: #ffffff;
    transform: translateY(-1px);
}

.custom-range-input::placeholder {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}

.custom-range-input::-webkit-outer-spin-button,
.custom-range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Eski stil uyumluluğu için */
#customRangeInputs input {
    flex: 1;
    max-width: 200px;
    min-width: 120px;
    padding: 12px 16px;
    margin: 0;
    border: 2px solid #c5d0db;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #344C64;
    -moz-appearance: textfield;
    appearance: textfield;
}

#customRangeInputs input:hover {
    border-color: #5a8aab;
    box-shadow: 0 2px 6px rgba(90, 138, 171, 0.15);
}

#customRangeInputs input:focus {
    border-color: #5a8aab;
    box-shadow: 0 0 0 3px rgba(90, 138, 171, 0.2), 0 2px 6px rgba(90, 138, 171, 0.15);
    outline: none;
    background-color: #ffffff;
    transform: translateY(-1px);
}

#customRangeInputs input::placeholder {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}

#customRangeInputs input::-webkit-outer-spin-button,
#customRangeInputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Desibel input'ları için aynı stiller */
#customDecibelRangeInputs input {
    flex: 1;
    max-width: 200px;
    min-width: 120px;
    padding: 12px 16px;
    margin: 0;
    border: 2px solid #c5d0db;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #344C64;
    -moz-appearance: textfield;
    appearance: textfield;
}

#customDecibelRangeInputs input:hover {
    border-color: #5a8aab;
    box-shadow: 0 2px 6px rgba(90, 138, 171, 0.15);
}

#customDecibelRangeInputs input:focus {
    border-color: #5a8aab;
    box-shadow: 0 0 0 3px rgba(90, 138, 171, 0.2), 0 2px 6px rgba(90, 138, 171, 0.15);
    outline: none;
    background-color: #ffffff;
    transform: translateY(-1px);
}

#customDecibelRangeInputs input::placeholder {
    color: #999;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}

#customDecibelRangeInputs input::-webkit-outer-spin-button,
#customDecibelRangeInputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.controls-container {
    display: flex;
    justify-content: center;
    gap: 0; /* Boşluk kaldırıldı, butonlar esneyecek */
    margin-top: 25px;
    width: 100%;
}

.controls-container button {
    flex: 1; /* Eşit genişlikte yayıl */
    margin: 0;
    border-radius: 0; /* Kenarları birleşik olsun */
    min-width: 0; /* min-width'i sıfırla */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Gelişmiş geçiş */
}

/* İlk butona sol yuvarlak köşe */
.controls-container button:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Son butona sağ yuvarlak köşe */
.controls-container button:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-right: 0; /* Global stilden gelen sağ boşluğu sıfırla */
}

button {
    background-color: #344C64;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: background-color 0.3s ease, transform 0.1s ease;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:last-child {
    margin-right: 0;
}

button:hover {
    background-color: #5a8aab;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    background-color: #2c3e50;
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Sayfa başlığı --- */
.freq-page-header {
    text-align: center;
    margin-bottom: 1.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.freq-page-subtitle {
    margin: 0.35rem 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5c6b7a;
    font-weight: 400;
}

/* --- Ayarlar paneli --- */
.freq-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 920px;
    margin: 0 auto 1.5rem;
}

.freq-panel-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 4px 18px rgba(52, 76, 100, 0.07);
}

.freq-hygiene-block {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.freq-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.freq-section-header--compact {
    align-items: center;
    margin-bottom: 0.65rem;
}

.freq-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(90, 138, 171, 0.12);
    flex-shrink: 0;
}

.freq-section-icon-img {
    width: 1.1rem;
    height: 1.1rem;
    opacity: 0.85;
}

.freq-section-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #344C64;
    line-height: 1.3;
}

.freq-section-desc {
    margin: 0.2rem 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: #6c7a89;
    line-height: 1.4;
}

.detected-gender-badge {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto;
    max-width: 920px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(90, 138, 171, 0.12);
    border: 1px solid rgba(90, 138, 171, 0.25);
    color: #344C64;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

/* Vokal Hijyen Bölümü Stilleri */
.vocal-hygiene-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Vokal Hijyen Butonu Stilleri */
.vocal-hygiene-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: white !important;
    padding: 0.85rem 1rem;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 0;
    text-align: left;
    box-shadow: none;
}

.vocal-hygiene-btn__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.vocal-hygiene-btn__label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.vocal-hygiene-btn__hint {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.92;
    line-height: 1.25;
}

.vocal-hygiene-btn .button-icon-img {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* Yetişkinler Butonu */
.adult-btn {
    background-color: #007bff !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.adult-btn:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Çocuklar Butonu */
.child-btn {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.child-btn:hover {
    background-color: #e55a2b !important;
    border-color: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

@media (max-width: 600px) {
    button {
        padding: 10px 15px;
        font-size: 13px;
        flex-basis: 45%;
        min-width: 100px;
    }
    .button-container {
        gap: 10px;
    }
    /* Özel Aralık Input Container - Mobil */
    .custom-range-inputs,
    #customRangeInputs,
    #customDecibelRangeInputs {
        width: 100%;
        padding: 12px;
        gap: 10px;
        margin: 15px 0;
        flex-direction: column;
    }
    
    /* Özel Aralık Input - Mobil */
    .custom-range-input,
    #customRangeInputs input,
    #customDecibelRangeInputs input {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 10px 14px;
        font-size: 13px;
    }

    .checkbox-container {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .checkbox-container .toggle-option {
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
    }

    .checkbox-container .toggle-button {
        padding: 10px 8px;
        font-size: 0.85em;
        min-height: 40px;
    }

    .freq-page-subtitle {
        font-size: 0.88rem;
        padding: 0 0.25rem;
    }

    .freq-panel-section {
        padding: 0.85rem 0.75rem;
        border-radius: 12px;
    }

    .toggle-container--grid,
    .toggle-container--decibel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freq-stat-cards {
        grid-template-columns: 1fr;
    }

    .toggle-container label {
        font-size: 0.78rem;
        min-height: 2.5rem;
        padding: 0.45rem 0.35rem;
    }

    .vocal-hygiene-section {
        grid-template-columns: 1fr;
    }

    .vocal-hygiene-btn {
        padding: 0.75rem 0.85rem;
    }

    .vocal-hygiene-btn__hint {
        font-size: 0.74rem;
    }

    .average-line {
        flex-direction: column;
        padding: 0.75rem;
    }

}

.error-message {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.freq-stats-panel {
    flex-direction: column;
    align-items: stretch;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
}

.average-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.average-line {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(52, 76, 100, 0.06);
}

.freq-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.freq-stat-card {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
}

.avg-freq-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1em;
    color: #555;
    line-height: 1.3;
}

.avg-freq-label {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 2px;
}

.avg-freq-value {
    font-weight: 600;
    font-size: 1.1em;
    color: #344C64;
}

.inline-button {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    min-width: 110px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .button-icon-img {
        width: 1rem;
        height: 1rem;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }

#toggleDrawButton {
    background-color: #e74c3c; /* Uyarıcı kırmızı */
}
#toggleDrawButton:hover {
    background-color: #c0392b;
}
#toggleDrawButton:active {
    background-color: #2e4a75;
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#resetButton {
    background-color: #6c757d; /* Nötr gri */
}
#resetButton:hover {
    background-color: #5a6268;
}

#detectedGenderDisplay {
    font-weight: 600;
}

.feedback-container {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    /* margin-top: 10px; Kaldırıldı, gap ile yönetiliyor */
    /* margin-bottom: 15px; Kaldırıldı, gap ile yönetiliyor */
    display: none; /* Gizlendi */
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 140px; /* Sabit yükseklik */
    justify-content: center;
    flex: 1; /* Genişliği paylaştır */
    min-width: 280px; /* Çok küçülmesini engelle */
}

.status-messages { /* Yeni eklenen div için */
    display: flex;
    flex-direction: column;
    align-items: center; /* Metinleri ortala (feedback zaten text-align: center) */
    width: 100%;
    min-height: 3.5em; /* Frekans (1 satır) ve Geri Bildirim (1 satır) için toplam min yükseklik */
}

/* Kullanıcı başlığı — logo ortada, site chrome renkleri (lingo-logo.css ile uyumlu) */
.user-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    box-sizing: border-box;
    background: var(--site-chrome-bg-alpha, rgba(50, 67, 94, 0.98)) !important;
    border-bottom: 1px solid var(--site-chrome-border, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: var(--site-chrome-shadow, 0 2px 8px rgba(0, 0, 0, 0.18));
    color: var(--site-chrome-text, rgba(255, 255, 255, 0.88));
}

.user-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.user-header .logo-container-header {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.user-header .header-logo-img {
    display: block;
    object-position: center;
}

#userEmail {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--site-chrome-text, rgba(255, 255, 255, 0.88)) !important;
    margin: 0;
    max-width: min(220px, 36vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-header .araclarim-back,
.user-header .tool-watermark-btn {
    --tool-watermark-color: #ffffff;
    --araclarim-back-color: #ffffff;
}

/* Mobil için daha az boşluk */
@media (max-width: 768px) {
    body {
        padding-top: 50px !important;
        background-attachment: fixed;
    }
    .user-header {
        padding: 8px 12px;
        height: 56px;
    }
    body {
        padding-top: 56px !important;
    }
    #userEmail {
        font-size: 0.82rem;
        max-width: min(160px, 42vw);
    }
    .status-messages {
        min-height: 6em; /* Mobil görünümde iki satırlık metin için daha fazla yükseklik */
    }

    .freq-settings-panel,
    .freq-stats-panel {
        max-width: 100%;
    }

    .freq-section-title {
        font-size: 0.95rem;
    }

    .freq-section-desc {
        font-size: 0.78rem;
    }

    /* Mobil görünümde Frekans ve Ortalama kutularını sığdırma */
    .feedback-container,
    .average-container {
        padding: 0;
        min-width: 0;
    }

    #frequency {
        font-size: 1.2em;
    }

    .avg-freq-display {
        font-size: 0.9em;
    }

    .freq-stat-cards {
        gap: 0.5rem;
    }

    .inline-button {
        padding: 5px 8px;
        font-size: 11px;
        min-width: auto;
        gap: 4px;
    }
}

    .status-messages {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* --- Splash Screen Modernized --- */
    .splash-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #f6f8fb 0%, #e2e8f0 100%);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    }

    .splash-screen.fade-out {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .splash-content {
        text-align: center;
        animation: splashEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes splashEntrance {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .splash-logo {
        margin-bottom: 20px;
        display: inline-block;
    }

    .splash-logo .logo-circle {
        width: 100px;
        height: 100px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(52, 76, 100, 0.15);
        position: relative;
        overflow: hidden;
    }

    .logo-inner {
        position: relative;
        z-index: 2;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .splash-title {
        margin-bottom: 30px;
    }

    .title-main {
        font-family: 'Oswald', sans-serif;
        font-size: 2.5rem;
        color: #344c64;
        margin: 0 0 10px 0;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .title-subtitle {
        font-size: 1.1rem;
        color: #6b7280;
        margin: 0;
        font-weight: 400;
    }

    .splash-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(52, 76, 100, 0.1);
        border-radius: 50%;
        border-top-color: #344c64;
        animation: spin 1s linear infinite;
    }

    .loading-text {
        font-size: 0.9rem;
        color: #577399;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        animation: pulseText 2s infinite ease-in-out;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    @keyframes pulseText {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

        /* Parçacıklar kaldırıldı - minimal tasarım için */
        .particles {
            display: none;
        }

        /* Animasyonlar */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes backgroundPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        @keyframes logoGradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes logoRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes logoGlow {
            0%, 100% { opacity: 0.2; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(1.1); }
        }

        @keyframes logoIconScale {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        @keyframes logoIconGlow {
            0%, 100% { filter: drop-shadow(0 0 20px rgba(52, 76, 100, 0.4)); }
            50% { filter: drop-shadow(0 0 30px rgba(52, 76, 100, 0.7)); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes logoPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes logoRing {
            0% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.1); opacity: 0.1; }
            100% { transform: scale(1.2); opacity: 0; }
        }

        @keyframes titleGradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes titleGlow {
            from { text-shadow: 0 0 20px rgba(255, 140, 0, 0.5); }
            to { text-shadow: 0 0 30px rgba(255, 140, 0, 0.8); }
        }

        @keyframes subtitleFade {
            from { opacity: 0.7; }
            to { opacity: 1; }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes spinnerGlow {
            0%, 100% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.3); }
            50% { box-shadow: 0 0 30px rgba(255, 140, 0, 0.6); }
        }

        @keyframes loadingPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Parçacık Animasyonları */
        @keyframes particleFloat1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
            25% { transform: translate(20px, -30px) scale(1.2); opacity: 1; }
            50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.8; }
            75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.9; }
        }

        @keyframes particleFloat2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            33% { transform: translate(-25px, 20px) scale(1.3); opacity: 1; }
            66% { transform: translate(15px, -40px) scale(0.7); opacity: 0.7; }
        }

        @keyframes particleFloat3 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            20% { transform: translate(40px, -25px) scale(1.4); opacity: 0.9; }
            40% { transform: translate(-20px, -60px) scale(0.6); opacity: 0.6; }
            60% { transform: translate(25px, 15px) scale(1.1); opacity: 0.8; }
            80% { transform: translate(-35px, -10px) scale(0.9); opacity: 0.7; }
        }

        @keyframes particleFloat4 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
            30% { transform: translate(-30px, -35px) scale(1.2); opacity: 1; }
            60% { transform: translate(20px, -20px) scale(0.8); opacity: 0.5; }
            90% { transform: translate(-15px, 25px) scale(1.1); opacity: 0.8; }
        }

        @keyframes particleFloat5 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
            25% { transform: translate(35px, -15px) scale(1.3); opacity: 0.9; }
            50% { transform: translate(-25px, -45px) scale(0.7); opacity: 0.4; }
            75% { transform: translate(15px, 30px) scale(1.0); opacity: 0.8; }
        }

        @keyframes particleFloat6 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            40% { transform: translate(-20px, -30px) scale(1.1); opacity: 0.8; }
            80% { transform: translate(30px, -10px) scale(0.9); opacity: 0.6; }
        }

        /* Responsive Tasarım */
        @media (max-width: 768px) {
            .splash-content { padding: 0 2rem; }
            .logo-circle { width: 140px; height: 140px; }
            .logo-inner { width: 90px; height: 90px; }
            .logo-icon { width: 3.5rem; height: 3.5rem; }
            .title-main { font-size: 3.2rem; letter-spacing: 1px; }
            .title-subtitle { font-size: 1.1rem; }
            .loading-spinner { width: 45px; height: 45px; }
            .loading-text { font-size: 1rem; }
        }

        @media (max-width: 480px) {
            .splash-content { padding: 0 1rem; }
            .logo-circle { width: 120px; height: 120px; }
            .logo-inner { width: 80px; height: 80px; }
            .logo-icon { width: 3rem; height: 3rem; }
            .title-main { font-size: 2.8rem; letter-spacing: 1px; }
            .title-subtitle { font-size: 1rem; }
            .splash-logo { margin-bottom: 1.5rem; }
            .splash-title { margin-bottom: 1.5rem; }
            .loading-spinner { width: 40px; height: 40px; }
            .loading-text { font-size: 0.9rem; }
        }
   

/* Toggle / Seçim Stilleri */
.selection-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    width: 100%;
}

.freq-panel-section .custom-range-inputs {
    margin: 0.65rem 0 0;
}

.toggle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0.45rem;
    border: 1px solid #e2e8f0;
}

.toggle-container--grid,
.toggle-container--decibel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.4rem;
}

.toggle-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-container label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.45rem;
    cursor: pointer;
    color: #4a5f73;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    line-height: 1.25;
    transition: all 0.2s ease;
    border-radius: 9px;
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #dbe3ec;
    box-sizing: border-box;
}

.toggle-label-main {
    display: block;
    font-weight: 600;
}

.toggle-label-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.toggle-container input[type="radio"]:checked + label {
    color: #ffffff;
    background: linear-gradient(135deg, #5a8aab 0%, #344C64 100%);
    border-color: #344C64;
    box-shadow: 0 3px 10px rgba(52, 76, 100, 0.22);
    transform: translateY(-1px);
}

.toggle-container input[type="radio"]:checked + label .toggle-label-sub {
    opacity: 0.92;
}

.toggle-container label:hover {
    border-color: #5a8aab;
    color: #344C64;
    background: #f8fbff;
}

.toggle-container input[type="radio"]:checked + label:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4a7a9b 0%, #2c3e50 100%);
}

.toggle-container input[type="radio"]:focus-visible + label {
    outline: 2px solid #5a8aab;
    outline-offset: 2px;
}

@media (min-width: 769px) {
    .vocal-hygiene-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desibel kalibrasyon bilgisi — çoklu cihaz */
.decibel-calibration-info {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #5a6c7d;
}

.decibel-calibration-info__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.35rem;
}

.decibel-device-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e8f4fc;
    color: #2c5282;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
}

.decibel-device-badge[data-mode="relative"] {
    background: #fff3cd;
    color: #856404;
}

.decibel-calibration-status {
    font-size: 0.78rem;
    color: #64748b;
}

.decibel-calibration-hint {
    margin: 0;
    font-size: 0.76rem;
    color: #94a3b8;
}

.decibel-calib-controls {
    margin: 0.65rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.decibel-calib-controls__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.decibel-calib-controls__value {
    font-variant-numeric: tabular-nums;
    color: #2c5282;
}

.decibel-calib-controls__slider {
    width: 100%;
    accent-color: #2c5282;
}

.decibel-calib-controls__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.decibel-calib-controls__check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
    cursor: pointer;
}

.decibel-calib-controls__reset {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.76rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.decibel-calib-controls__reset:hover {
    background: #f8fafc;
}

.decibel-calibration-progress {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c5282;
}

/* Desibel grafiği — kalibrasyon geri sayım katmanı */
.decibel-chart-wrap {
    position: relative;
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.decibel-chart-wrap:has(.decibel-calibration-overlay.is-visible) {
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.12);
}

body.decibel-calibrating {
    overflow: hidden;
}

.decibel-calibration-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 0;
    background: rgba(241, 245, 249, 0.45);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease, backdrop-filter 0.32s ease;
    pointer-events: auto;
}

.decibel-calibration-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.decibel-calibration-overlay.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.decibel-calibration-overlay__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: min(100%, 26rem);
    padding: 1.35rem 1.5rem 1.25rem;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 18px 40px rgba(30, 58, 95, 0.14),
        0 2px 8px rgba(30, 58, 95, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: decibel-overlay-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.decibel-calibration-overlay__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.decibel-calibration-overlay__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e4a7a;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.decibel-calibration-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.decibel-calibration-overlay__ring {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.decibel-calibration-collapsible {
    margin-top: 0.5rem;
}

.decibel-calibration-collapsible__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.decibel-calibration-collapsible__toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.decibel-calibration-collapsible__toggle[aria-expanded="true"] {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
    background: #f8fafc;
}

.decibel-calibration-collapsible__chevron {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.decibel-calibration-collapsible__toggle[aria-expanded="true"] .decibel-calibration-collapsible__chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.decibel-calibration-collapsible .decibel-calibration-info {
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.decibel-calibration-collapsible .decibel-calibration-info:not([hidden]) {
    display: block;
}

.decibel-calibration-overlay__ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.decibel-calibration-overlay__ring-bg {
    fill: none;
    stroke: #dbe4ef;
    stroke-width: 8;
}

.decibel-calibration-overlay__ring-progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.12s linear;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.35));
}

.decibel-calibration-overlay__count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1;
    animation: decibel-count-pop 0.35s ease;
}

.decibel-calibration-overlay__count.is-tick {
    animation: decibel-count-pop 0.35s ease;
}

.decibel-calibration-overlay__count.is-done {
    font-size: 1.85rem;
    color: #16a34a;
    animation: decibel-count-done 0.35s ease;
}

.decibel-calibration-overlay__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.decibel-calibration-overlay__subtitle {
    margin: 0;
    max-width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 400;
    color: #5b6b7c;
}

.decibel-calibration-overlay__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 500;
    color: #9a3412;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.decibel-calibration-overlay__notice-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    opacity: 0.9;
}

@keyframes decibel-overlay-enter {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes decibel-count-pop {
    0% { transform: scale(0.7); opacity: 0.4; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes decibel-count-done {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.fullscreen-active .decibel-calibration-overlay,
.pseudo-fullscreen .decibel-calibration-overlay,
:fullscreen .decibel-calibration-overlay,
:-webkit-full-screen .decibel-calibration-overlay {
    border-radius: 0;
}

@media (max-width: 480px) {
    .decibel-calibration-overlay {
        padding: 0.65rem;
    }

    .decibel-calibration-overlay__card {
        gap: 0.7rem;
        padding: 1rem 1rem 0.9rem;
        border-radius: 14px;
    }

    .decibel-calibration-overlay__ring {
        width: 84px;
        height: 84px;
    }

    .decibel-calibration-overlay__count {
        font-size: 1.85rem;
    }

    .decibel-calibration-overlay__title {
        font-size: 0.98rem;
    }

    .decibel-calibration-overlay__subtitle {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .decibel-calibration-overlay__notice {
        font-size: 0.74rem;
        padding: 0.55rem 0.65rem;
    }

    .decibel-calibration-info__row {
        flex-direction: column;
        align-items: flex-start;
    }

    #currentDecibel {
        font-size: 1.05em;
    }
}

/* PDF rapor bölümü */
.freq-pdf-section {
    margin-top: 1.25rem;
}

.freq-pdf-fields {
    margin-bottom: 0.75rem;
}

.freq-pdf-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5f73;
    margin-bottom: 0.35rem;
    font-family: 'Poppins', sans-serif;
}

.freq-pdf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 2.5rem 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #344c64;
    background: #fff;
}

.freq-danisan-input-wrapper {
    position: relative;
}

.freq-danisan-dropdown-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freq-danisan-dropdown-btn.active {
    background: #e2e8f0;
}

.freq-danisan-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(52, 76, 100, 0.12);
    max-height: 200px;
    overflow-y: auto;
}

.freq-danisan-dropdown-menu.show {
    display: block;
}

.freq-danisan-dropdown-item {
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: #344c64;
}

.freq-danisan-dropdown-item:hover {
    background: #f8fafc;
}

.freq-danisan-dropdown-empty {
    padding: 0.65rem;
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
}

.freq-pdf-download-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
}

.freq-pdf-download-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.freq-pdf-btn__loading {
    font-size: 0.9rem;
}
   
