#petition-output {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 0.2px;
}

.animate-fadeSlideDown {
    animation: fadeSlideDown 0.3s ease forwards;
}

@keyframes fadeSlideDown {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Tasarımınızdaki tüm harika stiller burada yer alıyor... */
body { font-family: 'Lato', sans-serif; background-color: #1A1A1A; color: #EAEAEA; }
.font-serif { font-family: 'Playfair Display', serif; }
.header-border { border-bottom: 1px solid #D9A340; }

/* Hızlı Arama Toggle Animasyonu */
#quick-search-chevron {
    transition: transform 0.3s ease;
}
#quick-search-chevron.rotate-180 {
    transform: rotate(180deg);
}

/* Hızlı Arama Form Stilleri */
#quick-search-form-container {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-container { border: 1px solid #444444; background-color: #262626; transition: all 0.2s ease-in-out; }
.search-container:focus-within { box-shadow: 0 0 0 3px rgba(217, 163, 64, 0.4); border-color: #D9A340; }
.stat-card { border: 1px solid #333333; background-color: #262626; transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: #D9A340; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.result-card { 
    background-color: #262626; 
    border: 2px solid rgba(217, 163, 64, 0.4); 
    border-left-width: 6px; 
    border-left-color: #D9A340; 
    border-radius: 8px; 
    margin-bottom: 1rem; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1);
}
.result-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(217, 163, 64, 0.2); 
    border-color: rgba(217, 163, 64, 0.7);
    /* Keep left border width constant to avoid layout shift */
    border-left-width: 6px;
}
.result-card summary { 
    cursor: pointer; 
    padding: 1rem; 
    outline: none; 
    list-style: none;
}
.result-card summary::-webkit-details-marker { display: none; }
.result-card summary::marker { display: none; }
.result-card-content { padding: 0 1rem 1rem 1rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.7; }
.direct-result-card { padding: 1.75rem; }
.direct-result-card .result-number-box { margin-right: 1rem; }
.direct-result-card .result-card-content { padding: 0 !important; margin-top: 1.5rem; }

/* Mobilde arama sonuçları düzenlemesi */
@media (max-width: 768px) {
    .result-card summary h3 { font-size: 0.875rem; line-height: 1.25rem; }
    .result-card summary .text-xs { font-size: 0.7rem; line-height: 1.1; }
    .score-container { flex-shrink: 0; min-width: 50px; }
    #search-subtitle { max-width: 100% !important; padding: 0 1rem !important; font-size: 1rem !important; line-height: 1.6 !important; word-wrap: break-word; hyphens: auto; }
    .score-progress-bar { width: 45px; }
    .score-text { font-size: 0.65rem; }
    .download-btn { width: 24px; height: 24px; font-size: 0.875rem; }
    /* AI Suggestions Container - Mobil */
    #ai-suggestions-container { margin: 1rem !important; max-width: calc(100vw - 2rem) !important; }
    #ai-suggestions-container > div { padding: 1rem !important; }
    #ai-suggestions-container h3 { font-size: 1.25rem !important; }
    /* Dönen animasyon mobilde ortalama */
    #ai-suggestions-siriwave-container { width: 100% !important; max-width: 200px !important; margin: 0 auto !important; }
    .ai-answer-section { margin: 0.5rem 0 !important; padding: 0.75rem !important; }
    .ai-answer-section h4 { font-size: 0.875rem !important; }
    .ai-answer-section .text-gray-300 { font-size: 0.8rem !important; line-height: 1.4 !important; }
    .ai-suggestion-btn { padding: 0.5rem 0.75rem !important; font-size: 0.8rem !important; }
}
.loader { border: 4px solid #f3f3f3; border-top: 4px solid #D9A340; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 2rem auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* HukukOS Logo Dalgalı Animasyon */
#hukukos-loading-logo,
#hukukos-petition-loading-logo {
    animation: wave 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-10px) scale(1.08);
        opacity: 0.9;
    }
    50% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(-6px) scale(1.04);
        opacity: 0.95;
    }
}
/* Light mode stilleri... */
body.light-mode { background-color: #F8F9FA; color: #2D3748; }
/* Search textarea auto-grow */
.search-container textarea#search-input {
    overflow-y: hidden;
    resize: none;
    min-height: 45px;
    max-height: 200px;
    /* keep input look */
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
    border: none;
    color: #FFFFFF;
}
body.light-mode .search-container textarea#search-input {
    color: #2D3748 !important;
}
body.light-mode .result-card { background-color: #FFFFFF; border: 1px solid #D9A340; border-left-width: 6px; border-left-color: #D9A340; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1); }
body.light-mode .result-card:hover { border: 2px solid #D9A340; border-left-width: 6px; box-shadow: 0 8px 25px rgba(217, 163, 64, 0.2); transform: translateY(-2px); }
.login-input { background-color: #333; border: 1px solid #555; color: #fff; }
.login-input:focus { border-color: #D9A340; box-shadow: 0 0 0 2px rgba(217, 163, 64, 0.3); outline: none; }
body.light-mode .login-input { background-color: #E2E8F0; border-color: #CBD5E0; color: #2D3748; }
#search-input:disabled { cursor: not-allowed; background-color: #333; }
body.light-mode #search-input:disabled { background-color: #E2E8F0; }
body.light-mode .result-card { background-color: #FFFFFF !important; border-color: #D9A340 !important; }
body.light-mode .result-card p,
body.light-mode .result-card strong,
body.light-mode .result-card summary,
body.light-mode .result-card h3 { color: #2D3748 !important; }
body.light-mode .result-card summary span { color: #4A5568 !important; }
body.light-mode .result-card-content { color: #2D3748 !important; }
.theme-toggle-btn { background: rgba(38, 38, 38, 0.8); backdrop-filter: blur(10px); }
.theme-toggle-btn:hover { background: rgba(217, 163, 64, 0.1); transform: scale(1.05); }
body.light-mode #mobile-menu-button { color: #1A1A1A !important; }
body.light-mode #logo-link svg rect:first-child { fill: #FFFFFF !important; }
body.light-mode #logo-link svg text:first-of-type { fill: #1A1A1A !important; }
body.light-mode .theme-toggle-btn { background-color: #FFFFFF !important; border: 1px solid #E2E8F0 !important; }
body.light-mode .theme-toggle-btn:hover { background-color: #F8F9FA !important; border: 1px solid #D9A340 !important; }
body.light-mode .header-border { border-bottom: 1px solid #D9A340; background-color: rgba(248, 249, 250, 0.9) !important; }
body.light-mode nav a { color: #2D3748 !important; }

/* Haklarım Dropdown Panel - Light Mode */
body.light-mode #user-dropdown-panel {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode #user-dropdown-panel h3 {
    color: #2D3748 !important;
}
body.light-mode #user-dropdown-panel .text-gray-300 {
    color: #4A5568 !important;
}
body.light-mode #user-dropdown-panel .text-gray-400 {
    color: #718096 !important;
}
body.light-mode #user-dropdown-panel .text-white {
    color: #2D3748 !important;
}
body.light-mode #user-dropdown-panel .bg-[#333333] {
    background-color: #E2E8F0 !important;
}
body.light-mode #user-dropdown-panel .border-[#444444] {
    border-color: #CBD5E0 !important;
}

/* Haklarım Dropdown Panel - Mobil Uyumluluk */
.user-dropdown-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 20rem;
    background-color: #262626;
    border: 1px solid #444444;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 60;
}

/* Mobil için özel stiller */
@media (max-width: 768px) {
    .user-dropdown-panel {
        position: fixed;
        top: 4rem;
        right: 1rem;
        width: 90vw;
        max-width: 20rem;
        margin-top: 0;
    }
    
    /* Header overflow sorununu çöz */
    header {
        overflow: visible !important;
    }
    
    /* Container overflow sorununu çöz */
    .container {
        overflow: visible !important;
    }
}
body.light-mode nav a:hover { color: #D9A340 !important; }
body.light-mode nav a.text-gray-400 { color: #718096 !important; }
body.light-mode h1 { color: #2D3748 !important; }
body.light-mode h1 .text-gold { color: #D9A340 !important; }
body.light-mode .text-gray-400 { color: #4A5568 !important; }
body.light-mode #search-subtitle .text-white { color: #2D3748 !important; font-weight: 600; }
body.light-mode .search-container { border: 1px solid #CBD5E0; background-color: #FFFFFF; }
body.light-mode .search-container:focus-within { box-shadow: 0 0 0 3px rgba(217, 163, 64, 0.2); border-color: #D9A340; }
body.light-mode #search-input { background-color: #FFFFFF; border-color: #CBD5E0; color: #2D3748; }
body.light-mode #search-input::placeholder { color: #718096; }
body.light-mode #results-page-search-input { background-color: #FFFFFF !important; border-color: #CBD5E0 !important; color: #2D3748 !important; }
body.light-mode #results-page-search-input::placeholder { color: #718096 !important; }
/* Favorites modal search input - light mode */
body.light-mode #favorites-search-input { background-color: #FFFFFF !important; border-color: #CBD5E0 !important; color: #2D3748 !important; }
body.light-mode #favorites-search-input::placeholder { color: #718096 !important; }
body.light-mode #results-page-k-input { background-color: #FFFFFF !important; border-color: #CBD5E0 !important; color: #2D3748 !important; }
body.light-mode #results-page-k-input:focus { border-color: #D9A340 !important; outline: none !important; }
body.light-mode .text-gray-500 { color: #718096 !important; }
body.light-mode .text-gray-500:hover { color: #D9A340 !important; }
body.light-mode .stat-card { border: 1px solid #E2E8F0; background-color: #FFFFFF; }
body.light-mode .stat-card:hover { border-color: #D9A340; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
body.light-mode .stat-card h3 { color: #D9A340 !important; }
body.light-mode .stat-card p.text-3xl { color: #2D3748 !important; }
body.light-mode .stat-card p.text-sm { color: #4A5568 !important; }
body.light-mode #decision-counter { color: #2D3748 !important; }
.modal-card { background-color: #1A1A1A; border: 1px solid #333333; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
body.light-mode .modal-card { background-color: #FFFFFF; border: 1px solid #E2E8F0; }
body.light-mode .modal-card h3 { color: #2D3748 !important; }
body.light-mode .modal-card .text-gray-400 { color: #4A5568 !important; }
body.light-mode .modal-card { background-color: #FFFFFF !important; border: none !important; }
body.light-mode .modal-card h3 { color: #000000 !important; }
body.light-mode .modal-card div[class*="bg-[#1A1A1A]"] { background-color: #FFFFFF !important; border: 1px solid #000000 !important; }
body.light-mode .modal-card div[class*="bg-[#1A1A1A]"]:hover { border: 2px solid #D9A340 !important; box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; }
body.light-mode .modal-card div[class*="bg-[#262626]"] { background-color: #F1F5F9 !important; border-color: #E2E8F0 !important; }
body.light-mode .modal-card .text-white, body.light-mode .modal-card .text-gray-400, body.light-mode .modal-card .text-gray-500 { color: #000000 !important; }
body.light-mode .modal-card .text-gray-400:hover { color: #D9A340 !important; }
body.light-mode footer { background-color: #F1F5F9; border-top: 1px solid #E2E8F0; }
body.light-mode footer .text-gray-400 { color: #4A5568 !important; }
body.light-mode footer .text-gray-400:hover { color: #D9A340 !important; }
body.light-mode footer .text-gray-500 { color: #718096 !important; }
body.light-mode #dark-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
body.light-mode #light-icon { opacity: 1; transform: rotate(0deg) scale(1); }
body:not(.light-mode) #dark-icon { opacity: 1; transform: rotate(0deg) scale(1); }
body:not(.light-mode) #light-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1A1A1A; border-top: 2px solid #D9A340; box-shadow: 0 -10px 30px rgba(0,0,0,0.3); z-index: 1000; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner.hide { transform: translateY(100%); }
.cookie-content { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.cookie-text { color: #EAEAEA; line-height: 1.6; }
.cookie-buttons { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-btn { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 0.875rem; }
.cookie-btn-primary { background: #D9A340; color: #1A1A1A; }
.cookie-btn-primary:hover { background: #B8860B; transform: translateY(-2px); }
.cookie-btn-secondary { background: transparent; color: #EAEAEA; border: 1px solid #444444; }
.cookie-btn-secondary:hover { border-color: #D9A340; color: #D9A340; }
.cookie-link { color: #D9A340; text-decoration: underline; transition: color 0.3s ease; }
.cookie-link:hover { color: #B8860B; }
@media (max-width: 768px) { .cookie-content { padding: 1rem; } .cookie-buttons { flex-direction: column; } .cookie-btn { width: 100%; text-align: center; } }
body.light-mode .cookie-banner { background: linear-gradient(135deg, #F8F9FA 0%, #F1F5F9 100%); border-top: 2px solid #D9A340; }
body.light-mode .cookie-text { color: #2D3748 !important; }
@media (min-width: 769px) { #user-email { font-size: 0.875rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* Paket seçimi için stiller */
.package-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.package-card.selected {
    border: 2px solid #D9A340 !important;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(217, 163, 64, 0.3);
}
.package-card:not(.selected):hover {
    border-color: #D9A340;
    transform: scale(1.01);
}
body.light-mode .package-card.selected {
    border: 2px solid #D9A340 !important;
    box-shadow: 0 10px 30px rgba(217, 163, 64, 0.2);
}
body.light-mode .package-card {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
}
body.light-mode .package-card.selected {
    border-color: #D9A340 !important;
}
@media (max-width: 768px) { #user-menu { display: none !important; } .container { min-width: 0; } .flex.items-center.space-x-3 { min-width: 0; flex-shrink: 1; } }
@media (max-width: 768px) { 
    .modal-card { 
        max-height: 90vh !important; 
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch !important; 
    } 
    /* Login modal için mobil optimizasyon */
    #login-modal .modal-card {
        max-height: 95vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1.5rem !important;
    }
    #login-modal .modal-card form,
    #login-modal .modal-card > div {
        min-height: auto !important;
    }
    .search-container { padding: 0.75rem !important; gap: 0.5rem !important; } 
    #search-input { padding: 1rem !important; font-size: 0.9rem !important; min-height: 48px !important; } 
    #k-input { width: 60px !important; padding: 0.75rem !important; font-size: 0.9rem !important; min-height: 48px !important; } 
    .search-container button[type="submit"] { padding: 0.75rem !important; font-size: 1rem !important; min-height: 48px !important; min-width: 48px !important; } 
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; } 
    #search-subtitle { font-size: 1rem !important; padding: 0 1rem !important; } 
}
@media (max-width: 480px) { h1 { font-size: 2rem !important; } .search-container { padding: 0.5rem !important; gap: 0.25rem !important; } #search-input { padding: 0.875rem !important; font-size: 0.85rem !important; } #k-input { width: 50px !important; padding: 0.5rem !important; font-size: 0.8rem !important; } #search-subtitle { font-size: 0.9rem !important; line-height: 1.5 !important; padding: 0 0.5rem !important; } .search-container button[type="submit"] { padding: 0.5rem !important; font-size: 0.9rem !important; min-width: 44px !important; } }
.snippet-paragraph { color: #FFFFFF; font-size: 0.875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
body.light-mode .snippet-paragraph { color: #2D3748 !important; }

/* Sadece favoriler panelindeki snippet'ler için justify */
#favorites-container .snippet-paragraph,
#favorites-container .text-sm.text-gray-300 {
    text-align: justify;
}
.result-number-box { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, #D9A340 0%, #B8860B 100%); color: #1A1A1A; font-weight: bold; font-size: 14px; border-radius: 8px; margin-right: 12px; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.3); transition: all 0.3s ease; }
.result-number-box:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(217, 163, 64, 0.4); }
body.light-mode .result-number-box { background: linear-gradient(135deg, #D9A340 0%, #B8860B 100%); color: #FFFFFF; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.2); }
body.light-mode .result-number-box:hover { box-shadow: 0 4px 12px rgba(217, 163, 64, 0.3); }
.download-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; text-decoration: none; transition: all 0.3s ease; border: none; background-color: transparent; color: #9CA3AF; position: relative; overflow: hidden; }
.download-btn:hover { transform: translateY(-1px); }
.pdf-btn { color: #e67e22; filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.6)); }
.pdf-btn:hover { color: #d35400; filter: drop-shadow(0 0 16px rgba(230, 126, 34, 0.8)); transform: translateY(-2px) scale(1.15); }
.word-btn { color: #3498db; filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.8)); }
.word-btn:hover { color: #2980b9; filter: drop-shadow(0 0 16px rgba(52, 152, 219, 1)); transform: translateY(-2px) scale(1.15); }
.compare-btn { color: #9CA3AF; filter: drop-shadow(0 0 8px rgba(156, 163, 175, 0.4)); }
.compare-btn:hover { color: #D9A340; filter: drop-shadow(0 0 16px rgba(217, 163, 64, 0.8)); transform: translateY(-2px) scale(1.15); }
.compare-btn.active { color: #D9A340; filter: drop-shadow(0 0 12px rgba(217, 163, 64, 1)); }
body.light-mode .download-btn { background-color: transparent; border: none; }
body.light-mode .pdf-btn { color: #e67e22; filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.5)); }
body.light-mode .pdf-btn:hover { color: #d35400; filter: drop-shadow(0 0 16px rgba(230, 126, 34, 0.7)); transform: translateY(-2px) scale(1.15); }

#petition-result .download-btn,
#contract-result .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    width: auto;
    height: auto;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    transform: none !important;
}

#petition-result .download-btn:hover,
#contract-result .download-btn:hover {
    opacity: 0.8;
}

#petition-result .download-btn i,
#contract-result .download-btn i {
    font-size: 1.1rem;
    filter: none !important;
}

#petition-result .pdf-btn,
#contract-result .pdf-btn { color: #ef4444; }
#petition-result .word-btn,
#contract-result .word-btn { color: #3b82f6; }
#petition-result .udf-btn,
#contract-result .udf-btn { color: #f97316; }
#petition-result .copy-btn,
#contract-result .copy-btn { color: #eab308; }

/* Comparison Panel Styles */
#compare-panel {
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#compare-panel-items button {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Comparison Modal Styles */
#comparison-modal .modal-card {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#comparison-modal:not(.hidden) .modal-card {
    transform: scale(1);
    opacity: 1;
}

#comparison-decision-a,
#comparison-decision-b {
    scrollbar-width: thin;
    scrollbar-color: #444 #0F0F0F;
}

#comparison-decision-a::-webkit-scrollbar,
#comparison-decision-b::-webkit-scrollbar {
    width: 8px;
}

#comparison-decision-a::-webkit-scrollbar-track,
#comparison-decision-b::-webkit-scrollbar-track {
    background: #0F0F0F;
}

#comparison-decision-a::-webkit-scrollbar-thumb,
#comparison-decision-b::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#comparison-decision-a::-webkit-scrollbar-thumb:hover,
#comparison-decision-b::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Search History Styles */
#search-history-dropdown,
#results-page-search-history-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #444 #1A1A1A;
}

#search-history-dropdown::-webkit-scrollbar,
#results-page-search-history-dropdown::-webkit-scrollbar {
    width: 8px;
}

#search-history-dropdown::-webkit-scrollbar-track,
#results-page-search-history-dropdown::-webkit-scrollbar-track {
    background: #1A1A1A;
}

#search-history-dropdown::-webkit-scrollbar-thumb,
#results-page-search-history-dropdown::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#search-history-dropdown::-webkit-scrollbar-thumb:hover,
#results-page-search-history-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-history-item {
    border-bottom: 1px solid #2A2A2A;
}

.search-history-item:last-child {
    border-bottom: none;
}

/* Light Mode - Search History Dropdown */
body.light-mode #search-history-dropdown,
body.light-mode #results-page-search-history-dropdown {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #search-history-dropdown::-webkit-scrollbar-track,
body.light-mode #results-page-search-history-dropdown::-webkit-scrollbar-track {
    background: #F1F5F9 !important;
}

body.light-mode #search-history-dropdown::-webkit-scrollbar-thumb,
body.light-mode #results-page-search-history-dropdown::-webkit-scrollbar-thumb {
    background: #CBD5E0 !important;
}

body.light-mode #search-history-dropdown::-webkit-scrollbar-thumb:hover,
body.light-mode #results-page-search-history-dropdown::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0 !important;
}

/* Arama geçmişi başlık ve butonlar - açık mod */
body.light-mode #search-history-dropdown h3,
body.light-mode #results-page-search-history-dropdown h3 {
    color: #2D3748 !important;
}

body.light-mode #search-history-dropdown .text-white,
body.light-mode #results-page-search-history-dropdown .text-white {
    color: #2D3748 !important;
}

body.light-mode #search-history-dropdown button,
body.light-mode #results-page-search-history-dropdown button {
    color: #4A5568 !important;
}

body.light-mode #search-history-dropdown button:hover,
body.light-mode #results-page-search-history-dropdown button:hover {
    color: #DC2626 !important;
}

body.light-mode #search-history-dropdown .text-gray-400,
body.light-mode #results-page-search-history-dropdown .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #search-history-dropdown .border-\[#444\],
body.light-mode #results-page-search-history-dropdown .border-\[#444\] {
    border-color: #E2E8F0 !important;
}

body.light-mode .search-history-item {
    border-bottom-color: #E2E8F0 !important;
    color: #2D3748 !important;
}

body.light-mode .search-history-item:hover {
    background-color: #F8F9FA !important;
}

body.light-mode .search-history-item .text-gray-300 {
    color: #2D3748 !important;
}

body.light-mode .search-history-item .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode .search-history-item .text-gray-500 {
    color: #718096 !important;
}

/* Light Mode - Direct Search Form */
body.light-mode #direct-search-form {
    color: #2D3748 !important;
}

body.light-mode #direct-search-form label {
    color: #2D3748 !important;
}

body.light-mode #direct-search-form .text-gray-300 {
    color: #2D3748 !important;
}

body.light-mode #direct-search-form .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #direct-search-form select,
body.light-mode #direct-search-form input {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #direct-search-form select:focus,
body.light-mode #direct-search-form input:focus {
    border-color: #D9A340 !important;
    outline: none !important;
}

body.light-mode #direct-search-form select option {
    background-color: #FFFFFF !important;
    color: #2D3748 !important;
}

@media (max-width: 768px) {
    #compare-panel {
        bottom: 4px;
        right: 4px;
        left: 4px;
        max-width: none;
        min-width: auto;
    }
    
    #search-history-dropdown,
    #results-page-search-history-dropdown {
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #comparison-modal .modal-card {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    #comparison-modal .flex {
        flex-direction: column;
    }
    
    #comparison-decision-a,
    #comparison-decision-b {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    /* Favoriler modal boyutları */
    #favorites-modal .modal-card {
        max-width: 95vw !important;
        max-height: 95vh !important;
        padding: 1rem !important;
        margin: 0.5rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Smooth scroll için favoriler container */
    #favorites-container {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Başlık küçült */
    #favorites-modal h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        position: sticky !important;
        top: 0 !important;
        background-color: #1A1A1A !important;
        padding: 0.75rem 0 !important;
        z-index: 10 !important;
    }
    
    body.light-mode #favorites-modal h3 {
        background-color: #FFFFFF !important;
    }
    
    /* Arama bölümü sticky */
    #favorites-modal > .modal-card > div:nth-child(2) {
        position: sticky !important;
        top: 3rem !important;
        background-color: #1A1A1A !important;
        padding: 0.5rem 0 !important;
        z-index: 9 !important;
        margin-bottom: 0.75rem !important;
    }
    
    body.light-mode #favorites-modal > .modal-card > div:nth-child(2) {
        background-color: #FFFFFF !important;
    }
    
    /* Arama kutusu mobilde daha compact */
    #favorites-search-input {
        padding: 0.625rem 0.75rem !important;
        padding-left: 2rem !important;
        font-size: 0.875rem !important;
    }
    
    #favorites-search-input::placeholder {
        font-size: 0.8rem !important;
    }
    
    #favorites-search-input + i {
        left: 0.625rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Arama bilgi metni küçült */
    #favorites-modal .text-xs {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
    }
    
    /* Favori kartları mobilde optimize et */
    .result-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .result-card .result-number-box {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        margin-right: 0.5rem !important;
    }
    
    .result-card h4 {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }
    
    .result-card .text-xs {
        font-size: 0.7rem !important;
        gap: 0.5rem !important;
    }
    
    .result-card .pl-12 {
        padding-left: 2.25rem !important;
    }
    
    /* Butonlar mobilde daha büyük (touch-friendly) */
    .result-card .download-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .result-card .download-btn i {
        font-size: 1.125rem !important;
    }
    
    /* Not container mobilde */
    .favorite-note-container {
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
        padding-left: 2.25rem !important;
    }
    
    .favorite-note-text {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .favorite-note-empty {
        font-size: 0.75rem !important;
    }
    
    /* Not düzenleme alanı */
    .favorite-note-textarea {
        min-height: 60px !important;
        font-size: 0.8rem !important;
        padding: 0.5rem !important;
    }
    
    /* Not butonları */
    .note-btn {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
        flex: 1 !important;
    }
    
    .note-btn i {
        font-size: 0.75rem !important;
    }
    
    /* Not butonları container */
    .favorite-note-container .flex.gap-2.mt-2 {
        width: 100% !important;
    }
    
    /* Not başlığı ve düzenleme butonu (not varken) */
    .favorite-note-container .flex.items-center.justify-between:has(.fa-sticky-note) {
        flex-wrap: wrap !important;
    }
    
    .favorite-note-container button[onclick^="editFavoriteNote"] {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
        white-space: nowrap !important;
    }
    
    .favorite-note-container button[onclick^="editFavoriteNote"] span {
        display: inline !important;
    }
    
    /* Not metni tıklanabilir alan */
    .favorite-note-container .cursor-pointer {
        margin: 0 !important;
        padding: 0.75rem !important;
    }
    
    .favorite-note-container .cursor-pointer:hover {
        background-color: rgba(217, 163, 64, 0.1) !important;
    }
    
    /* Not yoksa mesajı ve Not Ekle butonu */
    .favorite-note-container .flex.items-center.justify-between:has(.favorite-note-empty) {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .favorite-note-container .flex.items-center.justify-between:has(.favorite-note-empty) button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
    
    /* Snippet metni mobilde */
    .result-card .snippet-paragraph {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    /* Empty ve loading state'ler */
    #favorites-empty i {
        font-size: 3rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #favorites-empty .text-lg {
        font-size: 1rem !important;
    }
    
    #favorites-empty .text-sm {
        font-size: 0.8rem !important;
        padding: 0 1rem !important;
    }
    
    /* Buton gap'leri küçült */
    .result-card .flex.gap-2 {
        gap: 0.375rem !important;
    }
    
    /* Modal kapatma butonu */
    #close-favorites-button {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 1.75rem !important;
    }
}

/* Mobil için uyarı popup'ı */
@media (max-width: 768px) {
    #law-hint-banner-home {
        top: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        max-width: none !important;
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
        text-align: center !important;
    }
}

/* Çok küçük ekranlar için ekstra optimizasyon */
@media (max-width: 480px) {
    #favorites-modal .modal-card {
        max-width: 100vw !important;
        max-height: 100vh !important;
        padding: 0.75rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .result-card h4 {
        font-size: 0.8rem !important;
    }
    
    .result-card .text-xs {
        font-size: 0.65rem !important;
    }
    
    .favorite-note-text,
    .favorite-note-empty {
        font-size: 0.7rem !important;
    }
    
    .note-btn {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.75rem !important;
    }
}

body.light-mode #ai-analysis-report-section { background-color: #F8F9FA !important; }
body.light-mode #ai-analysis-report-section > div { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #ai-analysis-report-section .bg-\[#262626\] { background-color: #FFFFFF !important; border-color: #D9A340 !important; }
body.light-mode #ai-analysis-report-section h2, body.light-mode #ai-analysis-report-section h4 { color: #2D3748 !important; }
body.light-mode #ai-analysis-report-section .text-\[#D9A340\] { color: #D9A340 !important; }
body.light-mode #ai-analysis-report-section .text-gray-400 { color: #4A5568 !important; }
body.light-mode #ai-analysis-report-section .text-gray-300 { color: #2D3748 !important; }
body.light-mode #ai-analysis-report-section .bg-\[#1A1A1A\] { background-color: #F8F9FA !important; border-color: #D9A340 !important; }
body.light-mode #ai-analysis-report-section .text-white { color: #2D3748 !important; }
body.light-mode #ai-analysis-report-section p { color: #2D3748 !important; }
body.light-mode #analysis-report-container .bg-gradient-to-r { background: linear-gradient(to right, #FFFFFF, #F8F9FA) !important; }
body.light-mode #analysis-report-container .border-\[\#444\] { border-color: #CBD5E0 !important; }
body.light-mode #analysis-report-container .border-\[\#333\] { border-color: #E2E8F0 !important; }
body.light-mode #analysis-report-container .text-white { color: #1A1A1A !important; }
body.light-mode #search-form .text-gray-400, body.light-mode #results-page-search-form .text-gray-400 { color: #4A5568; }
body.light-mode #search-form select, body.light-mode #search-form input[type="number"], body.light-mode #results-page-search-form select, body.light-mode #results-page-search-form input[type="number"] { background-color: #F1F5F9; border-color: #CBD5E0; color: #2D3748; }
body.light-mode #search-form select:focus, body.light-mode #search-form input[type="number"]:focus, body.light-mode #results-page-search-form select:focus, body.light-mode #results-page-search-form input[type="number"]:focus { border-color: #D9A340; }
.radio-toggle-group { display: flex; background-color: #262626; border: 1px solid #444; border-radius: 0.375rem; padding: 0.25rem; }
.radio-toggle-group input[type="radio"] { display: none; }
.radio-toggle-group label { padding: 0.25rem 0.75rem; cursor: pointer; color: #9CA3AF; border-radius: 0.25rem; transition: all 0.2s ease-in-out; font-size: 0.875rem; font-weight: 500; }
.radio-toggle-group input[type="radio"]:checked + label { background-color: #D9A340; color: #1A1A1A; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.radio-toggle-group input[type="radio"]:disabled + label { cursor: not-allowed; opacity: 0.5; }
/* BAM için Hukuk ve Ceza ile aynı sarı-turuncu renk */
.radio-toggle-group input[type="radio"][value="bam"]:checked + label { background-color: #D9A340; color: #1A1A1A; }
body.light-mode .radio-toggle-group { background-color: #F1F5F9; border-color: #CBD5E0; }
body.light-mode .radio-toggle-group label { color: #4A5568; }
body.light-mode .radio-toggle-group input[type="radio"]:checked + label { background-color: #D9A340; color: #FFFFFF; }
body.light-mode .radio-toggle-group input[type="radio"][value="bam"]:checked + label { background-color: #D9A340; color: #FFFFFF; }
.score-container { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.score-text { font-size: 0.75rem; color: #9CA3AF; font-weight: 500; }
.score-progress-bar { width: 60px; height: 4px; background-color: rgba(156, 163, 175, 0.2); border-radius: 2px; overflow: hidden; position: relative; }
.score-progress-fill { height: 100%; background: linear-gradient(90deg, #FF6B35 0%, #F7931E 50%, #FFD700 100%); border-radius: 2px; transition: width 0.3s ease-in-out; box-shadow: 0 0 8px rgba(255, 107, 53, 0.6); }
body.light-mode .score-progress-bar { background-color: rgba(209, 213, 219, 0.3); }

/* AI Arama Yazısı */
.ai-search-label {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF00FF 0%, #8A2BE2 50%, #00BFFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.6));
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #8A2BE2;
    border-radius: 0.375rem;
}
.ai-search-label:hover {
    filter: drop-shadow(0 0 16px rgba(255, 0, 255, 0.8));
    transform: translateY(-1px);
    border-color: #FF00FF;
    box-shadow: 0 0 16px rgba(255, 0, 255, 0.3);
}
body.light-mode .ai-search-label {
    background: linear-gradient(135deg, #FF00FF 0%, #8A2BE2 50%, #00BFFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.5));
    border-color: #8A2BE2;
}
body.light-mode .ai-search-label:hover {
    filter: drop-shadow(0 0 16px rgba(255, 0, 255, 0.7));
    border-color: #FF00FF;
    box-shadow: 0 0 16px rgba(255, 0, 255, 0.2);
}

body.light-mode .score-text { color: #6B7280; }
mark { background-color: rgba(217, 163, 64, 0.4); color: inherit; padding: 0 2px; border-radius: 3px; }
body.light-mode mark { background-color: rgba(217, 163, 64, 0.3); }
body.light-mode #mobile-auth-container { border-color: #E2E8F0; }
body.light-mode #mobile-user-email { color: #4A5568 !important; }

/* AI Arama Bilgilendirme */
#ai-search-info p { color: #9CA3AF; }
body.light-mode #ai-search-info p { color: #6B7280; }
.ai-answer-section { background-color: #1A1A1A; border: 1px solid #333333; border-left: 4px solid #D9A340; }
.ai-answer-section h4 { color: #D9A340; }
body.light-mode .ai-answer-section { background-color: #FFFFFF; border-color: #CBD5E0; border-left-color: #D9A340; }
body.light-mode .ai-answer-section h4 { color: #D9A340; }
body.light-mode .ai-answer-section .text-gray-300 { color: #2D3748 !important; }
.ai-suggestion-btn { display: flex; align-items: center; width: 100%; text-align: left; padding: 0.75rem 1rem; background-color: #262626; border: 1px solid #444444; border-left-width: 4px; border-left-color: #a78bfa; border-radius: 0.5rem; color: #EAEAEA; font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer; }
.ai-suggestion-btn:hover { background-color: #333333; border-color: #a78bfa; transform: translateX(5px); }
.ai-suggestion-btn i { margin-right: 0.75rem; color: #a78bfa; }
body.light-mode .ai-suggestion-btn { background-color: #FFFFFF; border-color: #CBD5E0; color: #2D3748; }
body.light-mode .ai-suggestion-btn:hover { background-color: #F8F9FA; border-color: #a78bfa; }

/* AI Suggestions Container - Light Mode (Result-card stiline uygun) */
body.light-mode #ai-suggestions-container { background-color: #F8F9FA !important; }
body.light-mode #ai-suggestions-container > div { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #ai-suggestions-container .bg-\[#262626\] { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #ai-suggestions-container h3 { color: #2D3748 !important; }
body.light-mode #ai-suggestions-container .text-white { color: #2D3748 !important; }
body.light-mode #ai-suggestions-container .text-gray-400 { color: #4A5568 !important; }
body.light-mode #ai-suggestions-container .bg-\[#1A1A1A\] { background-color: #F8F9FA !important; border-color: #CBD5E0 !important; }
body.light-mode #ai-suggestions-container p { color: #2D3748 !important; }

/* Decision Detail Modal - Light Mode (Result-card stiline uygun) */
body.light-mode #decision-detail-modal .modal-card { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #decision-detail-modal h3, 
body.light-mode #decision-detail-modal h4 { color: #2D3748 !important; }
body.light-mode #decision-detail-modal h4.text-\[#D9A340\] { color: #D9A340 !important; }
body.light-mode #decision-detail-modal .text-white { color: #2D3748 !important; }
body.light-mode #decision-detail-modal .text-gray-400 { color: #D9A340 !important; }
body.light-mode #decision-detail-modal .text-gray-300 { color: #2D3748 !important; }
body.light-mode #decision-detail-modal .bg-gradient-to-r { background: #FFFFFF !important; border: 2px solid #D9A340 !important; }
body.light-mode #decision-detail-modal .bg-\[#1D1D1D\] { background-color: #FFFFFF !important; border: 2px solid #D9A340 !important; }
body.light-mode #decision-detail-modal .bg-\[#131313\] { background-color: #FFFFFF !important; }
body.light-mode #decision-detail-modal .bg-\[#2A2A2A\] { background-color: #FFFFFF !important; border: 2px solid #CBD5E0 !important; }
body.light-mode #decision-detail-modal div[class*="bg-[#2A2A2A]"] { background-color: #FFFFFF !important; border: 2px solid #CBD5E0 !important; }
body.light-mode #decision-detail-modal .bg-\[#1A1A1A\] { background-color: #FFFFFF !important; border: 2px solid #CBD5E0 !important; }
body.light-mode #decision-detail-modal .border-\[\#444\] { border-color: #CBD5E0 !important; }
body.light-mode #decision-detail-modal .border-\[\#333\] { border-color: #CBD5E0 !important; }
body.light-mode #decision-detail-modal p { color: #2D3748 !important; }
body.light-mode #decision-detail-modal span { color: #2D3748 !important; }
body.light-mode #decision-detail-modal strong { color: #2D3748 !important; }
body.light-mode #decision-detail-modal .download-btn { border-width: 2px !important; }

/* Daha güçlü CSS kuralları - bilgi kutuları için */
body.light-mode #decision-detail-modal .grid > div { 
    background-color: #FFFFFF !important; 
    border: 2px solid #CBD5E0 !important; 
}
body.light-mode #decision-detail-modal .grid > div span:first-child { 
    color: #D9A340 !important; 
}
body.light-mode #decision-detail-modal .grid > div span:last-child { 
    color: #2D3748 !important; 
}

/* AI Report Modal - Light Mode (Result-card stiline uygun) */
body.light-mode #ai-report-modal .modal-card { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #ai-report-modal h3, 
body.light-mode #ai-report-modal h4 { color: #2D3748 !important; }
body.light-mode #ai-report-modal .text-white { color: #2D3748 !important; }
body.light-mode #ai-report-modal .text-gray-400 { color: #4A5568 !important; }
body.light-mode #ai-report-modal .text-gray-300 { color: #2D3748 !important; }
body.light-mode #ai-report-modal .bg-\[#1A1A1A\] { background-color: #FFFFFF !important; border: 1px solid #CBD5E0 !important; }
body.light-mode #ai-report-modal .bg-red-900\/20 { background-color: rgba(254, 202, 202, 0.5) !important; }
body.light-mode #ai-report-modal .border-red-500 { border-color: #F56565 !important; }
body.light-mode #ai-report-modal .text-red-400 { color: #E53E3E !important; }
body.light-mode #ai-report-modal p { color: #2D3748 !important; }
body.light-mode #ai-report-modal span { color: #2D3748 !important; }
body.light-mode #ai-report-modal strong { color: #2D3748 !important; }

/* AI Summary Modal - Light Mode (Result-card stiline uygun) */
body.light-mode #ai-summary-modal .modal-card { background-color: #FFFFFF !important; border: 1px solid #D9A340 !important; box-shadow: 0 2px 8px rgba(217, 163, 64, 0.1) !important; }
body.light-mode #ai-summary-modal h3 { color: #2D3748 !important; }
body.light-mode #ai-summary-modal .text-gray-400 { color: #4A5568 !important; }
body.light-mode #ai-summary-modal .text-gray-300 { color: #2D3748 !important; }
body.light-mode #ai-summary-modal p { color: #2D3748 !important; }
body.light-mode #ai-summary-modal strong { color: #2D3748 !important; }

/* Tam Ekran Karar Metni Modal - Light Mode */
body.light-mode #fullscreen-decision-text-modal {
    background-color: rgba(255, 255, 255, 0.95) !important;
}
body.light-mode #fullscreen-decision-text-modal.bg-black\/90 {
    background-color: rgba(255, 255, 255, 0.95) !important;
}
body.light-mode #fullscreen-decision-text-modal h3 {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal p {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal .bg-\[#1A1A1A\] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="bg-\[#1A1A1A\]"] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
}
body.light-mode #fullscreen-decision-text-modal .text-gray-300 {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal .text-gray-400 {
    color: #4A5568 !important;
}
body.light-mode #fullscreen-decision-text-modal button {
    color: #4A5568 !important;
}
body.light-mode #fullscreen-decision-text-modal button:hover {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal .border-\[\#333\] {
    border-color: #CBD5E0 !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="border-\[#333\]"] {
    border-color: #CBD5E0 !important;
}
body.light-mode #fullscreen-decision-text-modal #fullscreen-decision-text-content {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="text-gray-300"] {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="text-gray-400"] {
    color: #4A5568 !important;
}

/* Daha güçlü CSS kuralları - Tailwind arbitrary values için */
body.light-mode #fullscreen-decision-text-modal * {
    color: inherit !important;
}
body.light-mode #fullscreen-decision-text-modal .text-\[#D9A340\] {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal .text-gray-300,
body.light-mode #fullscreen-decision-text-modal .text-gray-400,
body.light-mode #fullscreen-decision-text-modal div[class*="text-gray"],
body.light-mode #fullscreen-decision-text-modal p,
body.light-mode #fullscreen-decision-text-modal span,
body.light-mode #fullscreen-decision-text-modal div {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal h3,
body.light-mode #fullscreen-decision-text-modal .text-\[#D9A340\] {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal button {
    color: #4A5568 !important;
}
body.light-mode #fullscreen-decision-text-modal button:hover {
    color: #D9A340 !important;
}

/* En güçlü CSS kuralları - Tüm elementleri override et */
body.light-mode #fullscreen-decision-text-modal {
    background: rgba(255, 255, 255, 0.95) !important;
}
body.light-mode #fullscreen-decision-text-modal * {
    color: #2D3748 !important;
}
body.light-mode #fullscreen-decision-text-modal h3,
body.light-mode #fullscreen-decision-text-modal .text-\[#D9A340\] {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal button {
    color: #4A5568 !important;
}
body.light-mode #fullscreen-decision-text-modal button:hover {
    color: #D9A340 !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="bg-"] {
    background-color: #FFFFFF !important;
}
body.light-mode #fullscreen-decision-text-modal div[class*="border-"] {
    border-color: #CBD5E0 !important;
}

.chevron-toggle {
    transition: transform 0.3s ease;
}

details[open] .chevron-toggle {
    transform: rotate(180deg);
}

/* Dilekçe Oluşturucu Portal - Açık Mod Stilleri */
body.light-mode #ai-petition-section {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-petition-section summary {
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-petition-section h2,
body.light-mode #ai-petition-section .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-petition-section .text-gray-300,
body.light-mode #ai-petition-section .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-petition-section .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #ai-petition-section div[class*="bg-[#262626]"],
body.light-mode #ai-petition-section div[class*="bg-[#121212]"] {
    background-color: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-petition-section div[class*="bg-[#262626]"] .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-petition-section div[class*="bg-[#262626]"] .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-petition-section input[class*="bg-[#121212]"],
body.light-mode #ai-petition-section select[class*="bg-[#121212]"],
body.light-mode #ai-petition-section textarea[class*="bg-[#121212]"] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #ai-petition-section input[class*="bg-[#121212]"]::placeholder,
body.light-mode #ai-petition-section textarea[class*="bg-[#121212]"]::placeholder {
    color: #A0AEC0 !important;
}

body.light-mode #ai-petition-section input[class*="bg-[#121212]"]:focus,
body.light-mode #ai-petition-section select[class*="bg-[#121212]"]:focus,
body.light-mode #ai-petition-section textarea[class*="bg-[#121212]"]:focus {
    border-color: #D9A340 !important;
    background-color: #FFFFFF !important;
}

/* Sözleşme Hazırlayıcı - Açık Mod Stilleri */
body.light-mode #ai-contract-section {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-contract-section summary {
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-contract-section h2,
body.light-mode #ai-contract-section .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-contract-section .text-gray-300,
body.light-mode #ai-contract-section .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-contract-section .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #ai-contract-section div[class*="bg-[#262626]"],
body.light-mode #ai-contract-section div[class*="bg-[#121212]"] {
    background-color: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-contract-section div[class*="bg-[#262626]"] .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-contract-section div[class*="bg-[#262626]"] .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-contract-section input[class*="bg-[#121212]"],
body.light-mode #ai-contract-section select[class*="bg-[#121212]"],
body.light-mode #ai-contract-section textarea[class*="bg-[#121212]"] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #ai-contract-section input[class*="bg-[#121212]"]::placeholder,
body.light-mode #ai-contract-section textarea[class*="bg-[#121212]"]::placeholder {
    color: #A0AEC0 !important;
}

body.light-mode #ai-contract-section input[class*="bg-[#121212]"]:focus,
body.light-mode #ai-contract-section select[class*="bg-[#121212]"]:focus,
body.light-mode #ai-contract-section textarea[class*="bg-[#121212]"]:focus {
    border-color: #D9A340 !important;
    background-color: #FFFFFF !important;
}

body.light-mode #ai-contract-section svg rect[fill="#1A1A1A"] {
    fill: #FFFFFF !important;
}

body.light-mode #ai-contract-section svg text[fill="#EAEAEA"] {
    fill: #2D3748 !important;
}

/* Hukuki Danışman - Açık Mod Stilleri */
body.light-mode #ai-chat-section {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section summary {
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section h2,
body.light-mode #ai-chat-section .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section .text-gray-300,
body.light-mode #ai-chat-section .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-chat-section .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #ai-chat-section div[class*="bg-[#262626]"],
body.light-mode #ai-chat-section div[class*="bg-[#121212]"] {
    background-color: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section div[class*="bg-[#262626]"] .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section div[class*="bg-[#262626]"] .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-chat-section #chat-file-dropzone {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E0 !important;
}

body.light-mode #ai-chat-section #chat-file-dropzone:hover {
    border-color: #D9A340 !important;
}

body.light-mode #ai-chat-section #chat-file-dropzone .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-chat-section #chat-file-dropzone .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #ai-chat-section #chat-files-list .bg-\[#262626\] {
    background-color: #E2E8F0 !important;
    border-color: #CBD5E0 !important;
}

body.light-mode #ai-chat-section #chat-files-list .text-gray-300 {
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section #chat-files-list .text-gray-500 {
    color: #718096 !important;
}

body.light-mode #ai-chat-section input[class*="bg-[#121212]"],
body.light-mode #ai-chat-section select[class*="bg-[#121212]"],
body.light-mode #ai-chat-section textarea[class*="bg-[#121212]"] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section input[class*="bg-[#121212]"]::placeholder,
body.light-mode #ai-chat-section textarea[class*="bg-[#121212]"]::placeholder {
    color: #A0AEC0 !important;
}

body.light-mode #ai-chat-section input[class*="bg-[#121212]"]:focus,
body.light-mode #ai-chat-section select[class*="bg-[#121212]"]:focus,
body.light-mode #ai-chat-section textarea[class*="bg-[#121212]"]:focus {
    border-color: #D9A340 !important;
    background-color: #FFFFFF !important;
}

body.light-mode #ai-chat-section svg rect[fill="#1A1A1A"] {
    fill: #FFFFFF !important;
}

body.light-mode #ai-chat-section svg text[fill="#EAEAEA"] {
    fill: #2D3748 !important;
}

/* Hukuki Danışman Chat Kutusu - Açık Mod Stilleri */
body.light-mode #ai-chat-section div[class*="bg-[#121212]"] {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section #chat-messages {
    background-color: #FFFFFF !important;
}

body.light-mode #ai-chat-section #chat-messages .text-gray-300 {
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section #chat-input {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section #chat-input::placeholder {
    color: #A0AEC0 !important;
}

body.light-mode #ai-chat-section #chat-input:focus {
    border-color: #D9A340 !important;
    background-color: #FFFFFF !important;
}

body.light-mode #ai-chat-section .border-t.border-\[#333\] {
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section #chat-messages div[class*="bg-[#1A1A1A]"] {
    background-color: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-chat-section #chat-messages div[class*="bg-[#1A1A1A]"] .text-gray-300 {
    color: #2D3748 !important;
}

body.light-mode #ai-chat-section #chat-error {
    color: #DC2626 !important;
}

body.light-mode #ai-chat-section #chat-loader {
    color: #4A5568 !important;
}

body.light-mode #ai-chat-section #hukukos-loading-logo rect[fill="#1A1A1A"] {
    fill: #FFFFFF !important;
}

body.light-mode #ai-chat-section #hukukos-loading-logo text[fill="#EAEAEA"] {
    fill: #2D3748 !important;
}

body.light-mode #ai-petition-section input[type="checkbox"] {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
}

body.light-mode #ai-petition-section svg rect[fill="#1A1A1A"] {
    fill: #FFFFFF !important;
}

body.light-mode #ai-petition-section svg text[fill="#EAEAEA"] {
    fill: #2D3748 !important;
}

body.light-mode #ai-petition-section #petition-cases-container {
    background-color: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #ai-petition-section #petition-cases-container .text-white {
    color: #2D3748 !important;
}

body.light-mode #ai-petition-section #petition-cases-container .text-gray-300 {
    color: #4A5568 !important;
}

body.light-mode #ai-petition-section #petition-output {
    background-color: #FFFFFF !important;
    border-color: #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode #ai-petition-section #petition-loader {
    color: #4A5568 !important;
}

body.light-mode #ai-petition-section #petition-loader .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #ai-petition-section #hukukos-petition-loading-logo rect[fill="#1A1A1A"] {
    fill: #FFFFFF !important;
}

body.light-mode #ai-petition-section #hukukos-petition-loading-logo text[fill="#EAEAEA"] {
    fill: #2D3748 !important;
}

/* Dilekçe Karar Detay Modal - Açık Mod Stilleri */
body.light-mode #petition-case-modal {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-mode #petition-case-modal .modal-card {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode #petition-case-modal .text-white,
body.light-mode #petition-case-modal h3 {
    color: #2D3748 !important;
}

body.light-mode #petition-case-modal .text-gray-300,
body.light-mode #petition-case-modal .text-gray-400 {
    color: #4A5568 !important;
}

body.light-mode #petition-case-modal .text-gray-200 {
    color: #2D3748 !important;
}

body.light-mode #petition-case-modal #petition-case-body {
    background-color: #F8F9FA !important;
    border-color: #E2E8F0 !important;
    color: #2D3748 !important;
}

body.light-mode #petition-case-modal button {
    color: #4A5568 !important;
}

body.light-mode #petition-case-modal button:hover {
    color: #2D3748 !important;
}

/* Kanun maddesi referans linkleri */
.law-ref {
    color: #D9A340;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.law-ref:hover {
    color: #B8860B;
    text-decoration: underline;
}

/* Law Modal */
#law-modal {
    z-index: 140;
}

#law-modal .modal-card {
    background-color: #141414;
    border: 1px solid #333;
}

#law-modal h2 {
    color: #D9A340;
    margin-bottom: 1rem;
}

#law-modal pre {
    color: #EAEAEA;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* ===== Petition JSON-based Deterministic System CSS ===== */
.petition { 
    font-family: "Times New Roman", serif; 
    font-size: 12pt; 
    line-height: 1.15; 
    color: #EAEAEA; /* Koyu mod için açık renk */
}
body.light-mode .petition {
    color: #111; /* Açık mod için koyu renk */
}
.petition .title { 
    text-align: center; 
    font-weight: 700; 
    text-transform: lowercase; 
    font-variant: small-caps; 
    margin: 6pt 0 10pt; 
    color: inherit;
}
.petition .kunye { 
    display: grid; 
    grid-template-columns: 140px 1fr; 
    gap: 4px 12px; 
    margin: 6pt 0 10pt; 
}
.petition .kunye .label { 
    font-weight: 700; 
    color: inherit;
}
.petition p { 
    margin: 0 0 6pt; 
    text-indent: 2ch; 
    text-align: justify !important; 
    color: inherit;
}
.petition .section { 
    font-weight: 700; 
    text-transform: uppercase; 
    margin: 10pt 0 6pt; 
    color: inherit;
}
.petition ol { 
    margin: 0 0 6pt; 
    padding-left: 18pt; 
    list-style-type: none;
}
.petition li { 
    margin: 0 0 4pt; 
    color: inherit;
}
/* Sadece DELİLLER bölümü numaralandırılmış */
.petition .deliller-list {
    list-style-type: decimal;
}
.petition .deliller-list li {
    list-style-type: decimal;
}

#petition-preview .petition{
  width: 100%; margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-kerning: normal;
}

#petition-preview .title{ text-align:center; font-weight:700; text-transform:uppercase; margin: 6px 0 12px; }

#petition-preview h3{ text-align:center; font-weight:700; margin: 14px 0 8px; }

#petition-preview p{ text-align: justify !important; margin: 0 0 10px; text-indent: 2ch; }

#petition-preview ol{ margin: 0 0 10px 22px; padding: 0; list-style-type: none; }
#petition-preview .deliller-list{ list-style-type: decimal; }
#petition-preview .deliller-list li{ list-style-type: decimal; }

#petition-preview .kunye-grid{
  display:grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 8px 0 14px;
}

#petition-preview .label{ font-weight:700; text-align:left; }

#petition-preview .value{ text-align:left; white-space: pre-wrap; }

#petition-preview .petition{width:100%;margin:0;font-family:"Times New Roman",Times,serif;font-size:12pt;line-height:1.5}
#petition-preview .title{text-align:center;font-weight:700;text-transform:uppercase;margin:6px 0 12px}
#petition-preview h3{text-align:center;font-weight:700;margin:14px 0 8px}
#petition-preview p{text-align:justify !important;margin:0 0 10px}
#petition-preview ol{margin:0 0 10px 22px;padding:0;list-style-type:none}
#petition-preview .deliller-list{list-style-type:decimal}
#petition-preview .deliller-list li{list-style-type:decimal}
#petition-preview .kunye-grid{display:grid;grid-template-columns:160px 1fr;gap:6px 12px;margin:8px 0 14px}
#petition-preview .label{font-weight:700;text-align:left}
#petition-preview .value{text-align:left;white-space:pre-wrap}
#petition-preview .petition-signature{text-align:right;margin-top:20px;padding-top:10px;font-weight:400;font-size:12pt}

/* Petition alignment guards */
.petition { text-align: left; position: relative; }
.petition p, .petition li { text-align: justify !important; }
.petition .title, .petition h3 { text-align: center !important; }
/* Künye grid'i garanti */
.petition .kunye-grid .label,
.petition .kunye-grid .value { text-align: left !important; }
/* Avukat imzası sağ alt köşe */
.petition .petition-signature {
    text-align: right;
    margin-top: 20pt;
    padding-top: 10pt;
    font-weight: 400;
    font-size: 12pt;
    color: inherit;
}
