.nett-setup-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.nett-wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.nett-wizard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.nett-wizard-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.nett-steps {
    padding: 40px;
}

.nett-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nett-step-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.nett-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
}

.nett-step-title h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.nett-step-content {
    color: #555;
    line-height: 1.6;
}

.nett-step-content p {
    margin-bottom: 20px;
}

.nett-step-content a {
    color: #667eea;
    text-decoration: none;
}

.nett-step-content a:hover {
    text-decoration: underline;
}

/* Input & Button Styles */
input[type="text"],
input[type="password"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nett-btn-primary,
.nett-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.nett-btn-primary {
    background: #667eea;
    color: white;
}

.nett-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nett-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.nett-btn-secondary:hover {
    background: #e0e0e0;
}

.nett-step-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nett-step-message,
.nett-status-message {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

/* AI Briefing Section */
.nett-ai-chat {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.nett-ai-messages {
    max-height: 500px;
    overflow-y: auto;
}

.nett-q-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.nett-q-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nett-q-text {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #333;
}

.nett-q-options {
    margin-bottom: 12px;
}

.nett-q-options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

.nett-q-options label:hover {
    color: #667eea;
}

.nett-q-options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.nett-q-custom-text {
    font-size: 13px !important;
    color: #666;
}

/* Page Cards */
.nett-pages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.nett-page-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
}

.nett-card-header {
    background: #667eea;
    color: white;
    padding: 15px;
}

.nett-card-header h3 {
    margin: 0;
    font-size: 18px;
    text-transform: capitalize;
}

.nett-sections {
    padding: 15px;
}

.nett-section-block {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.nett-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nett-section-block p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

.nett-section-prompt {
    width: 100% !important;
    min-height: 80px;
    padding: 8px !important;
    font-size: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    color: #333 !important;
}

.nett-section-prompt:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Status Messages */
.nett-step-message {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.nett-step-message.error {
    background: #ffebee;
    color: #c62828;
    border-color: #ef5350;
}

.nett-status-message {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #64b5f6;
}

.nett-status-message.error {
    background: #ffebee;
    color: #c62828;
    border-color: #ef5350;
}

.nett-status-message ul,
.nett-publish-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

.nett-status-message li,
.nett-publish-summary li {
    margin-bottom: 8px;
}

.nett-status-message a {
    color: #1565c0;
    text-decoration: none;
}

.nett-status-message a:hover {
    text-decoration: underline;
}

/* Loading spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nett-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nett-setup-root {
        margin: 10px;
        border-radius: 0;
    }

    .nett-wizard-header {
        padding: 20px;
    }

    .nett-wizard-header h1 {
        font-size: 20px;
    }

    .nett-steps {
        padding: 20px;
    }

    .nett-pages-container {
        grid-template-columns: 1fr;
    }

    .nett-btn-primary,
    .nett-btn-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .nett-step-actions {
        display: flex;
        flex-direction: column;
    }
}

/* Step 4: Publish - Sticky Header */
.nett-tab-content-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    padding: 10px 20px;
}

.nett-publish-content{
    padding: 0 !important;
}

.nett-tab-content-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Ensure proper stacking context for Step 4 */
.nett-tab-content-body {
    position: relative;
    z-index: 1;
}

.nett-preview-section {
    position: relative;
    z-index: 1;
}

.nett-widget-section {
    position: relative;
    z-index: 1;
}

