
/* ==============================
   Main WhatsApp Chat Layout
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #d1d7db;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 100%;
    max-width: 1100px;
    height: 95vh;
    display: flex;
    flex-direction: column;
    background: #efeae2;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Header */

.chat-header {
    height: 65px;
    background: #075e54;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-icon {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 50%;
    background-color: #d9fdd3;
    color: #075e54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid #fff;
}

.profile-info h3 {
    font-size: 16px;
    font-weight: 500;
}

.profile-info p {
    font-size: 12px;
    margin-top: 4px;
    color: #d6e8e3;
}

/* Chat Body */

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    background-color: #efeae2;
    background-image: radial-gradient(#ffffff55 1px, transparent 1px);
    background-size: 25px 25px;
}

/* ==============================
   Shared Chat Messages
================================ */

.chat-body .setu-bot-message,
.chat-body .setu-user-message {
    max-width: 80%;
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13);
}

.chat-body .setu-bot-message {
    align-self: flex-start;
    margin-right: auto;
    background: #ffffff;
    color: #111b21;
    border-top-left-radius: 0;
}

.chat-body .setu-user-message {
    align-self: flex-end;
    margin-left: auto;
    background: #d9fdd3;
    color: #111b21;
    border-top-right-radius: 0;
}

.chat-body .setu-bot-message p,
.chat-body .setu-user-message p {
    margin: 0 0 6px;
}

.chat-body .setu-bot-message p:last-child,
.chat-body .setu-user-message p:last-child {
    margin-bottom: 0;
}

.chat-body .setu-bot-message ol {
    margin: 4px 0 8px;
    padding-left: 20px;
}

.chat-body .setu-bot-message a {
    color: #027eb5;
    word-break: break-all;
}

/* Option Buttons */

.chat-body .setu-scheme-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.chat-body .setu-scheme-option {
    padding: 9px 12px;
    border: 1px solid #d1d7db;
    border-radius: 18px;
    background: #ffffff;
    color: #027eb5;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.chat-body .setu-scheme-option:hover:not(:disabled) {
    background: #f0f2f5;
}

.chat-body .setu-scheme-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Need More Help Button */

.chat-body .setu-need-help-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border: none;
    border-radius: 18px;
    background: #075e54;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.chat-body .setu-need-help-button:disabled,
.chat-body .setu-need-help-button.is-disabled {
    background: #b7c4bc;
    cursor: not-allowed;
}

/* Browse More and End Chat Buttons */

.chat-body .setu-chat-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.chat-body .setu-action-button {
    padding: 9px 12px;
    border: 1px solid #d1d7db;
    border-radius: 18px;
    background: #ffffff;
    color: #027eb5;
    font-size: 14px;
    cursor: pointer;
}

.chat-body .setu-action-button:hover {
    background: #f0f2f5;
}

/* Footer */

.chat-footer {
    min-height: 65px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    flex-shrink: 0;
}

.chat-footer input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: white;
    border-radius: 25px;
    padding: 13px 18px;
    font-size: 14px;
}

.send-button {
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    background: #075e54;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-button.is-loading {
    opacity: 0.6;
    cursor: wait;
}

/* Mobile Layout */

@media (max-width: 600px) {
    body {
        background: #efeae2;
    }

    .chat-container {
        height: 100vh;
        width: 100%;
        box-shadow: none;
    }

    .chat-body {
        background-size: 22px 22px;
    }
}
