/* Legal Chatbot - Minimal CSS */

/* Ana container - çakışma önleme */
#legal-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

/* Toggle button */
.legal-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffd700;
    border: 2px solid #ffd700;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.legal-chatbot-toggle:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: scale(1.1);
}

/* Chat window */
.legal-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border: 2px solid #ffd700;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.legal-chatbot-window.active {
    display: flex;
}

/* Header */
.legal-chatbot-header {
    background: #2d2d2d;
    color: #ffd700;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-chatbot-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
}

.legal-chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-chatbot-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.legal-chatbot-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.legal-chatbot-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.legal-chatbot-close {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-chatbot-close:hover {
    color: #fff;
}

/* Profil Kartı */
.legal-chatbot-profile-card {
    background: #2d2d2d;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffd700;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.legal-chatbot-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 24px;
    flex-shrink: 0;
}

.legal-chatbot-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-chatbot-profile-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.legal-chatbot-profile-details {
    flex: 1;
}

.legal-chatbot-profile-details h4 {
    margin: 0 0 5px 0;
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.legal-chatbot-profile-title {
    margin: 0 0 15px 0;
    color: #ccc;
    font-size: 14px;
}

.legal-chatbot-profile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-chatbot-call-btn {
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
}

.legal-chatbot-call-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.legal-chatbot-email-btn {
    background: #2d2d2d;
    color: #ffd700;
    border: 1px solid #ffd700;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    display: block;
}

.legal-chatbot-email-btn:hover {
    background: #ffd700;
    color: #1a1a1a;
}

.legal-chatbot-address {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    margin: 5px 0;
}

.legal-chatbot-linkedin-btn {
    background: #0077b5;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.legal-chatbot-linkedin-btn:hover {
    background: #005885;
    transform: scale(1.05);
}

/* Messages */
.legal-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
}

.legal-chatbot-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.legal-chatbot-message.user {
    background: #ffd700;
    color: #1a1a1a;
    margin-left: auto;
    text-align: right;
}

.legal-chatbot-message.bot {
    background: #2d2d2d;
    color: #fff;
    margin-right: auto;
}

/* Input */
.legal-chatbot-input {
    padding: 15px;
    background: #2d2d2d;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 10px;
}

.legal-chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ffd700;
    border-radius: 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
}

.legal-chatbot-input input:focus {
    outline: none;
    border-color: #fff;
}

.legal-chatbot-input button {
    padding: 10px 20px;
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.legal-chatbot-input button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #legal-chatbot {
        bottom: 15px;
        right: 15px;
    }
    
    .legal-chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 75px;
        right: 0;
    }
    
    .legal-chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Çakışma önleme - diğer elementleri etkilemez */
#legal-chatbot * {
    box-sizing: border-box;
}

/* Swiper.js çakışmasını önle */
.swiper-container,
.swiper,
[class*="swiper"] {
    z-index: 1000 !important;
}

/* Bootstrap çakışmasını önle */
.container,
.row,
.col {
    z-index: auto !important;
}

/* Diğer chatbot'ları etkilemez */
#legal-chatbot {
    isolation: isolate;
}