/* WhatsApp Preview Styles */
.whatsapp-preview-container {
    background: linear-gradient(to bottom, #dddbd1, #d2dbdc);
    padding: 20px;
    border-radius: 8px;
    min-height: 300px;
    max-height: 1000px;
    overflow-y: auto;
}

.whatsapp-message-bubble {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Robzen, "Helvetica Neue", Arial, sans-serif;
}

.whatsapp-header {
    background: #f0f0f0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.whatsapp-header .header-text {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    color: #000;
}

.whatsapp-header .header-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.whatsapp-header .header-document {
    padding: 16px;
    font-size: 14px;
    color: #555;
    background: #f8f8f8;
}

.whatsapp-header .header-placeholder {
    padding: 40px 16px;
    text-align: center;
    color: #999;
    font-style: italic;
    background: #fafafa;
}

.whatsapp-body {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.whatsapp-footer {
    padding: 8px 16px 12px;
    font-size: 12px;
    color: #8696a0;
    font-style: italic;
}

.whatsapp-buttons {
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
}

.whatsapp-button {
    padding: 12px 16px;
    text-align: center;
    color: #00a5f4;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.whatsapp-button:last-child {
    border-bottom: none;
}

.whatsapp-button:hover {
    background-color: #f5f5f5;
}

/* SMS Preview Styles */
.sms-preview-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.sms-message-bubble {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 85%;
    padding: 12px 16px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sms-message-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent #fff transparent;
}

.sms-body {
    font-size: 15px;
    line-height: 1.4;
    color: #000;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-preview-container,
    .sms-preview-container {
        min-height: 300px;
        padding: 15px;
    }

    .sms-message-bubble {
        max-width: 90%;
    }
}
