 :root {
        --primary: #4facfe;
        --secondary: #00f2fe;
        --ai-bg: #e6f0ff;
        --user-bg: #4facfe;
        --card-bg: #ffffff;
        --dark-text: #2c3e50;
        --light-text: #fff;
        --border: #e1e8ed;
        --shadow: rgba(79, 172, 254, 0.15);
        --surface: #f8fafc;
        --hover: rgba(79, 172, 254, 0.1);
        --error-bg: #ffe6e6;
        --error-text: #d63031;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html, body {
        height: 100%;
        overflow: hidden;
        height: 100dvh;
        width: 100dvw;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        height: 100dvh;
        width: 100dvw;
        position: fixed;
    }

    .chat-container {
        width: 100%;
        max-width: 420px;
        height: 100dvh;
        background: var(--card-bg);
        border-radius: 0;
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        max-height: 100dvh;
    }

    .header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        padding: 1rem 1.25rem;
        text-align: center;
        color: var(--light-text);
        position: relative;
        z-index: 100;
        flex-shrink: 0;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: 1rem;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header h1 {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.025em;
        margin: 0;
    }

    .content-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: var(--surface);
        position: relative;
        overflow: hidden;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

 /* MESAJ SIRALAMASINI DÜZELTMEK İÇİN */
.messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.25rem;
    scroll-behavior: smooth;
    position: relative;
    display: flex;
    flex-direction: column; /* DEĞİŞTİR: column-reverse yerine column */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

    .messages::-webkit-scrollbar {
        width: 4px;
    }

    .messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .messages::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .message {
        margin-bottom: 1.5rem;
        display: flex;
        animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        flex-shrink: 0; /* Mesajların boyutunun sabit kalması için */
    }

    .message.user {
        justify-content: flex-end;
    }

    .message.ai {
        justify-content: flex-start;
    }

    .message-content {
        max-width: 85%;
        position: relative;
    }

    .bubble {
        padding: 0.875rem 1.125rem;
        border-radius: 18px;
        font-size: 0.9375rem;
        line-height: 1.5;
        word-wrap: break-word;
            font-family: sans-serif;
        position: relative;
        backdrop-filter: blur(10px);
    }

    .message.user .bubble {
        background: linear-gradient(135deg, var(--user-bg) 0%, #667eea 100%);
        color: var(--light-text);
        border-bottom-right-radius: 6px;
        box-shadow: 0 4px 12px var(--shadow);
    }

    .message.ai .bubble {
        background: var(--ai-bg);
        color: var(--dark-text);
        border-bottom-left-radius: 6px;
        border: 1px solid rgba(79, 172, 254, 0.1);
    }

    .message.error .bubble {
        background: var(--error-bg);
        color: var(--error-text);
        border: 1px solid rgba(214, 48, 49, 0.2);
    }

    .message img {
        max-width: 200px;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .retry-button {
        margin-top: 0.75rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 0.875rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }

    .retry-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px var(--shadow);
    }

    .typing-indicator {
        padding: 0 1.25rem 1rem;
        display: none;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface);
        z-index: 10;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .typing-indicator.show {
        display: block;
    }

    .typing-dots {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
        background: var(--ai-bg);
        border-radius: 18px;
        border-bottom-left-radius: 6px;
        width: fit-content;
        border: 1px solid rgba(79, 172, 254, 0.1);
    }

    .typing-dot {
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
        animation: bounce 1.4s infinite;
    }

    .typing-dot:nth-child(2) { animation-delay: 0.2s; }
    .typing-dot:nth-child(3) { animation-delay: 0.4s; }

    .image-preview {
        padding: 0 1.25rem 1rem;
        display: none;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface);
        z-index: 15;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .image-preview.show {
        display: block;
    }

    .preview-container {
        position: relative;
        display: inline-block;
        background: var(--card-bg);
        border-radius: 12px;
        padding: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .preview-container img {
        max-width: 120px;
        border-radius: 8px;
        display: block;
    }

    .remove-image {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ff4757;
        color: var(--light-text);
        border: none;
        cursor: pointer;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .input-area {
        padding: 1rem 1.25rem;
        background: var(--card-bg);
        border-top: 1px solid var(--border);
        position: relative;
        z-index: 100;
        flex-shrink: 0;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-top: 1rem;
    }

    .input-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 0.75rem;
        background: var(--surface);
        border-radius: 24px;
        padding: 0.5rem;
        border: 1px solid var(--border);
        transition: all 0.3s ease;
    }

    .input-wrapper:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    }

    .message-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        line-height: 1.4;
        resize: none;
        outline: none;
        min-height: 44px;
        max-height: 120px;
        font-family: inherit;
    }

    .message-input::placeholder {
        color: #94a3b8;
    }

    .enhanced-bubble {
        padding: 16px 20px;
        border-radius: 5px;
        max-width: 100%;
            overflow: scroll;
        word-wrap: break-word;
        line-height: 1.6;
        font-size: 14px;
        position: relative;
    }

    .enhanced-bubble .msg-h1 {
        font-size: 22px;
        font-weight: bold;
        color: #2c3e50;
        margin: 16px 0 12px 0;
        border-bottom: 3px solid #3498db;
        padding-bottom: 8px;
        text-align: left;
    }

    .enhanced-bubble .msg-h2 {
        font-size: 18px;
        font-weight: bold;
        color: #34495e;
        margin: 14px 0 10px 0;
        border-bottom: 2px solid #74b9ff;
        padding-bottom: 6px;
        text-align: left;
    }

    .enhanced-bubble .msg-h3 {
        font-size: 16px;
        font-weight: bold;
        color: #5d6d7e;
        margin: 12px 0 8px 0;
        text-align: left;
    }

    .msg-table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
       overflow-x: auto;   /* Yana kaydırma aktif olur */
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
    word-wrap: break-word;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        font-size: 13px;
        border: 1px solid #e1e8ed;
    }

    .msg-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .msg-table th {
        padding: 14px 12px;
        text-align: left;
        font-weight: 600;
        border-right: 1px solid rgba(255,255,255,0.2);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .msg-table th:last-child {
        border-right: none;
    }

    .msg-table td {
        padding: 12px;
        border-bottom: 1px solid #e8ecf0;
        border-right: 1px solid #e8ecf0;
        vertical-align: top;
    }

    .msg-table td:last-child {
        border-right: none;
    }

    .msg-table tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .msg-table tbody tr:hover {
        background-color: #e3f2fd;
        transition: background-color 0.3s ease;
    }

    .msg-table tbody tr:last-child td {
        border-bottom: none;
    }

    .code-block {
        background: #2d3748;
        color: #e2e8f0;
        padding: 20px;
        border-radius: 10px;
        margin: 15px 0;
        overflow-x: auto;
        border-left: 4px solid #4299e1;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        font-size: 13px;
        line-height: 1.5;
        position: relative;
    }

    .inline-code {
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
        color: #2d3748;
        padding: 3px 8px;
        border-radius: 6px;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        font-size: 12px;
        border: 1px solid #e2e8f0;
        font-weight: 500;
    }

    .msg-list {
        margin: 15px 0;
        padding-left: 25px;
        list-style: none;
    }

    .msg-list-item {
        margin: 8px 0;
        line-height: 1.6;
        position: relative;
    }

    .msg-list-item::before {
        content: '•';
        color: #3498db;
        font-weight: bold;
        position: absolute;
        left: -20px;
        font-size: 16px;
    }

    .msg-bold {
        font-weight: 700;
        color: #2c3e50;
    }

    .msg-italic {
        font-style: italic;
        color: #5d6d7e;
        font-weight: 500;
    }

    .msg-separator {
        border: none;
        height: 3px;
        background: linear-gradient(90deg, transparent, #74b9ff, transparent);
        margin: 25px 0;
        border-radius: 2px;
    }

    .message.ai .enhanced-bubble {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #dee2e6;
        color: #2c3e50;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .message.user .enhanced-bubble {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        box-shadow: 0 2px 10px rgba(0,123,255,0.3);
    }

    .message.error .enhanced-bubble {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        color: white;
        border: 1px solid #ff5252;
    }

    .input-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .image-btn {
        background: linear-gradient(135deg, #64748b 0%, #475569 100%);
        color: var(--light-text);
    }

    .image-btn:hover {
        transform: scale(1.05);
    }

    .send-btn {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: var(--light-text);
        box-shadow: 0 4px 12px var(--shadow);
    }

    .send-btn:hover {
        transform: scale(1.05);
    }

    #imageUpload {
        display: none;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes bounce {
        0%, 60%, 100% {
            transform: translateY(0);
            opacity: 0.4;
        }
        30% {
            transform: translateY(-8px);
            opacity: 1;
        }
    }

    /* MathJax için özel stiller */
    .math-expression {
        font-family: 'Times New Roman', serif;
        font-style: italic;
        color: #8e44ad;
        background: rgba(142, 68, 173, 0.1);
        padding: 2px 4px;
        border-radius: 4px;
        display: inline-block;
        margin: 0 2px;
    }

    .math-block {
        font-family: 'Times New Roman', serif;
        color: #34495e;
        background: #ecf0f1;
        padding: 10px 15px;
        border-radius: 8px;
        margin: 15px 0;
        text-align: center;
        overflow-x: auto;
        border: 1px solid #bdc3c7;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .math-symbol {
        font-family: "Times New Roman", "DejaVu Math TeX Gyre", serif;
        font-size: 1.05em;
        font-weight: bold;
        color: #2980b9;
        background: rgba(41, 128, 185, 0.1);
        padding: 2px 3px;
        border-radius: 3px;
        display: inline-block;
        margin: 0 1px;
        transition: all 0.2s ease;
    }

    /* MathJax çıktılarını düzgün göstermek için */
    mjx-container {
        display: inline-block !important;
        margin: 0 2px !important;
    }

    mjx-container[jax="CHTML"] {
        text-align: center;
        margin: 1em 0;
    }

    /* Responsive tasarım */
    @media (max-width: 768px) {
        .chat-container {
            height: 100dvh;
            border-radius: 0;
            max-width: 100%;
        }
        
        .header {
            padding: 1rem 1.25rem;
            padding-top: max(1rem, env(safe-area-inset-top));
            min-height: 60px;
        }
        
        .messages {
            padding: 1rem;
        }
        
        .message-content {
            max-width: 100%;
        }
        
        .bubble {
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
        }
        
        .input-area {
            padding: 1rem;
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }
    }
    
         /* Kullanım Politikaları Modal Stilleri */
        .policy-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .policy-modal-content {
            background-color: #ffffff;
            margin: 3% auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: slideDown 0.3s ease;
            overflow: hidden;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .policy-modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px solid #5568d3;
        }

        .policy-modal-header h2 {
            margin: 0;
            font-size: 22px;
            font-weight: 600;
        }

        .policy-modal-header h2 i {
            margin-right: 10px;
        }

        .policy-close {
            color: white;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            line-height: 1;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .policy-close:hover,
        .policy-close:focus {
            background-color: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .policy-modal-body {
            padding: 25px;
            max-height: calc(85vh - 80px);
            overflow-y: auto;
            color: #333;
            line-height: 1.6;
        }

        .policy-modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .policy-modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .policy-modal-body::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }

        .policy-modal-body::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        .policy-intro {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #667eea;
        }

        .policy-intro p {
            margin: 5px 0;
        }

        .policy-intro strong {
            color: #667eea;
        }

        .policy-section {
            margin-bottom: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            transition: all 0.3s;
        }

        .policy-section:hover {
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
            transform: translateX(5px);
        }

        .policy-section h3 {
            color: #667eea;
            font-size: 18px;
            margin-bottom: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .policy-section h3 i {
            font-size: 20px;
        }

        .policy-list {
            list-style: none;
            padding-left: 0;
            margin: 10px 0;
        }

        .policy-list li {
            padding: 10px 0 10px 30px;
            position: relative;
            color: #555;
        }

        .policy-list li::before {
            content: "→";
            position: absolute;
            left: 8px;
            color: #667eea;
            font-weight: bold;
            font-size: 16px;
        }

        .policy-list li strong {
            color: #333;
            font-weight: 600;
        }

        .policy-footer {
            background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            border: 2px solid #fdcb6e;
        }

        .policy-footer p {
            margin: 10px 0;
            color: #2d3436;
            font-weight: 500;
        }

        .policy-warning {
            color: #d63031 !important;
            font-weight: 600 !important;
            font-size: 16px;
        }

        /* Header düzenlemesi */
        .header {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .header h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }

        /* Info butonu için stil - header içinde sağ tarafa yerleştirildi */
        .policy-info-btn {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 22px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .policy-info-btn:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .policy-info-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .policy-info-btn i {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }

        /* Mobil Uyumluluk */
        @media (max-width: 768px) {
            .policy-modal-content {
                width: 95%;
                margin: 5% auto;
                max-height: 90vh;
            }

            .policy-modal-header h2 {
                font-size: 18px;
            }

            .policy-modal-body {
                padding: 15px;
            }

            .policy-section {
                padding: 15px;
            }

            .policy-section h3 {
                font-size: 16px;
            }

            .policy-list li {
                font-size: 14px;
                padding: 8px 0 8px 25px;
            }

            .header h1 {
                font-size: 20px;
            }

            .policy-info-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
                right: 15px;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 15px;
            }

            .header h1 {
                font-size: 18px;
            }

            .policy-info-btn {
                width: 36px;
                height: 36px;
                font-size: 18px;
                right: 10px;
            }
        }
        
        
        
               .header, .input-area, .content-area, .chat-container, 
.image-preview, .secenekSorular, .enhanced-bubble, .enhanced {
  transition: all 0.6s ease-in-out; /* tüm değişiklikler 0.6sn’de yumuşasın */
} 

div#questionModal {
     top: 0%;
    left: 0%;
    width: 102%;
}
/* 🧮 Math Mode rozeti tasarımı */
.math-mode-indicator {
    position: absolute;
    left: 36%;
    top: 98%;
    transform: translateY(-50%) translateX(-20px);
    background: #ffffff;
    color: #333333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: all 0.6s 
ease-in-out;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 200;
    font-family: sans-serif;
}

/* Görünür hale geldiğinde */
.math-mode-indicator.active {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}


        /* Tooltip alanı */
.search-tooltip {
    position: absolute;
    bottom: 3px;
    left: 2%;
    width: 97%;
    background: #333;
    color: #fff;
     padding: 20px;
    border-radius: 20px;
    font-size: 14px;
    display: flex
    align-items: center;
    gap: 8px;
    opacity: 0;
     z-index: 999999;
    pointer-events: none;
    transition: opacity 0.3s 
ease-in-out;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}
.secenekSorular {
    display: flex;              /* Butonları yan yana dizer */
    flex-wrap: nowrap;          /* Satır kaydırmayı kapatır */
    overflow-x: auto;           /* Yatay kaydırma ekler */
    gap: 10px;                  /* Butonlar arasında boşluk */
    display:none;
    padding: 10px;
    background: white;
    scroll-behavior: smooth;    /* Kaydırma animasyonlu olur */
    border-radius: 10px;
}
.secenekSorular p {
    font-size: 13px;
    font-weight: 200;
    font-family: sans-serif;
    text-align: center;
    width: 90%;
}
.secenekButon {
    background-color: #f0f0f0;
    border-radius: 2px;
    padding: 11px 11px;
    cursor: pointer;
     font-size: 11px;
    transition: all 0.3s 
ease;
    margin: 3px;
    border: 0px;
    width:35%;
    box-shadow: 0px 2px 1px #ddd;
    margin-right: 5px;
}

.secenekButon:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.secenekButon:active {
    transform: translateY(0);
}

/* Aktif olduğunda görünür */
.search-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}
        /* Öneri butonları konteyneri */
.suggestions-container {
    padding: 10px 15px;
    background: transparent;
    position: fixed;
    width:100%;
    z-index: 9999;
    bottom: 9%;
}
.suggestions-scroll {
    display: block;
    gap: 10px;
        padding-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
}
.suggestions-scroll::-webkit-scrollbar {
    height: 4px;
}

.suggestions-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}


.suggestion-btn {
    flex: 0 0 auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px 15px;
    font-size: 12px;
    display: none;
    color: #222222;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s 
ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    margin-top: 13px;
    letter-spacing: 0.2px;
    font-family: sans-serif;
}

button.suggestion-btn i {
    position: absolute;
    right: 25px;
}
.suggestion-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.suggestion-btn i {
    margin-left: 5px;
    font-size: 12px;
}
.secenekSorular:before {
    content: "Başka ?";
    font-size: 14px;
    z-index: 9999999;
    width: 50%;
    display: block;
    float: left;
    font-family: fangsong;
    border-bottom: 0px solid silver;
    padding: 8px;
    position: absolute;
    top: -44px;
    left: 0px;
   background: #ff50c2;
    color: white;
    border-radius: 2px;
    text-align: left;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 75px;
}
.input-area{
    
        padding: 12px !important;
}
.input-wrapper{
    padding: 2px !important;
}
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.suggestion-btn {
    transition: all 0.3s ease;
}


/* Aşağıya kayarak gizlenme animasyonu */
@keyframes slideDownHide {
    0% {
        transform: translateY(0);
        opacity: 1;
        max-height: 200px;
    }
    100% {
        transform: translateY(30px);
        opacity: 0;
        max-height: 0;
    }
}

/* Yukarıdan aşağıya görünme animasyonu (mevcut) */
@keyframes slideDownFade {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Yukarıya kayarak gizlenme animasyonu (mevcut) */
@keyframes slideUpFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 38%;
    display: flex
;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  width: 90%;
  max-width: 400px;
  font-family: sans-serif;
}
.hidden { display: none; }
button {
  cursor: pointer;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    width: 100%;
    font-size: 18px;
}
.btn-yes { background: #28a745; }
.btn-no { background: #dc3545; }
.answer-btn {
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f8f8;
}
.answer-btn:hover {
  background: #e7ffe7;
}


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#evetBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(34,197,94,0.4);
}

#hayirBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(239,68,68,0.4);
}

  /* Dönen efekt */
  #loader i {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }



h3.sorutitle {
    font-size: 22px;
    color: #2980b9;
    font-weight: 500;
    border-bottom: 2px solid #efefef;
    padding: 3px;
    padding-bottom: 11px;
}
        
        
        