/* ========================================
   CHAT WIDGET STYLES
   Moved from base.html inline styles
   ======================================== */

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: all 0.3s ease;
}

.chat-widget-button:hover {
    transform: scale(1.1);
}

/* Magnifying Glass Icon */
.magnifying-glass-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnifying-glass-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.magnifying-glass-icon::after {
    content: '';
    width: 3px;
    height: 8px;
    background: white;
    position: absolute;
    bottom: 2px;
    right: 2px;
    transform: rotate(45deg);
    transform-origin: top left;
}

.chat-widget-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;

    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

/* Chat Widget Header */
.chat-widget-header {
    padding: 15px;
    background: #2ecc71;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Chat Widget Body */
.chat-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 95%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.chat-message.user {
    align-self: flex-end;
    background: #2ecc71;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.chat-message.bot {
    align-self: flex-start;
    background: #f8f9fa;
    color: #2c3e50;
    border-radius: 15px 15px 15px 0;
}

/* Chat Widget Footer */
.chat-widget-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
}

.chat-send-btn {
    padding: 8px 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-send-btn:hover {
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-widget,
    .chat-widget-container,
    #chatWidgetButton,
    #chatWidgetContainer {
        display: none !important;
    }
} 