/* Erişilebilirlik Menüsü Stilleri */

/* Font Awesome İkonları için Özel Stiller */
.accessibility-toggle i,
.accessibility-close i,
.accessibility-button i,
.accessibility-section-title i,
.reset-button i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.accessibility-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
    z-index: 9998;
    border: none;
    color: #ffffff !important;
    font-size: 26px;
    filter: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.accessibility-toggle i {
    color: #ffffff !important;
    font-size: 28px !important;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.6);
}

.accessibility-toggle.active {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.accessibility-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
    filter: none !important;
}

.accessibility-panel.active {
    display: flex;
}

.accessibility-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.accessibility-close {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.accessibility-close i {
    color: #ffffff !important;
    font-size: 18px !important;
}

.accessibility-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.accessibility-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.accessibility-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.accessibility-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.accessibility-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-section-title i {
    color: #28a745 !important;
    font-size: 16px !important;
}

.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.accessibility-option-label {
    font-size: 14px;
    color: #495057;
    flex: 1;
}

.accessibility-button {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    color: #212529;
}

.accessibility-button:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
}

.accessibility-button.active {
    background: #28a745;
    color: #ffffff !important;
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.accessibility-button i {
    color: inherit !important;
    font-size: 16px !important;
}

.accessibility-button.active i {
    color: #ffffff !important;
}

.accessibility-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
}

.accessibility-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28a745;
    cursor: pointer;
}

.accessibility-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28a745;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

.reset-button {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.reset-button i {
    color: #ffffff !important;
    font-size: 14px !important;
    margin-right: 8px !important;
}

.reset-button:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Erişilebilirlik Özellikleri - Uygulanan Stiller */

/* Sadece Chatbot butonunu ve Font Awesome ikonlarını koruma */
.chatbot-toggle,
.chatbot-toggle *,
.chatbot-container,
.chatbot-container * {
    letter-spacing: inherit !important;
}

/* Sidebar başlığını büyütme */
.sidebar-header h4 {
    font-size: 28px !important;
    font-weight: bold !important;
}

.sidebar-header h4 i {
    font-size: 32px !important;
    margin-right: 10px !important;
}

.sidebar-header small {
    font-size: 14px !important;
}

/* Font Awesome ikonlarının font-family'sini koru */
.fas,
.far,
.fab,
.fal,
.fad,
.fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Yazı Tipi Boyutu - Sadece kullanıcı değiştirdiğinde uygula */
body.text-size-small:not(.text-size-default) *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { font-size: 14px !important; }
body.text-size-large *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { font-size: 18px !important; }
body.text-size-xlarge *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { font-size: 20px !important; }

/* Başlık Vurgulama */
body.highlight-titles h1,
body.highlight-titles h2,
body.highlight-titles h3,
body.highlight-titles h4,
body.highlight-titles h5,
body.highlight-titles h6 {
    background: #fff3cd !important;
    padding: 5px 10px !important;
    border-left: 4px solid #ffc107 !important;
}

/* Bağlantı Vurgulama */
body.highlight-links a {
    background: #d1ecf1 !important;
    padding: 2px 6px !important;
    border-bottom: 2px solid #0dcaf0 !important;
    text-decoration: underline !important;
}

/* Disleksi Dostu Yazı Tipi */
body.dyslexia-font *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

/* Font Awesome ikonlarının font-family'sini her zaman koru */
body.dyslexia-font .fas,
body.dyslexia-font .far,
body.dyslexia-font .fab,
body.dyslexia-font .fal,
body.dyslexia-font .fad,
body.dyslexia-font .fa,
body.dyslexia-font i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Harf Aralığı */
body.letter-spacing-normal *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { letter-spacing: normal !important; }
body.letter-spacing-wide *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { letter-spacing: 0.05em !important; }
body.letter-spacing-wider *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { letter-spacing: 0.1em !important; }
body.letter-spacing-widest *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { letter-spacing: 0.15em !important; }

/* Satır Yüksekliği */
body.line-height-normal *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { line-height: 1.5 !important; }
body.line-height-relaxed *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { line-height: 1.75 !important; }
body.line-height-loose *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa"]) { line-height: 2 !important; }

/* Yazı Tipi Kalınlığı - Sadece kullanıcı değiştirdiğinde uygula, başlıkları ve vurguları koru */
body.font-weight-medium p:not(.chatbot-container p),
body.font-weight-medium span:not(.chatbot-container span),
body.font-weight-medium div:not(.chatbot-container div):not(.kpi-value):not(.stat-number):not(.detail-stat-value),
body.font-weight-medium li:not(.chatbot-container li),
body.font-weight-medium td:not(.chatbot-container td),
body.font-weight-medium a:not(.chatbot-container a) {
    font-weight: 500 !important;
}

body.font-weight-bold p:not(.chatbot-container p),
body.font-weight-bold span:not(.chatbot-container span),
body.font-weight-bold div:not(.chatbot-container div):not(.kpi-value):not(.stat-number):not(.detail-stat-value),
body.font-weight-bold li:not(.chatbot-container li),
body.font-weight-bold td:not(.chatbot-container td),
body.font-weight-bold a:not(.chatbot-container a) {
    font-weight: 700 !important;
}

/* Koyu Kontrast */
body.dark-contrast {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

body.dark-contrast *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.accessibility-toggle):not(.accessibility-toggle *):not(.accessibility-panel):not(.accessibility-panel *):not(.reading-guide-overlay):not(.reading-guide-overlay *) {
    background-color: #1a1a1a !important;
    background-image: none !important;
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

body.dark-contrast .sidebar {
    background: #1a1a1a !important;
    background-image: none !important;
}

body.dark-contrast a:not(.chatbot-container a) { color: #4d9fff !important; }
body.dark-contrast .btn:not(.chatbot-container .btn) { background: #333 !important; color: #fff !important; }

/* Açık Kontrast */
body.light-contrast {
    background: #ffffff !important;
    color: #000000 !important;
}

body.light-contrast *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.accessibility-toggle):not(.accessibility-toggle *):not(.accessibility-panel):not(.accessibility-panel *):not(.reading-guide-overlay):not(.reading-guide-overlay *) {
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
    color: #000000 !important;
}

body.light-contrast .sidebar {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

body.light-contrast .sidebar * {
    color: #000000 !important;
}

/* Yüksek Kontrast */
body.high-contrast {
    background: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast *:not(.chatbot-toggle):not(.chatbot-toggle *):not(.chatbot-container):not(.chatbot-container *):not(.accessibility-toggle):not(.accessibility-toggle *):not(.accessibility-panel):not(.accessibility-panel *):not(.reading-guide-overlay):not(.reading-guide-overlay *) {
    background-color: #000000 !important;
    background-image: none !important;
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.high-contrast .sidebar {
    background: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
}

body.high-contrast .sidebar * {
    color: #ffff00 !important;
}

body.high-contrast a:not(.chatbot-container a) { color: #00ff00 !important; }

/* Yüksek Doygunluk - Kontrast modlarından bağımsız */
body.high-saturation:not(.dark-contrast):not(.light-contrast):not(.high-contrast) > *:not(.accessibility-toggle):not(.accessibility-panel):not(.reading-guide-overlay) {
    filter: saturate(200%) !important;
}

/* Düşük Doygunluk - Kontrast modlarından bağımsız */
body.low-saturation:not(.dark-contrast):not(.light-contrast):not(.high-contrast) > *:not(.accessibility-toggle):not(.accessibility-panel):not(.reading-guide-overlay) {
    filter: saturate(50%) !important;
}

/* Tek Renkli (Grayscale) - Kontrast modlarından bağımsız */
body.monochrome:not(.dark-contrast):not(.light-contrast):not(.high-contrast) > *:not(.accessibility-toggle):not(.accessibility-panel):not(.reading-guide-overlay) {
    filter: grayscale(100%) !important;
}

/* Okuma Rehberi - Geliştirilmiş Versiyon */
.reading-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    display: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.8) calc(var(--guide-position, 50%) - 60px),
        transparent calc(var(--guide-position, 50%) - 60px),
        transparent calc(var(--guide-position, 50%) + 60px),
        rgba(0, 0, 0, 0.8) calc(var(--guide-position, 50%) + 60px),
        rgba(0, 0, 0, 0.8) 100%
    );
    filter: none !important;
}

body.reading-guide-active .reading-guide-overlay {
    display: block;
}

.reading-guide-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 10001;
    display: none;
    background: transparent;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    filter: none !important;
}

body.reading-guide-active .reading-guide-line {
    display: block;
}

/* Animasyonları Durdur */
body.stop-animations *,
body.stop-animations *::before,
body.stop-animations *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
}

/* Büyük İmleç - Daha büyük versiyon */
body.large-cursor,
body.large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 16 16"><path d="M2 2 L2 14 L6 10 L8 14 L10 13 L8 9 L12 9 Z" fill="white" stroke="black" stroke-width="0.5"/></svg>') 4 4, auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-panel {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 100px;
        max-height: 500px;
    }
    
    .accessibility-toggle {
        right: 15px;
        bottom: 30px;
    }
}

/* Google Translate Widget Stilleri */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget img {
    display: none !important;
}

.goog-te-combo {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    color: #495057;
}

.goog-te-combo:hover {
    border-color: #28a745;
    background: #f8f9fa;
}

.goog-te-combo:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

body {
    top: 0 !important;
}

#google_translate_element {
    width: 100%;
}