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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

nav a {
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    background: #3498db;
    color: #ffffff;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.image-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.5rem;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.placeholder {
    padding: 3rem 1rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.file-input-wrapper {
    width: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
}

.file-input-wrapper:hover {
    border-color: #3498db;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

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

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.fullscreen-close:hover {
    color: #3498db;
}

/* Embed Box Styling */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #64748b;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1eb857;
}

.btn-email {
    background-color: #0284c7;
}

.btn-email:hover {
    background-color: #0369a1;
}

/* Chat UI Styling */
.chat-container {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-header {
    background: #2c3e50;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    padding: 1rem;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-bubble-me {
    align-self: flex-end;
    background-color: #3498db;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-bubble-other {
    align-self: flex-start;
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.chat-bubble-me .chat-sender {
    font-weight: 600;
    color: #e0f2fe;
}

.chat-bubble-me .chat-time {
    color: #bae6fd;
}

.chat-bubble-other .chat-sender {
    font-weight: 600;
    color: #334155;
}

.chat-bubble-other .chat-time {
    color: #94a3b8;
}

.chat-text {
    white-space: pre-wrap;
}

.chat-form {
    display: flex;
    padding: 0.75rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #3498db;
}

.chat-send-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

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

.embed-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
}

.embed-box h3 {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.embed-input-group {
    display: flex;
    gap: 0.5rem;
}

.embed-input-group textarea {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    background: #ffffff;
    resize: none;
    height: 60px;
}

.btn-copy {
    white-space: nowrap;
    width: auto;
    padding: 0 1.25rem;
}

