/* 🧼 #mobileMenu — Tam Beyaz & Tam Dikdörtgen Tasarım */
#mobileMenu {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border: none !important;
  box-shadow: none !important;
  background-color: #ffffff !important; /* ✅ TAM BEYAZ */
  color: #1e293b; /* slate-700 — okunabilir, sert siyah değil */
  overflow-y: auto;
  z-index: 1055;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Kapama butonu — tam dikdörtgen, köşe yuvarlaması yok */
#mobileMenu .icon-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important; /* ✅ TAM DİKDÖRTGEN */
  transition: background 0.2s ease;
}

#mobileMenu .icon-close::before,
#mobileMenu .icon-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #475569;
  border-radius: 0; /* düz çizgi */
}

#mobileMenu .icon-close::before { transform: rotate(45deg); }
#mobileMenu .icon-close::after { transform: rotate(-45deg); }

#mobileMenu .icon-close:hover {
  background: #e2e8f0;
}

/* İçerik konteyner — köşeler düz */
#mobileMenu .mb-canvas-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.5rem 1.75rem;
}

#mobileMenu .mb-body {
  flex: 1;
  overflow-y: auto;
}

/* Menü listesi */
#mobileMenu .nav-ul-mb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ana menü öğesi — tam dikdörtgen hover alanı */
#mobileMenu .nav-mb-item {
  position: relative;
}

#mobileMenu .mb-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding: 0.75rem 0;
  font-style: normal;
  transition: color 0.2s ease;
  /* ✅ Arkaplan/odak alanı da dikdörtgen */
  position: relative;
}

#mobileMenu .mb-menu-link:hover,
#mobileMenu .mb-menu-link:focus {
  color: #1d4ed8;
}

/* Chevron butonu — düz çizgili ok */
#mobileMenu .btn-open-sub {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-top: 2px solid #64748b;
  border-right: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  border-radius: 0; /* çizgi köşeleri düz */
}

#mobileMenu .mb-menu-link[aria-expanded="true"] .btn-open-sub {
  transform: rotate(135deg);
}

/* Alt menü — kenar çizgisi ve arka plan köşeleri de DÜZ */
#mobileMenu .sub-nav-menu {
  list-style: none;
  padding: 0.75rem 0 0.5rem 1.5rem;
  margin: 0.6rem 0 0;
  border-left: 1px solid #e2e8f0;
}

#mobileMenu .sub-nav-menu .sub-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 0.5rem 0;
  font-style: normal;
  transition: color 0.2s ease;
}

#mobileMenu .sub-nav-menu .sub-nav-link:hover {
  color: #1d4ed8;
  /* ✅ Hover'da arka plan varsa da köşe yuvarlaması yok */
  background-color: transparent; /* açıkçası arka plan istemediğiniz için şeffaf */
}

/* Diğer içerik alanı — sınır çizgisi ve butonlar da DÜZ KÖŞELİ */
#mobileMenu .mb-other-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

#mobileMenu .mb-notice .text-need {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0 !important; /* ✅ TAM DİKDÖRTGEN BUTON */
  transition: background 0.2s ease, color 0.2s ease;
}

#mobileMenu .mb-notice .text-need:hover {
  background-color: #e2e8f0;
  color: #1e3a8a;
}

/* Bilgi listesi — nokta öncesi de düz */
#mobileMenu .mb-info {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  font-style: normal;
}

#mobileMenu .mb-info li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

#mobileMenu .mb-info li::before {
  content: '•';
  color: #cbd5e1;
  font-weight: bold;
  flex-shrink: 0;
}

/* Collapse animasyonu — stil bozulmasın diye köşe koruması */
#mobileMenu .collapse,
#mobileMenu .collapsing {
  border-radius: 0 !important;
}

/* Mobil toolbar styles */
@media (max-width: 768px) {
    .tf-toolbar-bottom {
        display: flex; justify-content: space-around; align-items: center; gap: 12px; flex-wrap: nowrap;
        padding: 8px 0; background-color: #f8f9fa; border-top: 1px solid #e9ecef;
        position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1030;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); box-sizing: border-box; overflow-x: hidden;
    }
    .toolbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 50px; max-width: 70px; font-size: 11px; }
    .toolbar-icon { font-size: 16px; margin-bottom: 2px; }
    .toolbar-label { font-size: 10px; color: #333; white-space: nowrap; }
    .toolbar-close { position: absolute; top: 4px; right: 8px; font-size: 16px; color: #999; cursor: pointer; background: none; border: none; opacity: 0.7; }
    .toolbar-close:hover { color: #333; opacity: 1; }
    html, body { overflow-x: hidden; }
}

.toolbar-reveal {
    display: block; position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #f8f9fa; text-align: center; padding: 4px 0;
    font-size: 12px; color: #555; border-top: 1px solid #ddd; z-index: 1029; cursor: pointer;
}
.toolbar-reveal button {
    background: none; border: none; color: #007bff; font-size: 12px; cursor: pointer; padding: 0;
}
.toolbar-reveal button:hover { text-decoration: underline; }

/* AI Chat Modal Styles */
#aiChatModal .modal-dialog {
    max-width: 400px;
}

#aiChatModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#aiChatModal .modal-header {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

#aiChatModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

#aiChatModal .modal-title i {
    color: #fff !important;
}

#aiChatModal .modal-body {
    padding: 0;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease-out;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
}

.user-message .message-avatar {
    background: #333;
    color: white;
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message .message-content {
    background: #333;
    color: white;
}

.message-text {
    line-height: 1.5;
    margin-bottom: 5px;
}

.message-time {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#chatInput {
    border: none;
    padding: 15px 20px;
    font-size: 14px;
}

#chatInput:focus {
    box-shadow: none;
    border: none;
}

#sendMessageBtn {
    border: none;
    padding: 15px 20px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    transition: all 0.3s ease;
}

#sendMessageBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.3);
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.typing-dots {
    display: flex;
    margin-right: 10px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.fixed-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: bounceIn 0.6s ease-out;
}

.fixed-chat-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: chatButtonFloat 3s ease-in-out infinite;
}

.fixed-chat-button a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
    color: white;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    animation: none;
}

.fixed-chat-button i {
    font-size: 24px;
    z-index: 2;
    position: relative;
    animation: chatIconPulse 2s ease-in-out infinite;
}

.chat-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.3);
    animation: pulse 2s infinite;
    z-index: 1;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    animation: notificationBounce 1.5s ease-in-out infinite;
    z-index: 3;
}

.chat-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.3);
    animation: notificationPulse 1.5s ease-in-out infinite;
}

@keyframes chatButtonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes chatIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes notificationBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #333;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    border-color: #667eea;
    color: #667eea;
    background-color: #fff;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}

.faq-container {
    max-height: 400px;
    overflow-y: auto;
}

.faq-search-container {
    margin-bottom: 15px;
}

.faq-search-container .form-control {
    border-radius: 25px;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    font-size: 14px;
}

.faq-search-container .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.faq-categories {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-category-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #667eea;
    color: white;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.expanded .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.6;
    color: #666;
}

.faq-item.expanded .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
}

.faq-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.faq-loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    #aiChatModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: 80vh;
    }

    #aiChatModal .modal-body {
        height: 350px;
    }

    .message-content {
        max-width: 85%;
    }

    .fixed-chat-button {
        bottom: 100px;
        right: 20px;
    }

    .fixed-chat-button a {
        width: 50px;
        height: 50px;
    }

    .fixed-chat-button i {
        font-size: 20px;
    }

    .faq-container {
        max-height: 300px;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    .faq-categories {
        justify-content: center;
    }
}