﻿
/*.qr-sidebar {
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 20px;
}

    .qr-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .qr-sidebar::-webkit-scrollbar-thumb {
        background: #bcbcbc;
        border-radius: 3px;
    }

.qr-right-panel {
    position: relative;
    right: 0;
    top: 0;
    width: 30%;
    height: 100vh;
    background: #fafafa;
    border-left: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}*/

/*#frameWrapper {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}*/

.frame-selector {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.frame-option {
    padding: 12px;
    background: #f1f3f5;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: .2s;
    border: 1px solid transparent;
}
    .frame-option.active {
        border-color: #0d6efd;
        background: #e7f1ff;
    }

    .frame-option:hover {
        background: #e8eefc;
        border-color: #528bff;
    }

/*@media (max-width: 992px) {
    .qr-right-panel {
        position: relative;*/ /* or keep float if needed */
        /*width: 33.3333%;*/ /* col-lg-4 */
    /*}

    #frameWrapper {
        max-width: 300px;*/ /* QR preview smaller on mobile */
        /*width: 100%;
    }*/
    /*.qr-right-panel {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        margin-top: 20px;
    }*/
/*}*/
.pattern-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.pattern-option {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    text-align: center;
}

    .pattern-option:hover {
        border-color: #6c757d;
    }

    .pattern-option.selected {
        border-color: #0d6efd;
        background: #e7f1ff;
    }

    .pattern-option svg {
        width: 80px;
        height: 80px;
        display: block;
        margin: auto;
    }


/* SIDEBAR */
.qr-sidebar {
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 20px;
}

    .qr-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .qr-sidebar::-webkit-scrollbar-thumb {
        background: #bcbcbc;
        border-radius: 3px;
    }

/* QR PREVIEW */
.qr-right-panel {
    position: relative;
    background: #fafafa;
    border-left: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100vh;
}

#frameWrapper {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

/* Responsive behavior */
@media (max-width: 991px) {
    .qr-sidebar {
        height: auto;
        border-right: none;
    }

    .qr-right-panel {
        position: fixed;
        right: 22px;
        width: 150px;
        height: 150px;
        padding: 5px;
        border-left: none;
        border-radius: 5px;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    #frameWrapper {
       /* width: 100%;
        height: 100%;*/
        padding: 10px;
    }
}
/* Full-screen preloader */
.preloader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

    .preloader.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Modern spiral preloader */
.spiral {
    width: 90px;
    height: 90px;
    position: relative;
}

    .spiral::before,
    .spiral::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 10px solid transparent;
        animation: spin 2s linear infinite;
    }

    .spiral::before {
        border-top-color: #00d4ff;
        border-right-color: #00d4ff;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }

    .spiral::after {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #00d4ff;
        border-left-color: #00d4ff;
        animation-direction: reverse;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Optional pulse effect */
.spiral {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.6);
    }
}