/**
 * FlipPic QR Code Studio — Luxury Print & Digital Tabletop Generator
 * Design System: Luxury Digital Atelier / Photobook Studio
 */

/* Modal Backdrop */
.fp-qr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-qr-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

/* Modal Window Shell */
.fp-qr-modal-shell {
    background: #0f172a;
    border: 1px solid rgba(226, 203, 131, 0.28);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 20px 22px 24px;
    box-sizing: border-box;
    position: relative;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-qr-modal-backdrop.active .fp-qr-modal-shell {
    transform: translateY(0) scale(1);
}

/* Modal Header Bar */
.fp-qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fp-qr-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-qr-modal-title i {
    color: #f59e0b;
    font-size: 17px;
}

.fp-qr-modal-close {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.fp-qr-modal-close:hover {
    background: #334155;
    color: #ffffff;
    transform: scale(1.08);
}

/* The Luxury Card Preview Container */
.fp-qr-card-preview {
    background: #ffffff;
    border: 2px solid #eab308;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    padding: 22px 18px 18px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.fp-qr-badge-top {
    color: #b48324;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fp-qr-album-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 4px;
    word-break: break-word;
}

.fp-qr-album-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 2px;
    font-weight: 500;
}

.fp-qr-job-code {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

/* QR Frame Wrapper (Canvas renders own vibrant gradient border) */
.fp-qr-frame {
    display: inline-block;
    border: none;
    border-radius: 20px;
    padding: 0;
    background: transparent;
    margin: 6px auto 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fp-qr-canvas-preview {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 20px;
}

.fp-qr-scan-hint {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.fp-qr-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 4px 12px;
}

/* Studio Box */
.fp-qr-studio-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.fp-qr-studio-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0f172a;
    border: 1.5px solid #e2cb83;
    color: #e2cb83;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    flex-shrink: 0;
    overflow: hidden;
}

.fp-qr-studio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-qr-studio-info {
    flex: 1;
    min-width: 0;
}

.fp-qr-studio-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-qr-studio-phone {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 2px;
}

.fp-qr-studio-loc {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action Buttons */
.fp-qr-actions-row {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-qr-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.16s ease;
}

.fp-qr-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    filter: brightness(1.06);
}

.fp-qr-btn-group-2 {
    display: flex;
    gap: 10px;
}

.fp-qr-btn-secondary {
    background: #1e293b;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: 600;
    font-size: 12.5px;
    border-radius: 10px;
    padding: 10px 12px;
    flex: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.fp-qr-btn-secondary:hover {
    background: #283548;
    border-color: #f59e0b;
    color: #fbbf24;
}

.fp-qr-btn-pill {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    font-weight: 600;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.fp-qr-btn-pill:hover {
    background: #334155;
    color: #ffffff;
}

/* Admin QR Preview Card */
.fp-qr-admin-preview {
    background: #090d16;
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-sizing: border-box;
}

.fp-qr-admin-canvas-box {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    display: inline-block;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    margin-bottom: 14px;
}

.fp-qr-admin-canvas {
    display: block;
    width: 230px;
    height: 230px;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .fp-qr-modal-shell {
        padding: 16px 14px 20px;
        border-radius: 20px;
    }
    .fp-qr-canvas-preview {
        width: 185px;
        height: 185px;
    }
    .fp-qr-album-title {
        font-size: 19px;
    }
}

