﻿/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    padding: 40px;
}*/

/* Scoped under .desktop-publish parent class */
/*.desktop-publish {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

    .desktop-publish .modal-overlay {
        background: rgba(0, 0, 0, 0.6);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .desktop-publish .modal {
        background: #1a1a1a;
        border-radius: 12px;
        padding: 24px;
        width: 480px;
        max-width: 90vw;
        position: relative;
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .desktop-publish .modal-header {
        margin-bottom: 20px;
    }

    .desktop-publish .modal-title {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .desktop-publish .modal-subtitle {
        font-size: 14px;
        color: #a0a0a0;
        line-height: 1.5;
    }

    .desktop-publish .modal-body {
        margin-bottom: 24px;
    }

    .desktop-publish .changes-section {
        background: #2a2a2a;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .desktop-publish .pages-container {
        max-height: 200px;
        overflow-y: auto;
        border-radius: 6px;
        background: #222222;
        margin-top: 8px;
    }

        .desktop-publish .pages-container::-webkit-scrollbar {
            width: 6px;
        }

        .desktop-publish .pages-container::-webkit-scrollbar-track {
            background: #333333;
            border-radius: 3px;
        }

        .desktop-publish .pages-container::-webkit-scrollbar-thumb {
            background: #666666;
            border-radius: 3px;
        }

            .desktop-publish .pages-container::-webkit-scrollbar-thumb:hover {
                background: #777777;
            }

    .desktop-publish .changes-title {
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 12px;
    }

    .desktop-publish .page-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #3a3a3a;
        transition: background-color 0.2s ease;
    }

        .desktop-publish .page-item:hover {
            background: #2a2a2a;
        }

        .desktop-publish .page-item:last-child {
            border-bottom: none;
        }

    .desktop-publish .page-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-publish .page-icon {
        width: 16px;
        height: 16px;
        background: #4a9eff;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: white;
        font-weight: 600;
    }

    .desktop-publish .page-name {
        font-size: 14px;
        color: #ffffff;
        font-weight: 500;
    }

    .desktop-publish .change-badge {
        background: #ff6b35;
        color: white;
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 600;
    }

    .desktop-publish .option-section {
        margin-bottom: 20px;
    }

    .desktop-publish .option-title {
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 12px;
    }

    .desktop-publish .option-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .desktop-publish .option {
        display: flex;
        align-items: center;
        padding: 12px;
        background: #2a2a2a;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }

        .desktop-publish .option:hover {
            background: #333333;
        }

        .desktop-publish .option.selected {
            border-color: #ffd700;
            background: #333333;
        }

    .desktop-publish .radio-circle {
        width: 16px;
        height: 16px;
        border: 2px solid #666666;
        border-radius: 50%;
        margin-right: 12px;
        position: relative;
        transition: border-color 0.2s ease;
    }

    .desktop-publish .option.selected .radio-circle {
        border-color: #ffd700;
    }

        .desktop-publish .option.selected .radio-circle::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 8px;
            height: 8px;
            background: #ffd700;
            border-radius: 50%;
        }

    .desktop-publish .option-content {
        flex: 1;
    }

    .desktop-publish .option-label {
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 4px;
    }

    .desktop-publish .option-description {
        font-size: 12px;
        color: #a0a0a0;
        line-height: 1.4;
    }

    .desktop-publish .modal-footer {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }

    .desktop-publish .btn {
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
    }

    .desktop-publish .btn-cancel {
        background: #4a4a4a;
        color: #ffffff;
    }

        .desktop-publish .btn-cancel:hover {
            background: #5a5a5a;
        }

    .desktop-publish .btn-publish {
        background: #ffd700;
        color: #1a1a1a;
    }

        .desktop-publish .btn-publish:hover {
            background: #ffed4a;
        }

        .desktop-publish .btn-publish:disabled {
            background: #666666;
            color: #999999;
            cursor: not-allowed;
        }

    .desktop-publish .warning-note {
        background: #2a2a1a;
        border: 1px solid #4a4a1a;
        border-radius: 6px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .desktop-publish .warning-icon {
        color: #ffd700;
        font-size: 12px;
        margin-right: 8px;
    }

    .desktop-publish .warning-text {
        font-size: 12px;
        color: #d0d0d0;
        line-height: 1.4;
    }*/

.d-none{
    display:none !important
}

.desktop-publish {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

    .desktop-publish .publish-popup {
        background-color: #1a1a1a;
        width: 85vh;
        height: auto;
    }

    .desktop-publish .publish-header {
        padding: 20px 32px 16px;
        border-bottom: 1px solid #333;
    }

    .desktop-publish .publish-title {
        font-size: 22px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 6px;
    }

    .desktop-publish .publish-subtitle {
        font-size: 13px;
        color: #888;
        line-height: 1.3;
    }

    .desktop-publish .warning-banner {
        background: rgba(255, 149, 0, 0.1);
        border: 1px solid rgba(255, 149, 0, 0.3);
        border-left: 4px solid #ff9500;
        padding: 12px 16px;
        margin: 0 32px 20px;
        border-radius: 6px;
    }

    .desktop-publish .warning-header {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
    }

    .desktop-publish .warning-icon {
        width: 16px;
        height: 16px;
        fill: #ff9500;
        margin-right: 8px;
    }

    .desktop-publish .warning-title {
        font-size: 13px;
        font-weight: 600;
        color: #ff9500;
    }

    .desktop-publish .warning-text {
        font-size: 12px;
        color: #ccc;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .desktop-publish .changed-pages {
        margin-top: 12px;
    }

    .desktop-publish .changed-pages-title {
        font-size: 11px;
        color: #ff9500;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .desktop-publish .page-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .desktop-publish .page-tag {
        background: rgba(255, 149, 0, 0.2);
        color: #ffb800;
        padding: 3px 6px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 500;
        border: 1px solid rgba(255, 149, 0, 0.3);
    }

    .desktop-publish .publish-options {
        padding: 0 32px 20px;
    }

    .desktop-publish .options-title {
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 6px;
    }

    .desktop-publish .options-subtitle {
        font-size: 12px;
        color: #888;
        margin-bottom: 16px;
    }

    .desktop-publish .option-card {
        background: #252525;
        border: 2px solid #333;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

        .desktop-publish .option-card:hover {
            border-color: #444;
            background: #2a2a2a;
        }

        .desktop-publish .option-card.selected {
            border-color: #ff9500;
            background: rgba(255, 149, 0, 0.05);
        }

    .desktop-publish .option-header {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
    }

    .desktop-publish .option-radio {
        width: 18px;
        height: 18px;
        border: 2px solid #555;
        border-radius: 50%;
        margin-right: 10px;
        position: relative;
        flex-shrink: 0;
    }

    .desktop-publish .option-card.selected .option-radio {
        border-color: #ff9500;
    }

        .desktop-publish .option-card.selected .option-radio::after {
            content: '';
            width: 8px;
            height: 8px;
            background: #ff9500;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    .desktop-publish .option-title {
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
    }

    .desktop-publish .option-description {
        font-size: 12px;
        color: #999;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .desktop-publish .option-note {
        font-size: 12px;
        color: #666;
        font-style: italic;
    }

    .desktop-publish .ai-option-note {
        background: rgba(255, 149, 0, 0.1);
        border: 1px solid rgba(255, 149, 0, 0.2);
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 10px;
        color: #ff9500;
        margin-top: 6px;
    }

    .desktop-publish .preferences-section {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid #333;
    }

    .desktop-publish .preference-item {
        margin-bottom: 12px;
    }

    .desktop-publish .checkbox-container {
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
        margin-bottom: 6px;
    }

        .desktop-publish .checkbox-container input {
            display: none;
        }

    .desktop-publish .checkmark {
        width: 18px;
        height: 18px;
        background: #333;
        border: 2px solid #555;
        border-radius: 4px;
        margin-right: 10px;
        position: relative;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .desktop-publish .checkbox-container:hover .checkmark {
        border-color: #666;
        background: #3a3a3a;
    }

    .desktop-publish .checkbox-container input:checked ~ .checkmark {
        background: #ff9500;
        border-color: #ff9500;
    }

        .desktop-publish .checkbox-container input:checked ~ .checkmark::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    .desktop-publish .checkbox-label {
        font-size: 14px;
        color: #ffffff;
        font-weight: 500;
    }

    .desktop-publish .preference-description {
        font-size: 12px;
        color: #888;
        margin-left: 28px;
        line-height: 1.4;
    }

    .desktop-publish .publish-actions {
        padding: 20px 32px 32px;
        display: flex;
        gap: 12px;
        border-top: 1px solid #333;
    }

    .desktop-publish .btn {
        flex: 1;
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .desktop-publish .btn-secondary {
        background: #333;
        color: #ccc;
    }

        .desktop-publish .btn-secondary:hover {
            background: #444;
            color: #fff;
        }

    .desktop-publish .btn-primary {
        background: #ff9500;
        color: white;
    }

        .desktop-publish .btn-primary:hover {
            background: #e6860e;
        }

        .desktop-publish .btn-primary:disabled {
            background: #555;
            color: #888;
            cursor: not-allowed;
        }

    /* POPUP 2: AI GENERATION */
    .desktop-publish .generation-popup {
        display: none;
    }

    .desktop-publish .generation-header {
        padding: 32px 32px 24px;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .desktop-publish .ai-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 16px;
        background: #1a1a1a;
        border: 3px solid #333;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: visible;
    }

        .desktop-publish .ai-icon::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top: 3px solid #ff9500;
            border-right: 3px solid #ff9500;
            border-bottom: 3px solid rgba(255, 149, 0, 0.3);
            border-left: 3px solid rgba(255, 149, 0, 0.1);
            top: -3px;
            left: -3px;
            animation: iconRotate 2s linear infinite;
        }

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.desktop-publish .ai-icon-inner {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .desktop-publish .ai-icon-inner::before {
        content: 'W';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 14px;
        font-weight: 700;
        color: #000000;
        z-index: 3;
        line-height: 1;
    }

.desktop-publish .ai-icon-dot-1 {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff9500;
    border-radius: 50%;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.desktop-publish .ai-icon-dot-2 {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ff9500;
    border-radius: 50%;
    bottom: 8px;
    left: 8px;
}

.desktop-publish .generation-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.desktop-publish .generation-subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.4;
}

.desktop-publish .generation-content {
    padding: 24px 32px 32px;
}

.desktop-publish .status-section {
    text-align: center;
    margin-bottom: 32px;
}

.desktop-publish .status-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.desktop-publish .status-description {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.desktop-publish .time-estimate {
    font-size: 12px;
    color: #666;
}

.desktop-publish .info-panel {
    background: #252525;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #333;
}

.desktop-publish .info-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.desktop-publish .info-icon {
    width: 20px;
    height: 20px;
    fill: #ff9500;
    margin-right: 8px;
}

.desktop-publish .info-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.desktop-publish .processing-steps {
    margin-top: 20px;
}

.desktop-publish .steps-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.desktop-publish .step {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #888;
}

.desktop-publish .step-number {
    width: 20px;
    height: 20px;
    background: #333;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.desktop-publish .step.active .step-number {
    background: #ff9500;
    color: white;
}

.desktop-publish .step.active {
    color: #ffffff;
}

.desktop-publish .info-item {
    margin-bottom: 16px;
}

    .desktop-publish .info-item:last-child {
        margin-bottom: 0;
    }

.desktop-publish .info-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

    .desktop-publish .info-item-title::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #ff9500;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }

.desktop-publish .info-item-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-left: 16px;
}

/* Toggle buttons for demo */
.desktop-publish .demo-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.desktop-publish .demo-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

    .desktop-publish .demo-btn:hover {
        background: #444;
    }

    .desktop-publish .demo-btn.active {
        background: #ff9500;
    }
