/* QM Beautiful Admin Panel - Premium Look */
.bluepiquote-wrapper {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bluepiquote-container {
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Premium Header Redesign */
.bluepiquote-settings-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    padding: 25px 30px !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
    display: block !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.bluepiquote-settings-header::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

.bluepiquote-settings-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -20% !important;
    width: 80% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(255,255,255,0) 70%) !important;
    transform: rotate(30deg) !important;
    pointer-events: none !important;
}

.bluepiquote-settings-logo {
    width: 85px !important;
    height: 85px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    display: block !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    padding: 12px !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    float: left !important;
    margin-right: 20px !important;
}

.bluepiquote-settings-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.bluepiquote-title {
    z-index: 1;
    display: block;
    text-align: left !important;
    overflow: hidden;
    padding-top: 12px;
}

.bluepiquote-title h1 {
    margin: 0 0 2px 0 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.bluepiquote-version {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    margin: 0 !important;
}

/* Tabs */
.bluepiquote-tabs-wrapper {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.bluepiquote-tabs {
    display: flex;
    padding: 0 30px;
    overflow-x: auto;
}

.bluepiquote-tab {
    padding: 18px 24px;
    color: #64748b !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.bluepiquote-tab:hover {
    color: #0652B7;
}

.bluepiquote-tab.active {
    color: #0652B7;
    border-bottom-color: #0652B7;
}

/* Cards */
.bluepiquote-form {
    padding: 30px;
}

.bluepiquote-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bluepiquote-card h3 {
    margin: 0 0 20px 0;
    color: #0652B7;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Fields */
.bluepiquote-field {
    margin-bottom: 24px;
}

.bluepiquote-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.bluepiquote-required {
    color: #ef4444;
}

.bluepiquote-input {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #334155 !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.bluepiquote-input:hover {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

.bluepiquote-input:focus {
    outline: none !important;
    border-color: #0ea5e9 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

.bluepiquote-field p {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

.bluepiquote-field.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
}

.bluepiquote-field.checkbox input {
    margin-top: 4px;
}

.bluepiquote-field.checkbox strong {
    color: #1e293b;
}

.bluepiquote-field.checkbox span {
    color: #64748b;
    font-size: 14px;
}

/* Buttons */
.bluepiquote-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-right: 12px;
    margin-bottom: 12px;
}

.bluepiquote-btn-primary {
    background: #0652B7;
    color: white;
}

.bluepiquote-btn-primary:hover {
    background: #0a3d87;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(6, 82, 183, 0.3);
}

.bluepiquote-btn-secondary {
    background: #f8f9fa;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.bluepiquote-btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* Footer */
.bluepiquote-footer {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .bluepiquote-settings-header {
        padding: 20px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .bluepiquote-settings-logo {
        width: 80px !important;
        height: 80px !important;
        font-size: 24px !important;
    }

    .bluepiquote-tabs {
        padding: 0 15px;
    }

    .bluepiquote-form,
    .bluepiquote-footer {
        padding: 20px;
    }

    .bluepiquote-input {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 12px;
    }

    .bluepiquote-pagination {
        flex-wrap: wrap;
    }

    .bluepiquote-btn-lg {
        font-size: 14px;
    }
}

/* Image Upload - Logo Style */
.bluepiquote-image-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s;
}

.bluepiquote-image-upload:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.bluepiquote-image-preview {
    flex-shrink: 0;
}

#bluepiquote-logo-preview {
    width: 180px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
}

.bluepiquote-image-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bluepiquote-field .bluepiquote-upload-btn {
    padding: 10px 16px;
    background: #0066cc;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.bluepiquote-field .bluepiquote-upload-btn:hover {
    background: #0052a3;
}

.bluepiquote-field .bluepiquote-remove-btn {
    padding: 10px 16px;
    background: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bluepiquote-field .bluepiquote-remove-btn:hover {
    background: #c1121f;
}

.bluepiquote-field .bluepiquote-help-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.bluepiquote-optional {
    color: #666;
    font-weight: normal;
}

/* Responsive */
@media (max-width: 480px) {
    .bluepiquote-image-upload {
        flex-direction: column;
        text-align: center;
    }

    #bluepiquote-logo-preview {
        width: 150px;
        height: 75px;
    }
}

/* brand color picker */
.bluepiquote-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    flex-wrap: wrap;
}

.bluepiquote-color-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #0066cc;
    flex-shrink: 0;
}

.bluepiquote-color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bluepiquote-color-swatch {
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all .2s;
}

.bluepiquote-color-swatch:hover {
    transform: scale(1.15);
}

.bluepiquote-color-swatch.active {
    border: 4px solid #333;
    transform: scale(1.1);
}

.bluepiquote-color-custom input[type="color"] {
    opacity: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
}

.bluepiquote-color-custom-icon {
    width: 40px;
    height: 40px;
    background: #f1f3f5;
    border: 3px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.bluepiquote-action-save-btn {
    display: flex;
    margin-top: 20px;
}

/* toggle */

/* Modern On/Off Toggle Switch */
.bluepiquote-toggle-field {
    margin: 20px 0;
}

.bluepiquote-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
}

.bluepiquote-toggle-text {
    font-weight: 600;
    color: #333;
}

.bluepiquote-toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.bluepiquote-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bluepiquote-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 30px;
    transition: 0.3s;
}

.bluepiquote-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ON State */
.bluepiquote-toggle-switch input:checked+.bluepiquote-toggle-slider {
    background: #0066cc;
}

.bluepiquote-toggle-switch input:checked+.bluepiquote-toggle-slider:before {
    transform: translateX(26px);
}

/* Optional: Focus style */
.bluepiquote-toggle-switch input:focus+.bluepiquote-toggle-slider {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

/* email template */
.bluepiquote-card .bluepiquote-textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.bluepiquote-card code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #0066cc;
}

/* customer log */

.bluepiquote-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bluepiquote-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14.5px;
}

.bluepiquote-table th {
    background: #0066cc;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bluepiquote-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bluepiquote-table tr:hover {
    background: #f8fbff;
}

/* Pagination */
.bluepiquote-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 8px;
    user-select: none;
}

.bluepiquote-page-btn {
    padding: 10px 18px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bluepiquote-page-btn:hover:not(:disabled) {
    background: #0066cc;
    color: white;
}

.bluepiquote-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bluepiquote-page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bluepiquote-page-num {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f3f5;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bluepiquote-page-num.active,
.bluepiquote-page-num:hover {
    background: #0066cc;
    color: white;
}

.bluepiquote-page-dots {
    color: #999;
    padding: 0 4px;
}



/* ==================== POPUP CSS (must be here or in your CSS file) ==================== */
/* Popup Overlay */
.bluepiquote-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.bluepiquote-popup-overlay.show {
    display: flex !important;
}

.bluepiquote-popup-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bluepiquote-popup-header {
    padding: 15px;
    background: #0066cc;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bluepiquote-popup-header h3 {
    margin: 0;
    font-size: 15px;
}

.bluepiquote-popup-header .bluepiquote-popup-close {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    color: #a30000;
    border-radius: 50%;
    font-size: 13px;
}

.bluepiquote-popup-close {
    background-color: #a30000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.bluepiquote-popup-close,
.bluepiquote-popup-submit {
    width: 160px;
    display: flex;
    justify-content: center;
}


/* Form inside popup */
.bluepiquote-customer-form {
    margin: 0;
    padding: 15px;
    background: white;
    border-radius: 0;
    border: none;
}

.bluepiquote-popup-actions {
    padding: 8px 15px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .bluepiquote-popup-actions {
        flex-direction: column;
    }

    .bluepiquote-popup-actions button {
        width: 100%;
    }
}

.bluepiquote-popup-overlay .bluepiquote-label,
.bluepiquote-popup-overlay .bluepiquote-input {
    font-size: 12px;
}

.bluepiquote-popup-actions .bluepiquote-btn-lg {
    padding: 10px 15px;
    font-size: 15px;
}

/* Form Settings Styles */
.bluepiquote-field-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.bluepiquote-field-group:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bluepiquote-field-row {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.bluepiquote-field-col {
    flex: 1;
}

.bluepiquote-field-col label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

/* Make inputs in the row slightly smaller/compact if needed, or keep standard */
.bluepiquote-field-col .bluepiquote-input {
    width: 100%;
}

/* Responsive for field rows */
@media (max-width: 640px) {
    .bluepiquote-field-row {
        flex-direction: column;
        gap: 15px;
    }
}


/* Increase label gap in field columns */
/* Increase label gap in field columns */
.bluepiquote-field-col label {
    margin-bottom: 8px;
    /* Reduced to look cleaner */
}

/* Ensure spacing below inputs when stacked */
.bluepiquote-field-col .bluepiquote-input {
    width: 100%;
    margin-bottom: 12px;
}
/* Global Premium Protection & Modal Utilities */
.bpq-pro-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}
.bpq-premium-locked {
    opacity: 0.55 !important;
    position: relative;
    background: #f1f5f9 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
}
.bpq-premium-locked * {
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.bpq-premium-locked-clickable {
    cursor: pointer !important;
}
.bpq-slider-locked {
    background-color: #cbd5e1 !important;
}
.bpq-slider-locked:before {
    background-color: #94a3b8 !important;
    box-shadow: none !important;
}
input:checked + .bpq-slider-locked {
    background-color: #93c5fd !important;
    opacity: 0.7;
}
input:checked + .bpq-slider-locked:before {
    background-color: #eff6ff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* Premium Modal Foundation */
.bpq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: all 0.3s ease;
}
.bpq-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    position: relative;
    animation: bpqModalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@keyframes bpqModalSlideIn {
 from { transform: translateY(30px) scale(0.95); opacity: 0; }
 to { transform: translateY(0) scale(1); opacity: 1; }
}
.bpq-modal-close {
 position: absolute;
 top: 20px;
 right: 20px;
 background: none;
 border: none;
 font-size: 28px;
 font-weight: 300;
 color: #64748b;
 cursor: pointer;
 transition: color 0.2s;
 line-height: 1;
}
.bpq-modal-close:hover {
 color: #0f172a;
}
.bpq-modal-header {
 text-align: center;
 margin-bottom: 24px;
}
.bpq-crown-icon {
 font-size: 52px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 20px;
 animation: bpqCrownBounce 2s infinite ease-in-out;
 background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
 width: 100px;
 height: 100px;
 border-radius: 50%;
}
@keyframes bpqCrownBounce {
 0%, 100% { transform: translateY(0); }
 50% { transform: translateY(-8px); }
}
.bpq-modal-header h2 {
 margin: 0 !important;
 color: #0f172a !important;
 font-size: 24px !important;
 font-weight: 800 !important;
 letter-spacing: -0.5px !important;
}
.bpq-modal-body {
 color: #475569;
 font-size: 14px;
 line-height: 1.6;
 margin-bottom: 10px;
}
.bpq-modal-body p {
 margin: 0 0 20px 0 !important;
 text-align: center !important;
 color: #64748b !important;
 font-size: 14px !important;
}
.bpq-features-list {
 list-style: none !important;
 padding: 0 !important;
 margin: 0 !important;
 background: #f8fafc !important;
 padding: 18px !important;
 border-radius: 12px !important;
 border: 1px solid #e2e8f0 !important;
}
.bpq-features-list li {
 display: flex !important;
 align-items: center !important;
 gap: 12px !important;
 margin-bottom: 10px !important;
 color: #334155 !important;
 font-weight: 500 !important;
 font-size: 13.5px !important;
}
.bpq-features-list li:last-child {
 margin-bottom: 0 !important;
}
.bpq-check-icon {
 color: #10b981;
 font-weight: 700;
}
.bpq-modal-footer {
 text-align: center;
 margin-top: 25px;
}
.bpq-modal-btn {
 display: inline-block;
 padding: 14px 45px;
 border-radius: 30px;
 text-decoration: none;
 font-weight: 700;
 font-size: 15px;
 transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 cursor: pointer;
}
.bpq-btn-upgrade {
 background: linear-gradient(135deg, #0652B7 0%, #1d4ed8 100%);
 color: #ffffff !important;
 box-shadow: 0 10px 20px -5px rgba(6, 82, 183, 0.3);
}
.bpq-btn-upgrade:hover {
 transform: translateY(-3px) scale(1.02);
 box-shadow: 0 15px 25px -5px rgba(6, 82, 183, 0.5);
 color: #ffffff !important;
}

