.main-body-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
}

.main-qr-container {
    max-height: 700px;
    width: 620px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-radius: 25px;
    background: #323232;
}

.secondary-qr-section {
    display: flex;
    height: 600px;
    padding: 50px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 20px;
    background: #323232;
    box-shadow: -5.41px 3.551px 0 0 rgba(12, 12, 12, 0.7),
        5.41px -3.551px 0 0 rgba(88, 88, 88, 0.7);
}

.qr-section {
    display: flex;
    width: 500px;
    height: 500px;
    max-width: 100%;
    max-height: 100%;
    padding: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;

    /* ha */
    box-shadow: 2px 2px 2px 0 #fff inset,
        -2px -2px 4px 0 rgba(0, 0, 0, 0.5) inset;
}

/* Ensure QR code fits within container */
.qr-section canvas,
.qr-section svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.button-section {
    display: flex;
    height: 60px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
    background: #323232;
    box-shadow: -2.861px 2.073px 0 0 rgba(12, 12, 12, 0.7),
        2.861px -2.073px 0 0 rgba(88, 88, 88, 0.7);
}
.customize-buttons {
    background-color: transparent;
}

.dropdown {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dropdown:hover {
    transform: translateY(-2px);
}

.dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 8px;
    background: #323232;
    box-shadow: -3px 3px 0 0 rgba(12, 12, 12, 0.7),
        3px -3px 0 0 rgba(88, 88, 88, 0.7);
    transition: all 0.2s ease;
}

.dropdown:hover img {
    box-shadow: -1px 1px 0 0 rgba(12, 12, 12, 0.7),
        1px -1px 0 0 rgba(88, 88, 88, 0.7);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%; /* Position above the trigger with more space */
    background: #323232;
    min-width: 180px;
    border-radius: 15px;
    padding: 12px;
    z-index: 1000;
    box-shadow: -5px 5px 10px 0 rgba(12, 12, 12, 0.8),
        5px -5px 10px 0 rgba(88, 88, 88, 0.8);
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-content button {
    background: #2a2a2a;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: inset -2px 2px 0 0 rgba(12, 12, 12, 0.5),
        inset 2px -2px 0 0 rgba(88, 88, 88, 0.5);
}

.dropdown-content button:hover {
    background: #404040;
    color: #00ff88;
    box-shadow: inset -3px 3px 0 0 rgba(12, 12, 12, 0.7),
        inset 3px -3px 0 0 rgba(88, 88, 88, 0.7);
    transform: translateY(-1px);
}

.dropdown-content button:active {
    background: #1a1a1a;
    transform: translateY(0);
    box-shadow: inset -1px 1px 0 0 rgba(12, 12, 12, 0.3),
        inset 1px -1px 0 0 rgba(88, 88, 88, 0.3);
}

/* Add a subtle arrow indicator */
.dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #323232;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-body-container {
        gap: 30px;
        padding: 15px;
    }

    .main-qr-container {
        width: 550px;
        max-height: 650px;
    }

    .secondary-qr-section {
        height: 550px;
        padding: 40px;
    }

    .qr-section {
        width: 450px;
        height: 450px;
        padding: 45px 40px 35px 40px;
    }
}

@media (max-width: 1024px) {
    .main-body-container {
        gap: 25px;
        padding: 15px;
    }

    .main-qr-container {
        width: 480px;
        max-height: 600px;
    }

    .secondary-qr-section {
        height: 480px;
        padding: 35px;
    }

    .qr-section {
        width: 380px;
        height: 380px;
        padding: 40px 35px 30px 35px;
    }

    .button-section {
        height: 55px;
        padding: 8px 15px;
        gap: 15px;
    }

    .dropdown img {
        width: 35px;
        height: 35px;
        padding: 7px;
    }
}

@media (max-width: 768px) {
    .main-body-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px;
    }

    .main-qr-container {
        width: 100%;
        max-width: 420px;
        max-height: none;
        padding: 8px;
        gap: 12px;
    }

    .secondary-qr-section {
        height: 380px;
        padding: 25px;
    }

    .qr-section {
        width: 320px;
        height: 320px;
        padding: 30px 25px 25px 25px;
    }

    .button-section {
        height: 50px;
        padding: 6px 12px;
        gap: 12px;
    }

    .dropdown img {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .dropdown-content {
        min-width: 160px;
        padding: 10px;
        border-radius: 12px;
    }

    .dropdown-content button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-body-container {
        padding: 8px;
        gap: 15px;
    }

    .main-qr-container {
        max-width: 100%;
        padding: 6px;
        gap: 10px;
        border-radius: 20px;
        width: 100%;
        max-width: 460px;
    }

    .secondary-qr-section {
        height: 320px;
        padding: 20px;
        border-radius: 15px;
    }

    .qr-section {
        width: 270px;
        height: 270px;
        padding: 25px;
        border-radius: 8px;
        max-width: calc(100vw - 80px);
        max-height: calc(100vw - 80px);
    }

    .button-section {
        height: 45px;
        padding: 5px 10px;
        gap: 10px;
        border-radius: 15px;
    }

    .dropdown img {
        width: 28px;
        height: 28px;
        padding: 5px;
        border-radius: 8px;
    }

    .dropdown-content {
        min-width: 140px;
        padding: 8px;
        border-radius: 10px;
        position: fixed;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        bottom: auto !important;
    }

    .dropdown-content button {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
}
@media (max-width: 360px) {
    .main-qr-container {
        padding: 4px;
        gap: 8px;
        border-radius: 18px;
        width: 100%;
        max-width: 340px;
    }

    .secondary-qr-section {
        height: 280px;
        padding: 15px;
    }

    .qr-section {
        width: 240px;
        height: 240px;
        padding: 20px;
        max-width: calc(100vw - 60px);
        max-height: calc(100vw - 60px);
    }

    .button-section {
        height: 40px;
        padding: 4px 8px;
        gap: 8px;
        border-radius: 12px;
    }

    .dropdown img {
        width: 24px;
        height: 24px;
        padding: 4px;
        border-radius: 6px;
    }

    .dropdown-content {
        min-width: 120px;
        padding: 6px;
    }

    .dropdown-content button {
        padding: 6px 10px;
        font-size: 11px;
    }
} /* Height-based responsive adjustments */
@media (max-height: 700px) {
    .main-qr-container {
        max-height: 500px;
    }

    .secondary-qr-section {
        height: 400px;
        padding: 30px;
    }

    .qr-section {
        width: 320px;
        height: 320px;
    }
}

@media (max-height: 600px) {
    .main-qr-container {
        max-height: 450px;
    }

    .secondary-qr-section {
        height: 350px;
        padding: 25px;
    }

    .qr-section {
        width: 280px;
        height: 280px;
        padding: 25px 20px 20px 20px;
    }
}
