/* Scheduled Exports Styles */

.peiwm-scheduled-exports-wrap {
    background: linear-gradient(135deg, #fefdf9 0%, #fff7ed 50%, #fef3e2 100%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
    max-width: 1200px;
    margin: 20px auto;
}

.peiwm-scheduled-exports-wrap h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.peiwm-scheduled-exports-wrap .description {
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.peiwm-settings-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.1);
}

.peiwm-settings-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

/* Toggle Switch */
.peiwm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.peiwm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.peiwm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.peiwm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .peiwm-toggle-slider {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

input:checked + .peiwm-toggle-slider:before {
    transform: translateX(26px);
}

/* Next Run Info */
.peiwm-next-run {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid #f97316;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Frequency Options */
.peiwm-frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.peiwm-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peiwm-radio-label:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.peiwm-radio-label input[type="radio"] {
    margin: 0.25rem 1rem 0 0;
    flex-shrink: 0;
}

.peiwm-radio-label input[type="radio"]:checked + .peiwm-radio-text {
    color: #f97316;
}

.peiwm-radio-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.peiwm-radio-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.peiwm-radio-text small {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Export Types */
.peiwm-export-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.peiwm-checkbox-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peiwm-checkbox-label:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.peiwm-checkbox-label input[type="checkbox"] {
    margin: 0 0.75rem 0 0;
    flex-shrink: 0;
}

.peiwm-checkbox-text {
    font-weight: 500;
}

/* Storage Modes */
.peiwm-storage-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.peiwm-storage-mode-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peiwm-storage-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.peiwm-storage-mode-content {
    padding: 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.peiwm-storage-mode-card:hover .peiwm-storage-mode-content {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
}

.peiwm-storage-mode-card.active .peiwm-storage-mode-content {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.peiwm-storage-mode-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.peiwm-storage-mode-card.disabled .peiwm-storage-mode-content {
    background: #f9fafb;
}

.peiwm-storage-mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.peiwm-storage-mode-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.peiwm-storage-mode-content p {
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.peiwm-storage-mode-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #10b981;
    color: white;
}

.peiwm-storage-mode-badge.coming-soon {
    background: #6b7280;
}

/* Storage Info Box */
.peiwm-storage-info-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
}

.peiwm-storage-info-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.peiwm-storage-path {
    display: block;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

/* Backups List */
.peiwm-backups-section {
    margin-top: 3rem;
}

.peiwm-backups-list {
    margin-top: 1.5rem;
    min-height: 200px;
}

.peiwm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.peiwm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(249, 115, 22, 0.2);
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.peiwm-backup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.peiwm-backup-item:hover {
    border-color: #f97316;
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.1);
}

.peiwm-backup-info {
    flex: 1;
}

.peiwm-backup-filename {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.peiwm-backup-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.peiwm-backup-actions {
    display: flex;
    gap: 0.5rem;
}

.peiwm-backup-actions .button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.peiwm-no-backups {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.peiwm-no-backups-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .peiwm-scheduled-exports-wrap {
        padding: 20px;
    }

    .peiwm-frequency-options,
    .peiwm-export-types,
    .peiwm-storage-modes {
        grid-template-columns: 1fr;
    }

    .peiwm-backup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .peiwm-backup-actions {
        width: 100%;
        flex-direction: column;
    }

    .peiwm-backup-actions .button {
        width: 100%;
    }
}

/* PRO Feature Lock Styles */
.peiwm-pro-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

.peiwm-pro-locked-feature {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

.peiwm-pro-locked-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.6;
    }
}

.peiwm-pro-locked-feature h2 {
    color: #f97316;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.peiwm-pro-locked-feature > p {
    font-size: 18px;
    color: #4a4a4a;
    margin-bottom: 30px;
}

.peiwm-pro-features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.peiwm-pro-features-list li {
    font-size: 16px;
    color: #1a1a1a;
    padding: 12px 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    font-weight: 500;
}

.peiwm-pro-features-list li:last-child {
    border-bottom: none;
}

.peiwm-pro-locked-feature .button-hero {
    font-size: 18px;
    padding: 15px 40px;
    height: auto;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    border-radius: 16px;
}

.peiwm-pro-locked-feature .button-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
    color: white;
}

