/* Setup Wizard Styles */

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #5a9fff);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
    transition: color 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

/* Wizard Content */
.wizard-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.wizard-step h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 2rem;
}

.step-description {
    text-align: center;
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Info Blocks */
.info-block {
    background: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-block h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 1rem;
}

.info-block.warning {
    background: #fff3cd;
    border-left-color: var(--warning-color);
}

.info-block.success {
    background: #d4edda;
    border-left-color: var(--success-color);
}

/* Instruction Blocks */
.instruction-block {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.instruction-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.instruction-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.instruction-list li {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: var(--gray-800);
}

.instruction-list li strong {
    color: var(--gray-900);
}

.instruction-list code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.instruction-block.important {
    border-color: var(--danger-color);
    border-width: 2px;
}

.instruction-block.important h3 {
    color: var(--danger-color);
}

/* External Links */
.external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.external-link:hover {
    text-decoration: underline;
}

.external-link::after {
    content: '↗';
    font-size: 0.9em;
}

/* Copy Block */
.copy-block {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.copy-block input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: var(--gray-100);
}

.copy-block .btn.copied {
    background: var(--success-color);
}

/* Step Checkboxes */
.step-checkbox {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.step-checkbox label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
}

.step-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Scopes List */
.scopes-list {
    margin: 1.5rem 0;
}

.scope-item {
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    transition: all 0.2s ease;
}

.scope-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

.scope-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.scope-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.scope-item label > div {
    flex: 1;
}

.scope-item strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.scope-desc {
    display: block;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.scope-item input[type="checkbox"]:checked + label {
    color: var(--primary-color);
}

/* Copy All Scopes Block */
.copy-all-scopes-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    border-radius: 12px;
    border: 2px solid #4285F4;
    text-align: center;
}

.copy-all-scopes-block .info-block.success {
    background: white;
    border-left: 4px solid #0F9D58;
    margin-bottom: 1rem;
    text-align: left;
}

.copy-all-scopes-block .btn-large {
    font-size: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
}

.copy-all-scopes-block .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.copy-all-scopes-block .btn-large.copied {
    background: #0F9D58;
    transform: scale(1.05);
}

.copy-hint {
    color: #5f6368;
    font-style: italic;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--gray-400);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem 0;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(66, 133, 244, 0.05);
}

.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(66, 133, 244, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.upload-zone h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--gray-600);
    margin: 0.5rem 0;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 1rem !important;
}

/* Upload Loading */
.upload-loading {
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Upload Result */
.upload-result {
    margin: 2rem 0;
}

.result-success {
    background: #d4edda;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.result-success h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.file-info {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.file-info p {
    margin: 0.5rem 0;
    color: var(--gray-700);
}

.file-info code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--gray-900);
}

/* Upload Error */
.upload-error {
    margin: 2rem 0;
}

.upload-error > div:first-child {
    background: #f8d7da;
    border: 2px solid var(--danger-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.upload-error h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.upload-error p {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

/* Completion Status */
.completion-status {
    margin: 2rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    margin: 0.75rem 0;
}

.status-icon {
    font-size: 24px;
}

.status-item span:last-child {
    color: var(--gray-800);
    font-size: 1rem;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.step-actions .btn {
    min-width: 150px;
}

.step-actions .btn:only-child {
    margin-left: auto;
}

/* Copy Blocks */
.copy-block {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 6px;
    border: 1px solid var(--gray-300);
}

.copy-block input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: white;
}

.copy-block.inline {
    display: inline-flex;
    margin: 0.5rem 0;
    padding: 0.5rem;
    vertical-align: middle;
}

.copy-block.inline input.inline-input {
    width: auto;
    min-width: 200px;
    padding: 0.4rem 0.6rem;
    font-size: 13px;
}

.btn-copy {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-copy.copied {
    background: var(--success-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Scope Copy Blocks */
.scope-copy {
    margin: 0.75rem 0 1rem 2rem;
    padding: 0.5rem;
    background: var(--gray-50);
}

.scope-copy input.scope-input {
    font-size: 12px;
    padding: 0.4rem 0.6rem;
}

/* Copy Field */
.copy-field {
    margin: 1rem 0;
}

.copy-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

/* Info Block Variations */
.info-block.important {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-block.important h3 {
    color: #f57c00;
    margin-top: 0;
    font-size: 1.1rem;
}

.info-block.success {
    background: #d4edda;
    border-left: 4px solid var(--success-color);
}

/* List Styles */
.instruction-list.no-bullets {
    list-style: none;
    padding-left: 0;
}

.instruction-list.no-bullets > li {
    margin-bottom: 1rem;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-content {
        padding: 2rem 1.5rem;
    }

    .wizard-step h2 {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .progress-step {
        min-width: 60px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

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

    .step-actions .btn {
        width: 100%;
    }

    .copy-block {
        flex-direction: column;
    }

    .copy-block input {
        font-size: 12px;
    }
}
