/**
 * Chat Widget Styles
 * Common styles for chat widget across all pages
 */

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
}

.chat-widget-header {
    background: #008374;
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chat-bot-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-time {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
}

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

.chat-message {
    display: flex;
    margin-bottom: 10px;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.bot .chat-bubble {
    background: #f0f2f5;
    color: #1c1e21;
    border-top-left-radius: 5px;
}

.chat-message.user .chat-bubble {
    background: #008374;
    color: #ffffff;
    border-top-right-radius: 5px;
}

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

.chat-widget-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    outline: none;
    font-size: 0.95rem;
}

.chat-widget-footer button {
    background: #008374;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-widget-footer button:hover {
    background: #006d61;
}

.chat-widget-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #008374;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-widget-button:hover {
    background: #006d61;
    transform: scale(1.1);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9rem;
    color: #666;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.chat-submit-btn {
    background: #008374;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-submit-btn:hover {
    background: #006d61;
}

.chat-widget-footer input:disabled {
    background-color: #f0f2f5;
    cursor: not-allowed;
}

.chat-widget-footer button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-widget-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

