/* assets/css/admin-export.css */
.sbppe-export-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 300px;
    text-align: center;
}

.sbppe-export-progress .progress-bar {
    width: 0%;
    height: 20px;
    background: #0073aa;
    transition: width 0.3s;
    border-radius: 2px;
    margin-top: 10px;
}

.sbppe-export-progress .progress-bar.complete {
    background: #46b450;
    width: 100%;
}

#export-progress {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#export-progress .progress-bar {
    width: 0%;
    height: 20px;
    background: #0073aa;
    transition: width 0.3s;
    border-radius: 2px;
}

#export-progress .progress-bar.complete {
    background: #46b450;
    width: 100%;
}

.sbppe-single-export {
    cursor: pointer;
}

.sbppe-single-export.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sbppe-single-export:hover:not(.disabled) {
    text-decoration: underline;
}

/* Settings page styles */
#sbppe-settings-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#sbppe-settings-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#sbppe-settings-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#sbppe-save-settings .spinner {
    float: none;
    margin: 0 0 0 5px;
    vertical-align: middle;
}

#sbppe-save-settings.saving {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Download button styles */
.sbppe-download-link {
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}

.sbppe-download-link:hover {
    text-decoration: none;
}

/* Tabbed Settings Styles */
.sbppe-tabs {
    margin-bottom: 20px;
}

.sbppe-tabs-nav {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.sbppe-tabs-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    border-bottom: 1px solid #ccc;
}

.sbppe-tabs-nav li {
    margin: 0;
}

.sbppe-tabs-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.sbppe-tabs-nav a:hover {
    background: #e1e1e1;
    color: #333;
}

.sbppe-tabs-nav a.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: 600;
}

.sbppe-tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.sbppe-tab-content.active {
    display: block;
}

.sbppe-settings-section {
    margin-bottom: 30px;
}

.sbppe-settings-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #23282d;
}

.sbppe-settings-row {
    margin-bottom: 15px;
    padding: 10px 0;
}

.sbppe-settings-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.sbppe-settings-row input[type="text"],
.sbppe-settings-row input[type="number"],
.sbppe-settings-row select {
    width: 100%;
    max-width: 400px;
}

.sbppe-settings-row .description {
    margin-top: 5px;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.sbppe-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.sbppe-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.sbppe-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.sbppe-checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.sbppe-save-section {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 20px;
}

.sbppe-save-section .button {
    margin-right: 10px;
}

.sbppe-auto-save-indicator {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.sbppe-auto-save-indicator.saving {
    color: #0073aa;
}

.sbppe-auto-save-indicator.saved {
    color: #46b450;
}
/* Update assets/css/admin-export.css with better tab design */

/* Tab Container */
.sbppe-tabs {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

/* Tab Navigation */
.sbppe-tabs-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding: 0;
}

.sbppe-tabs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.sbppe-tabs-nav li {
    margin: 0;
    flex: 1;
}

.sbppe-tabs-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    border: none;
    background: transparent;
    margin: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.sbppe-tabs-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-1px);
}

.sbppe-tabs-nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: inset 0 -3px 0 #fff;
}

.sbppe-tabs-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
}

/* Tab Content */
.sbppe-tab-content {
    display: none;
    padding: 30px;
    background: #fff;
    min-height: 400px;
}

.sbppe-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Settings Sections */
.sbppe-settings-section {
    margin-bottom: 40px;
}

.sbppe-settings-section h3 {
    margin: 0 0 25px 0;
    color: #23282d;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.sbppe-settings-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Settings Rows */
.sbppe-settings-row {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.sbppe-settings-row:hover {
    background: #f0f2f5;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sbppe-settings-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #23282d;
    font-size: 14px;
}

.sbppe-settings-row input[type="text"],
.sbppe-settings-row input[type="number"],
.sbppe-settings-row select {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.sbppe-settings-row input[type="text"]:focus,
.sbppe-settings-row input[type="number"]:focus,
.sbppe-settings-row select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Checkbox Groups */
.sbppe-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sbppe-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.sbppe-checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.sbppe-checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.sbppe-checkbox-item label {
    font-weight: 500;
    margin: 0;
    color: #23282d;
    cursor: pointer;
    flex: 1;
}

/* Description Text */
.description {
    color: #666;
    font-style: italic;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* Save Section */
.sbppe-save-section {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.sbppe-save-section .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sbppe-save-section .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sbppe-save-section .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.sbppe-save-section .spinner {
    margin-left: 10px;
    vertical-align: middle;
}

/* Auto-save Indicator */
.sbppe-auto-save-indicator {
    margin-left: 15px;
    color: #28a745;
    font-style: italic;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sbppe-auto-save-indicator.show {
    opacity: 1;
}

/* Success/Error Messages */
#sbppe-settings-message {
    margin: 20px 0;
}

#sbppe-settings-message .notice {
    border-radius: 6px;
    border: none;
    padding: 15px 20px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#sbppe-settings-message .notice-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

#sbppe-settings-message .notice-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sbppe-tabs-nav ul {
        flex-direction: column;
    }
    
    .sbppe-tabs-nav a {
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .sbppe-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .sbppe-settings-row {
        padding: 15px;
    }
    
    .sbppe-tab-content {
        padding: 20px;
    }
}

/* Loading Animation */
.sbppe-tabs.loading {
    opacity: 0.7;
    pointer-events: none;
}

.sbppe-tabs.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tab Icons (Optional) */
.sbppe-tabs-nav a::before {
    margin-right: 8px;
    font-family: dashicons;
    font-size: 16px;
}

.sbppe-tabs-nav a[href="#general"]::before {
    content: "\f111";
}

.sbppe-tabs-nav a[href="#fields"]::before {
    content: "\f163";
}

.sbppe-tabs-nav a[href="#format"]::before {
    content: "\f317";
}

.sbppe-tabs-nav a[href="#advanced"]::before {
    content: "\f348";
}

/* Add styling for the field controls */
.sbppe-field-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

.sbppe-field-controls button {
    padding: 8px 16px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbppe-field-controls button:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.sbppe-field-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}

.sbppe-field-controls button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.2);
}

/* Add a subtle label for the controls */
.sbppe-field-controls::before {
    content: "Quick Actions:";
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
    font-size: 14px;
}

/* Add styling for free features */
.sbppe-free-feature {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid #48bb78;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.1);
}

.sbppe-free-feature label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.sbppe-free-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

/* Upgrade CTA styling */
.sbppe-upgrade-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.sbppe-upgrade-cta h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.sbppe-upgrade-cta p {
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-size: 14px;
}

.sbppe-upgrade-cta ul {
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.sbppe-upgrade-cta li {
    margin-bottom: 8px;
    font-size: 14px;
}

.sbppe-upgrade-button {
    background: #fff !important;
    color: #667eea !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.sbppe-upgrade-button:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

/* Format label styling */
.format-label {
    font-weight: 600;
    color: #2d3748;
}


/* Add proper popup styling to admin-export.css */
.sbppe-export-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    min-width: 450px;
    max-width: 550px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    animation: sbppe-popup-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.sbppe-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sbppe-popup-header {
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.sbppe-popup-body {
    padding: 20px 25px 25px 25px;
    color: #4a5568;
    line-height: 1.6;
}

.sbppe-popup-body small {
    font-size: 14px;
    color: #718096;
    display: block;
    margin-bottom: 15px;
}

.sbppe-progress-popup .sbppe-popup-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sbppe-success-popup .sbppe-popup-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sbppe-error-popup .sbppe-popup-header {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sbppe-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sbppe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: sbppe-progress-animation 2s infinite;
    box-shadow: 0 1px 3px rgba(0, 115, 170, 0.3);
}

.sbppe-progress-bar.sbppe-complete .sbppe-progress-fill {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    width: 100%;
    animation: none;
    box-shadow: 0 1px 3px rgba(72, 187, 120, 0.3);
}

@keyframes sbppe-popup-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes sbppe-progress-animation {
    0% { 
        width: 0%; 
        opacity: 0.8;
    }
    50% { 
        width: 70%; 
        opacity: 1;
    }
    100% { 
        width: 0%; 
        opacity: 0.8;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .sbppe-export-popup {
        min-width: 300px;
        max-width: 90vw;
        margin: 20px;
    }
    
    .sbppe-popup-header {
        padding: 15px 20px 10px 20px;
        font-size: 16px;
    }
    
    .sbppe-popup-body {
        padding: 15px 20px 20px 20px;
    }
}

/* Add a subtle glow effect to the popup */
.sbppe-export-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.1;
    animation: sbppe-glow-animation 3s ease-in-out infinite alternate;
}

@keyframes sbppe-glow-animation {
    from {
        opacity: 0.1;
        transform: scale(1);
    }
    to {
        opacity: 0.2;
        transform: scale(1.02);
    }
}

/* Add a close button for better UX */
.sbppe-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.sbppe-popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sbppe-popup-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Remove the pseudo-element approach and use the × character directly */
.sbppe-popup-close::before,
.sbppe-popup-close::after {
    display: none;
}