/* Meta SDK Bridge - Shared Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

.container {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 480px;
    width: 90%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 4px solid #e0e0e0;
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner.whatsapp {
    border-top-color: #25d366;
}

/* Typography */
h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Icons */
.icon-whatsapp {
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(37, 211, 102, 0.2));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: #fff;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #128c3d 100%);
}

/* Status messages */
.status-msg {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.error {
    color: #e53935;
}

.success {
    color: #43a047;
}

/* States */
#loading-state,
#ready-state,
#sdk-error {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}
