:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

header p {
    margin: 5px 0 0;
    color: #666;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: #357ABD;
}

#cardResult {
    margin-top: 30px;
    text-align: center;
}

#cardContainer {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: var(--box-shadow);
    background-color: #e9e9e9;
}

#cardBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#cardText {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
}

#cardText p {
    margin: 10px 0;
}

#cardText .recipient {
    font-size: 1.2em;
    font-weight: bold;
}

#cardText .message {
    font-size: 1em;
    font-style: italic;
}

#cardText .sender {
    font-size: 1.1em;
    text-align: right;
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons button {
    flex-grow: 1;
    margin-top: 0;
}

.share-button {
    background-color: #25D366;
    /* Warna WhatsApp */
}

.share-button:hover {
    background-color: #1EBE57;
}

.secondary-button {
    background-color: #777;
}

.secondary-button:hover {
    background-color: #555;
}

.share-info {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================== TAMBAHAN BARU ================== */
.watermark {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    font-size: 10px;
    color: #fff;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    /* Agar tidak bisa diklik/interferensi */
}

