/* --- TEMEL AYARLAR --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
}

/* --- YAPI: HEADER, GÖVDE, SIDEBAR, ANA İÇERİK --- */
.app-header {
    width: 100%;
    height: 60px;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}
.logo-container { display: flex; align-items: center; }
.header-logo { height: 40px; margin-right: 15px; }
.typing-container { font-size: 1.2rem; font-family: 'Roboto Mono', monospace; font-weight: 700; }
.cursor { display: inline-block; background-color: #03DAC6; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { background-color: #03DAC6; } 50% { background-color: transparent; } }

.app-body { display: flex; height: calc(100vh - 60px); }
.sidebar {
    width: 240px;
    background-color: #1e1e1e;
    border-right: 1px solid #333;
    display: flex; /* YENİ EKLENDİ */
    flex-direction: column; /* YENİ EKLENDİ */
    height: 100vh; /* YENİ EKLENDİ: Tam ekran yüksekliği */
}
.main-content { flex-grow: 1; overflow-y: auto; padding: 30px; }

/* --- MENÜ --- */
.nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1; /* Menünün, footer hariç tüm boş alanı doldurmasını sağla */
    overflow-y: auto; /* Eğer elemanlar sığmazsa, sadece bu alanda bir kaydırma çubuğu göster */
}
.nav-item a { display: flex; align-items: center; padding: 15px 20px; color: #BBBBBB; text-decoration: none; font-size: 1rem; transition: background-color 0.3s, color 0.3s; }
.nav-item a:hover { background-color: #2c2c2c; color: #FFFFFF; }
.nav-item.active a { background-color: #03DAC6; color: #121212; font-weight: 600; }
.nav-item a i { margin-right: 15px; width: 20px; text-align: center; }
.nav-item.disabled a { color: #666; cursor: not-allowed; }
.nav-item.disabled a:hover { background-color: transparent; color: #666; }

/* --- GENEL SAYFA YAPISI --- */
.view { display: none; }
.view.active-view { display: block; }
.page-container { max-width: 800px; margin: 0 auto; }
.page-title { color: #03DAC6; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; }
.page-intro { font-size: 1.1rem; color: #BBBBBB; margin-bottom: 40px; }
.footer {
    /* position: sticky; kaldırıldı */
    width: 100%;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #757575;
    flex-shrink: 0; /* Footer'ın küçülmesini engelle */
}
.footer p {
    margin: 0;
    line-height: 1.4;
}

.footer-logo {
    height: 30px; /* Biraz daha belirgin olabilir */
    width: auto;
}
/* --- BİLGİ PANELİ --- */
#info-icon { font-size: 1.8rem; color: #757575; cursor: pointer; transition: color 0.3s ease; }
#info-icon:hover { color: #03DAC6; }
#info-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.97); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0.4s ease; }
#info-panel.hidden { opacity: 0; visibility: hidden; }
#info-content { max-width: 700px; padding: 40px; color: #E0E0E0; line-height: 1.7; position: relative; max-height: 85vh; overflow-y: auto; }
#info-content h2 { font-size: 2.2rem; color: #FFFFFF; margin-bottom: 20px; border-bottom: 2px solid #03DAC6; padding-bottom: 10px; }
#info-content p { font-size: 1.1rem; margin-bottom: 15px; }
#close-button { position: absolute; top: 20px; right: 20px; font-size: 2.5rem; color: #757575; cursor: pointer; transition: color 0.3s ease; }
#close-button:hover { color: #FFFFFF; }

/* --- SİMÜLATÖR --- */
#simulation-container { width: 100%; max-width: 800px; margin: 0 auto; padding: 30px; border: 1px solid #333; border-radius: 8px; background-color: #1a1a1a; }
.sim-title { color: #03DAC6; text-align: center; margin-bottom: 30px; }
.central-display { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #333; }
#result-container { text-align: center; }
#result-container h3 { color: #FFFFFF; font-size: 1.5rem; }
#result-container p { color: #BBBBBB; font-size: 1.1rem; min-height: 50px; }
.factor-category-title { color: #BBBBBB; font-family: 'Roboto Mono', monospace; font-size: 1rem; margin-top: 30px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.factor-slider { margin-bottom: 20px; }
.factor-slider label { display: block; margin-bottom: 10px; color: #E0E0E0; font-family: 'Roboto Mono', monospace; }
.factor-slider span { float: right; color: #03DAC6; font-weight: bold; }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 8px; background: #444; border-radius: 5px; outline: none; opacity: 0.7; transition: opacity .2s; }
input[type="range"]:hover { opacity: 1; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #03DAC6; cursor: pointer; border-radius: 50%; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: #03DAC6; cursor: pointer; border-radius: 50%; }
.progress-bar-container { width: 80px; text-align: center; }
.progress-bar { width: 30px; height: 150px; background-color: #333; border-radius: 5px; margin: 0 auto 10px auto; display: flex; flex-direction: column-reverse; }
.bar-fill { width: 100%; background: linear-gradient(to top, #c93c3c, #03DAC6); border-radius: 5px; transition: height 0.3s ease-in-out; }
.bar-label { font-family: 'Roboto Mono', monospace; font-size: 0.9rem; color: #E0E0E0; }

/* --- GÖSTERGE (GAUGE) --- */
.gauge-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#will-gauge {
    display: block !important;
    width: 250px !important;
    height: 125px !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.final-score-label {
    font-family: 'Roboto Mono', monospace;
    color: #BBBBBB;
    font-size: 0.9rem;
    margin-top: 10px;
}
.gauge-labels { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.gauge-label { position: absolute; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; color: #BBBBBB; }
.label-tepkisel { bottom: 15%; left: 15%; transform: translateX(-50%); }
.label-pragmatik { top: 20%; left: 20%; transform: translateX(-50%); }
.label-etkin { top: 20%; right: 20%; transform: translateX(50%); }
.label-stratejik { bottom: 15%; right: 15%; transform: translateX(50%); }

/* --- KÜTÜPHANE & AYARLAR --- */
.factor-entry { margin-bottom: 30px; }
.factor-entry h4 { font-size: 1.3rem; color: #FFFFFF; margin-bottom: 10px; }
.factor-entry p { line-height: 1.7; }
.factor-section-title { color: #03DAC6; margin-top: 50px; font-size: 1.5rem; }
.attribution-note { background-color: #2a2a2e; border-left: 4px solid #03DAC6; padding: 20px; margin-bottom: 40px; border-radius: 0 8px 8px 0; display: flex; align-items: flex-start; }
.attribution-note i { font-size: 1.5rem; color: #03DAC6; margin-right: 20px; margin-top: 5px; }
.attribution-note div { font-size: 0.95rem; color: #DDDDDD; line-height: 1.6; }
.model-philosophy { background-color: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 25px; margin-bottom: 50px; }
.model-philosophy p, .model-philosophy li { color: #DDDDDD; line-height: 1.7; }
.model-philosophy ul { list-style-type: none; padding-left: 0; }
.model-philosophy li { padding-left: 20px; position: relative; margin-bottom: 10px; }
.model-philosophy li::before { content: '■'; position: absolute; left: 0; color: #03DAC6; font-size: 0.8rem; top: 5px; }
.formula { display: block; background-color: #121212; padding: 15px; border-radius: 5px; font-family: 'Roboto Mono', monospace; color: #03DAC6; text-align: center; margin: 20px 0; font-size: 1.1rem; }
#settings-table { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.settings-row { display: grid; grid-template-columns: 3fr 1fr 1fr; align-items: center; gap: 15px; background-color: #1e1e1e; padding: 10px; border-radius: 5px; }
.settings-row label { font-family: 'Roboto Mono', monospace; }
.settings-row input { width: 100%; background-color: #333; border: 1px solid #555; color: #E0E0E0; padding: 8px; border-radius: 4px; text-align: center; }
.settings-header { font-weight: bold; color: #BBBBBB; padding-bottom: 10px; border-bottom: 1px solid #333; }
.settings-controls { display: flex; gap: 15px; }
.button-primary { background-color: #03DAC6; color: #121212; border: none; padding: 12px 20px; font-size: 1rem; font-weight: bold; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; }
.button-primary:hover { background-color: #30f0d8; }
.button-secondary { background-color: #333; color: #E0E0E0; border: 1px solid #555; padding: 12px 20px; font-size: 1rem; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; }
.button-secondary:hover { background-color: #444; }

/* --- ANKET --- */
#survey-questions-container { margin-top: 40px; }
.survey-question { background-color: #1e1e1e; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 3px solid #03DAC6; }
.survey-question p { font-size: 1.1rem; margin: 0 0 15px 0; }
.likert-scale { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #333; }
.likert-scale label { cursor: pointer; text-align: center; font-size: 0.9rem; color: #BBBBBB; flex-grow: 1; }
.likert-scale input[type="radio"] { display: none; }
.likert-scale span { display: block; margin-bottom: 5px; }
.likert-scale input[type="radio"]:checked + label { color: #03DAC6; font-weight: bold; }

/* --- İRADE RAPORU --- */
#report-container { margin-top: 40px; padding-top: 30px; border-top: 1px solid #444; }
#report-container.hidden { display: none; }
.report-title { color: #03DAC6; text-align: center; font-size: 1.8rem; margin-bottom: 20px; }
.report-archetype { text-align: center; font-size: 1.2rem; color: #DDDDDD; margin-bottom: 30px; }
.report-section { margin-bottom: 25px; }
.report-section h4 { color: #FFFFFF; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.feedback-form { background-color: #1e1e1e; padding: 25px; border-radius: 8px; margin-top: 40px; }
.feedback-form h4 { margin-top: 0; text-align: center; }
.rating-scale { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.rating-scale label { display: block; width: 35px; height: 35px; line-height: 35px; text-align: center; background-color: #333; border: 1px solid #555; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.rating-scale input[type="radio"]:checked + label { background-color: #03DAC6; color: #121212; border-color: #03DAC6; transform: scale(1.1); }
/* --- Takım Sayfası Stilleri --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.team-member-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #03DAC6;
}

.member-photo .placeholder {
    font-size: 2.5rem;
    font-weight: bold;
    color: #03DAC6;
    font-family: 'Roboto Mono', monospace;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 5px 0;
}

.member-role {
    font-size: 0.9rem;
    color: #BBBBBB;
}
/* --- Header Sağ Taraf ve Faz Etiketi Stilleri --- */
.header-right-side {
    display: flex;
    align-items: center;
    gap: 20px; /* Etiket ile ikon arasındaki boşluk */
}

.phase-badge {
    background-color: #5d1a1a; /* Stilimize uygun koyu bir kırmızı */
    color: #f0c9c9; /* Okunaklı, hafif kırmızımsı bir beyaz */
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    border: 1px solid #8B0000; /* Daha belirgin bir çerçeve */
}
/* --- Seyir Defteri (Changelog) Stilleri --- */
.changelog-entry {
    background-color: #1e1e1e;
    border-left: 4px solid #03DAC6;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.entry-title {
    color: #FFFFFF;
    font-size: 1.4rem;
    margin: 0;
}

.entry-date {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #757575;
}

.entry-body ul {
    list-style-type: none;
    padding-left: 0;
}

.entry-body li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: #DDDDDD;
    line-height: 1.6;
}

.entry-body li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #03DAC6;
    font-weight: bold;
    font-size: 1.2rem;
    top: 0;
}
/* --- Güdüsel Yönelim Barı Stilleri --- */
.orientation-container {
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.orientation-bar {
    width: 50%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    position: relative;
}
.orientation-marker {
    width: 16px;
    height: 16px;
    background-color: #03DAC6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-in-out;
}
.orientation-label-left, .orientation-label-right {
    font-size: 0.8rem;
    color: #BBBBBB;
    font-family: 'Roboto Mono', monospace;
}
.orientation-score-label {
    text-align: center;
    font-size: 0.9rem;
    color: #BBBBBB;
    font-family: 'Roboto Mono', monospace;
    margin-top: 5px;
}

/* --- Ayarlar Sayfası Güncellemesi --- */
.settings-row {
    grid-template-columns: 3fr 1fr 1fr 1fr; /* 3 metrik için 4 sütun */
}
.settings-header span {
    text-align: center;
}
/* style.css dosyasının herhangi bir yerine ekleyin */
.hidden {
    display: none !important;
}

/* Rapor alanındaki genel stil düzenlemeleri */
#report-container .page-container {
    background-color: #212121; /* Koyu tema arka planı */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#report-container h3, #report-container h4, #report-container p {
    color: #E0E0E0; /* Açık renk yazı */
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
}

#report-container h3 {
    color: #03DAC6; /* Vurgu rengi */
    border-bottom: 1px solid #424242;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#report-container .report-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 sütunlu düzen */
    gap: 15px;
    margin-top: 20px;
}

#report-container .score-item {
    background-color: #333333;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#report-container .score-item .score-label {
    font-weight: bold;
    color: #BDBDBD;
}

#report-container .score-item .score-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #03DAC6;
}

#report-container .final-score {
    grid-column: span 2; /* İki sütunu kapla */
    background-color: #1a1a1a;
    border: 1px solid #03DAC6;
    padding: 20px;
}

#report-container .final-score .score-value {
    font-size: 1.5rem;
}

#report-container .button-primary, #report-container .button-secondary {
    margin-top: 20px;
}
/* --- Bilgi Paneli Kaydırma Çubuğu Gizleme --- */

/* Chrome, Safari, Edge gibi Webkit tabanlı tarayıcılar için */
#info-content::-webkit-scrollbar {
    display: none;
}

/* Firefox için (standartlara daha uygun yöntem) */
#info-content {
    scrollbar-width: none;
    -ms-overflow-style: none; /* Internet Explorer ve eski Edge için */
}

/* --- Veri Analizi Sayfası Stilleri --- */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card, .chart-card {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
}

.stat-card h3, .chart-card h3 {
    margin-top: 0;
    color: #BBBBBB;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #03DAC6;
    margin: 0;
    text-align: center;
}

.chart-card-pie {
    max-height: 400px;
}
.chart-card-bar {
    grid-column: 1 / -1; /* Bar grafiğinin tam genişlik kaplamasını sağlar */
}
/* --- MOBİL UYUMLULUK (RESPONSIVE) STİLLERİ --- */

/* Mobil menü ikonunu varsayılan olarak gizle */
#mobile-menu-trigger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    color: #BBBBBB;
}

/* Tablet ve telefonlar için (768px ve altı) */
@media (max-width: 768px) {
    
    /* Genel Yapı ve Kenar Çubuğu (Sidebar) */
.sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100% - 60px);
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        /* display: flex ve flex-direction zaten ana kuraldan miras alınır, tekrar yazmaya gerek yok */
    }

    
    .sidebar.open {
        left: 0; /* Menüyü görünür yap */
    }
    
    .main-content {
        padding: 20px; /* Mobil için padding'i azalt */
    }

    #mobile-menu-trigger {
        display: block; /* Hamburger menü ikonunu göster */
    }
    
    .app-body.sidebar-open .main-content {
        margin-left: 260px; /* Menü açıkken içeriği sağa ittir (opsiyonel) */
    }

    /* Header */
    .typing-container {
        display: none; /* Mobil'de daktilo yazısını gizle */
    }

    /* Simülatör Sayfası */
    .central-display {
        flex-direction: column; /* Göstergeleri alt alta sırala */
        gap: 30px;
    }
    
    #simulation-container {
        padding: 20px 15px;
    }

    /* Ayarlar Sayfası */
    .settings-row {
        grid-template-columns: 1fr; /* Ayar satırlarını alt alta sırala */
        gap: 10px;
        padding: 15px;
    }
    .settings-row label {
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }

    /* Analiz ve Takım Sayfası */
    .analysis-grid, .team-grid {
        grid-template-columns: 1fr; /* Kartları tekli sütunda alt alta sırala */
    }
    
    /* Genel Font ve Boşluk Ayarları */
    .page-title {
        font-size: 1.8rem;
    }
    
    #info-content h2 {
        font-size: 1.8rem;
    }
    
    #info-content {
        padding: 20px;
    }
}
/* --- MOBİL İÇİN SABİT BUTON STİLLERİ --- */

@media (max-width: 768px) {
    /* Anket ve Rapor sayfalarına, alttaki butonun içeriği ezmemesi için boşluk ver */
    #survey-questions-container, #report-container {
        padding-bottom: 100px; 
    }

    .sticky-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        padding: 15px;
        box-sizing: border-box;
        border-top: 1px solid #333;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
        z-index: 100;
        display: flex;
        justify-content: center;
    }

    /* .sticky-footer içindeki tüm butonlar için genel kural */
    .sticky-footer .button-primary {
        width: 100%;
        max-width: 400px;
        margin: 0;
        transition: opacity 0.3s ease;
    }

    /* Buton pasifken (disabled) daha soluk ve tıklanamaz görünsün */
    .sticky-footer .button-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}
/* --- Onam Formu Paneli ve İkon Stilleri --- */
#consent-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(18, 18, 18, 0.97);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#consent-panel.hidden { opacity: 0; visibility: hidden; }

#consent-content {
    max-width: 700px; padding: 40px; color: #E0E0E0; line-height: 1.7;
    position: relative; max-height: 85vh; overflow-y: auto;
}
#consent-content h2 { font-size: 1.8rem; color: #FFFFFF; margin-bottom: 20px; border-bottom: 1px solid #03DAC6; padding-bottom: 10px; }
#close-consent-button {
    position: absolute; top: 20px; right: 20px; font-size: 2.5rem;
    color: #757575; cursor: pointer; transition: color 0.3s ease;
}
#close-consent-button:hover { color: #FFFFFF; }

.submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Buton ve ikon arası boşluk */
    margin-top: 20px;
}
.consent-icon {
    font-size: 1.5rem;
    color: #757575;
    cursor: pointer;
    transition: color 0.3s ease;
}
.consent-icon:hover {
    color: #03DAC6;
}