/* Fake WhatsApp Chat Generator Styles */

.wa-container {
    width: 350px;
    height: 700px;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5a.5.5 0 0 0 0-1 .5.5 0 0 0 0 1z' fill='%23d6d0c4' fill-opacity='0.5'/%3E%3C/svg%3E");
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.wa-status-bar {
    background: #075e54;
    color: white;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.wa-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header */
.wa-header {
    background: #075e54;
    color: white;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
}

.wa-back {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 2px;
    overflow: hidden;
    background: #ccc;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-contact-info {
    flex-grow: 1;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.wa-status {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.2;
}

.wa-actions {
    display: flex;
    gap: 16px;
    margin-right: 8px;
}

/* Chat Area */
.wa-chat-area {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none; /* Firefox */
}

.wa-chat-area::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.wa-date {
    background: #e1f3fb;
    color: #55626a;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 10px;
    align-self: center;
    margin-bottom: 10px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* Messages */
.wa-msg-wrapper {
    display: flex;
    width: 100%;
}

.wa-msg-wrapper.sent {
    justify-content: flex-end;
}

.wa-msg-wrapper.received {
    justify-content: flex-start;
}

.wa-msg {
    max-width: 80%;
    padding: 6px 7px 8px 9px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 19px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-wrap: break-word;
    color: #111b21;
}

.wa-msg-wrapper.received .wa-msg {
    background-color: #ffffff;
    border-top-left-radius: 0;
}

/* Received Message Tail */
.wa-msg-wrapper.received .wa-msg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

.wa-msg-wrapper.sent .wa-msg {
    background-color: #d9fdd3;
    border-top-right-radius: 0;
}

/* Sent Message Tail */
.wa-msg-wrapper.sent .wa-msg::before {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 8px;
    border-color: transparent transparent transparent #d9fdd3;
}

.wa-msg-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    float: right;
    margin-top: 4px;
    margin-left: 10px;
}

.wa-msg-time {
    font-size: 11px;
    color: #667781;
}

.wa-msg-ticks {
    color: #8696a0;
    display: inline-flex;
    align-items: center;
}

.wa-msg-ticks.read {
    color: #53bdeb; /* WhatsApp blue */
}

/* Viral Branding */
.wa-watermark {
    background: rgba(255, 255, 255, 0.9);
    color: #888;
    text-align: center;
    font-size: 10px;
    padding: 6px 0;
    border-top: 1px solid #eee;
    font-weight: 500;
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr !important;
    }
    .wa-container {
        width: 100%;
        max-width: 400px;
    }
}