#aiAsistanWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow: hidden;
}

#aiAsistanWidget .header {
    background: linear-gradient(135deg, #D9AAB7, #C799A6);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.control-btn:hover,
.control-btn:active,
.control-btn:focus {
    background: rgba(255,255,255,0.3);
    outline: none;
}

/* Mobil cihazlar için daha büyük dokunma alanı */
@media (max-width: 768px) {
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    #aiAsistanWidget {
        width: 95vw;
        right: 2.5vw;
        left: 2.5vw;
    }
}

#aiMessages {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 15px;
    font-size: 14px;
    background-color: #f8f9fa;
    scrollbar-width: thin;
    scrollbar-color: #D9AAB7 #f8f9fa;
    height: 300px;
    max-height: 300px;
}

#aiMessages::-webkit-scrollbar {
    width: 6px;
}

#aiMessages::-webkit-scrollbar-track {
    background: #f8f9fa;
}

#aiMessages::-webkit-scrollbar-thumb {
    background-color: #D9AAB7;
    border-radius: 6px;
}

#aiMessages div {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

#aiMessages div[style*="text-align:right"] {
    background-color: #E3F2FD;
    margin-left: auto;
    border-radius: 18px 18px 0 18px;
    border-bottom-right-radius: 4px;
    color: #2962FF;
}

#aiMessages div[style*="text-align:left"] {
    background-color: #FFF3E0;
    margin-right: auto;
    border-radius: 18px 18px 18px 0;
    border-bottom-left-radius: 4px;
    color: #E65100;
}

#aiAsistanWidget .input-area {
    display: flex;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

#aiInput {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0 0 0 10px;
    font-size: 14px;
    outline: none;
}

#aiGonder {
    padding: 10px 15px;
    background: #D9AAB7;
    color: #fff;
    border: none;
    border-radius: 0 0 10px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#aiGonder:hover {
    background-color: #C799A6;
}

/* Fade-in animasyonu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #D9AAB7, #C799A6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.floating-chat-btn .chat-icon {
    font-size: 20px;
}

.floating-chat-btn .chat-text {
    font-size: 14px;
}

/* Mobil için floating button ayarları */
@media (max-width: 768px) {
    .floating-chat-btn {
        max-width: 250px;
        padding: 12px 16px;
        font-size: 13px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-chat-btn .chat-text {
        font-size: 13px;
    }
    
    .floating-chat-btn .chat-icon {
        font-size: 18px;
    }
}

/* Kullanıcı Bilgi Formu Stilleri */
.user-info-form {
    width: 100%;
    height: 100%;
}

.form-content {
    padding: 20px;
    background: #f8f9fa;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #D9AAB7;
    box-shadow: 0 0 0 3px rgba(217, 170, 183, 0.1);
}

.start-chat-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #D9AAB7 0%, #C799A6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 170, 183, 0.3);
}

.start-chat-btn:active {
    transform: translateY(0);
}

.end-chat-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.3s ease;
}

.end-chat-btn:hover {
    background: #c82333;
}

.chat-area .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}