/* QR Modal Styles */
#qrModal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal dialog centering and sizing */
#qrModal .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

/* Modal content styling */
#qrModal .modal-content {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    height: auto; /* Override inline height: 100% */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* QR code container */
#qrModal .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* QR code placeholder (for generated QR code) */
#qrModal .mx-auto {
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Ensure QR code image fits properly */
#qrModal .mx-auto img {
    max-width: 100%;
    max-height: 100%;
}

/* Dashed divider */
#qrModal hr {
    border-top: 2px dashed #d4a373; /* Soft gold to match wedding theme */
    margin: 1rem 0;
    width: 80%;
    opacity: 0.7;
}

/* Name section */
#qrModal .text-center > div[style*="margin-bottom"] {
    font-family: "Playfair Display", serif;
    text-align: center;
}

/* Name label */
#qrModal .text-center > div[style*="margin-bottom"] > div[style*="color"] {
    font-size: 1rem;
    color: #b2b2b2;
    margin-bottom: 0.5rem;
    font-family: "Roboto", sans-serif;
}

/* Name value */
#qrModal
    .text-center
    > div[style*="margin-bottom"]
    > div:not([style*="color"]) {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    font-family: "Playfair Display", serif;
}

/* Close button */
#qrModal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#qrModal .btn-close svg {
    stroke: #333;
    width: 24px;
    height: 24px;
}

#qrModal .btn-close:hover svg {
    stroke: #d4a373;
    transform: scale(1.1);
}

/* Animation for modal fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #qrModal .modal-dialog {
        margin: 0.5rem;
    }

    #qrModal .modal-content {
        padding: 1.5rem;
    }

    #qrModal .mx-auto {
        width: 150px;
        height: 150px;
    }

    #qrModal .text-center > div[style*="margin-bottom"] > div[style*="color"] {
        font-size: 0.9rem;
    }

    #qrModal
        .text-center
        > div[style*="margin-bottom"]
        > div:not([style*="color"]) {
        font-size: 1.1rem;
    }
}
