/* assets/css/style.css */

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    z-index: 1000;
    font-family: Arial, sans-serif;
    display: none;
}

/* Chat Header */
.chat-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat Body */
.chat-body {
    background: #f5f5f5;
    height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 15px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* Messages */
.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    word-break: break-word;
}

.user-message {
    background: #3498db;
    color: white;
    margin-left: auto;
}

.support-message {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.support-message * {
    color: #010101;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

/* Input Area */
.chat-input {
    background: white;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    border: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    min-height: 40px;
}

.send-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.send-btn:hover {
    background: #2980b9;
}

/* Chat Toggle */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .chat-container {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
    }
}

/* Message Status */
.message-status {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    justify-content: flex-end;
}

.status-tick {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: relative;
}

.progress-circle {
    border: 2px solid #ccc;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
}

.tick {
    background: #64b520;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tick.blue {
    background: #3498db;
}

.tick::after {
    content: '✓';
    font-size: 10px;
    color: white;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 15px;
    margin-left: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: #ddd;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }
}