/* Shared Close Button - Used across all templates */
.close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    font-family: sans-serif;
    backdrop-filter: blur(5px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Light theme variant for templates with light backgrounds */
.close-btn.light {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #333;
}

.close-btn.light:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Hide close button when in iframe (preview mode) */
body.in-iframe .close-btn {
    display: none !important;
}