/* Chat Widget Styles */
.chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Mobile: Clear bottom navbar */
@media (max-width: 991.98px) {
    .chat-widget-container {
        bottom: 85px;
        right: 15px;
    }
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f58322, #ff9f4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 131, 34, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-window.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-header {
    background: #f58322;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-footer {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 15px;
    outline: none;
}

.chat-footer button {
    background: #f58322;
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Auth Prompt */
.auth-prompt {
    text-align: center;
    padding: 40px 20px;
}

.auth-prompt i {
    font-size: 50px;
    color: #f58322;
    margin-bottom: 20px;
}

/* Messages */
.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background: #f58322;
    color: white;
    border-bottom-right-radius: 2px;
}

.message.received {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-meta {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
    display: block;
}