/**
 * İşitme Farkındalığı Platformu - Ana Stil Dosyası
 * Dark, futuristik tema - Neon turkuaz ve mor vurgular
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(25, 25, 50, 0.85);
    --bg-card-hover: rgba(35, 35, 70, 0.9);

    --neon-cyan: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-pink: #ff00aa;
    --neon-blue: #0080ff;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4466;

    --shadow-neon: 0 0 20px rgba(0, 245, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(191, 0, 255, 0.2);

    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #1a0a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sayfa Başlığı (Header) */
.page-header {
    width: 100%;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(0, 245, 255, 0.1) 0%, rgba(191, 0, 255, 0.05) 50%, transparent 100%);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    margin-bottom: 10px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.4));
}

.header-text-group {
    text-align: left;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .page-header {
        padding: 15px 15px 12px;
    }

    .header-content {
        gap: 12px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
    }
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(191, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 128, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.header-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.1);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    opacity: 0.8;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.8;
}

.card-small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 245, 255, 0.6);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(191, 0, 255, 0.4);
}

.btn-secondary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(191, 0, 255, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00cc66 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.btn-success:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #cc2244 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 68, 102, 0.4);
}

.btn-danger:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(255, 68, 102, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.btn-lg {
    padding: 20px 60px;
    font-size: 1.2rem;
    border-radius: var(--border-radius-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.btn-group .btn {
    flex: 1;
    min-width: 140px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Radio Buttons Custom */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 245, 255, 0.3);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option .radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-circle {
    border-color: var(--neon-cyan);
    background: var(--neon-cyan);
}

.radio-option input[type="radio"]:checked + .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.radio-option .radio-label {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Alert / Warning Box */
.alert {
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}

/* Progress Bar */
.progress-container {
    margin: 30px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.progress-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.progress-dot.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
}

.progress-dot.completed {
    background: var(--success);
    border-color: var(--success);
}

/* Test Screen */
.test-screen {
    text-align: center;
}

.test-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--neon-cyan);
}

.test-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.test-frequency {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-purple);
    margin: 20px 0;
}

.test-instruction {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}

/* Volume Controls */
.volume-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.volume-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Result Display */
.result-box {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-developer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

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

/* Audio Visualizer */
.audio-indicator {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin: 30px 0;
}

.audio-bar {
    width: 8px;
    background: linear-gradient(to top, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
    transition: height 0.1s ease;
}

.audio-bar.playing {
    animation: audioWave 0.5s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes audioWave {
    0% { height: 15px; }
    100% { height: 50px; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }

    .card {
        padding: 25px 20px;
        border-radius: var(--border-radius);
    }

    .card-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .test-frequency {
        font-size: 2rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .volume-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-text {
        font-size: 0.85rem;
        padding: 15px 20px;
    }

    .card {
        padding: 20px 15px;
    }

    .progress-dots {
        gap: 8px;
    }

    .progress-dot {
        width: 12px;
        height: 12px;
    }
}

/* Accessibility - Focus States */
.btn:focus-visible,
.form-input:focus-visible,
.radio-option:focus-within {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

/* Ear Icons */
.ear-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.ear-icon-large {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.5));
}

.ear-result-box {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(191, 0, 255, 0.15));
}

/* Koklear Intro Box */
.intro-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-box h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.intro-box > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-rules {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.intro-rule {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.intro-rule.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.intro-rule.danger {
    background: rgba(255, 68, 102, 0.1);
    border: 1px solid rgba(255, 68, 102, 0.3);
}

.intro-rule .rule-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.intro-rule.success .rule-icon {
    color: var(--success);
}

.intro-rule.danger .rule-icon {
    color: var(--danger);
}

.intro-rule span:last-child {
    color: var(--text-primary);
    line-height: 1.6;
}

.intro-note {
    color: var(--warning);
    font-size: 0.95rem;
    text-align: center;
    margin-top: 15px;
}

/* Koklear Scale */
.cochlear-scale-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
}

.cochlear-scale {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 80px;
}

.scale-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.scale-section.scale-red-left,
.scale-section.scale-red-right {
    background: linear-gradient(135deg, rgba(255, 68, 102, 0.8), rgba(255, 68, 102, 0.6));
    flex: 0.3;
}

.scale-section.scale-green {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.8), rgba(0, 200, 100, 0.6));
    flex: 0.4;
}

.scale-numbers {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.scale-label {
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.scale-indicator-container {
    position: relative;
    height: 60px;
    margin-top: -10px;
}

.scale-indicator {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.5s ease;
}

.indicator-line {
    width: 4px;
    height: 30px;
    background: var(--neon-cyan);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.indicator-value {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 5px;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.result-classification {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-top: 20px;
}

.result-classification.normal {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.result-classification.warning {
    background: rgba(255, 68, 102, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 68, 102, 0.4);
}

/* Pulse on click animation */
.pulse-on-click:active {
    animation: clickPulse 0.3s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); box-shadow: 0 0 30px var(--success); }
    100% { transform: scale(1); }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Mobile adjustments for scale */
@media (max-width: 480px) {
    .scale-numbers {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }

    .scale-label {
        font-size: 0.6rem;
    }

    .cochlear-scale {
        height: 70px;
    }

    .intro-rule {
        flex-direction: column;
        text-align: center;
    }

    .intro-rule .rule-icon {
        margin-bottom: 5px;
    }
}

/* ==================== KOKLEAR SONUÇ - GÖRSEL SKALA ==================== */

.cochlear-scale-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 25px 20px 60px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Üst Etiketler */
.scale-header {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.scale-header-item {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.scale-header-red {
    flex: 3;
    background: rgba(255, 68, 102, 0.15);
    border: 1px solid rgba(255, 68, 102, 0.4);
    color: #ff4466;
}

.scale-header-green {
    flex: 4;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

/* Renkli Bar */
.scale-bar {
    display: flex;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.scale-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.scale-bar-red-left,
.scale-bar-red-right {
    flex: 3;
    background: linear-gradient(180deg, #ff6b7a 0%, #cc2244 100%);
}

.scale-bar-green {
    flex: 4;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}

.scale-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.scale-number.active {
    background: white;
    color: #0a0a1a;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Gösterge */
.scale-indicator-wrapper {
    position: relative;
    height: 55px;
    margin-top: 8px;
}

.scale-indicator {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    left: 15%;
}

.indicator-arrow {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    animation: arrowPulse 1.5s ease-in-out infinite;
    line-height: 1;
}

@keyframes arrowPulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-cyan);
        transform: translateY(0);
    }
    50% {
        text-shadow: 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
        transform: translateY(-3px);
    }
}

.indicator-badge {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sonuç Kutusu */
.cochlear-result-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cochlear-result-box .result-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.cochlear-result-box .result-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cochlear-result-box .result-desc {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
}

.cochlear-result-box .result-desc.result-normal {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.cochlear-result-box .result-desc.result-warning {
    background: rgba(255, 68, 102, 0.2);
    color: #ff4466;
    border: 2px solid rgba(255, 68, 102, 0.5);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .cochlear-scale-box {
        padding: 20px 15px 55px;
    }

    .scale-header-item {
        font-size: 0.6rem;
        padding: 6px 5px;
    }

    .scale-bar {
        height: 50px;
    }

    .scale-number {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .indicator-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cochlear-result-box .result-desc {
        font-size: 1.1rem;
        padding: 10px 18px;
    }
}

@media (max-width: 400px) {
    .scale-header-item {
        font-size: 0.5rem;
        padding: 5px 3px;
    }

    .scale-number {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        gap: 3px;
    }

    .scale-bar-segment {
        gap: 3px;
    }
}
