/**
 * Copyright © Byte8 Ltd. All rights reserved.
 * See LICENSE.txt for license details.
 */

/* Setup Wizard Container */
.setup-wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Wizard Header */
.setup-wizard-header {
    margin-bottom: 30px;
}

.setup-wizard-header .page-title {
    margin-bottom: 20px;
}

/* Progress Steps */
.setup-wizard-progress {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps-indicator li {
    flex: 1;
    text-align: center;
    position: relative;
    counter-increment: step;
}

.steps-indicator li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.steps-indicator li.completed:not(:last-child)::after,
.steps-indicator li.active:not(:last-child)::after {
    background: #4caf50;
}

.steps-indicator .step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    margin-bottom: 5px;
    font-weight: bold;
}

.steps-indicator li.active .step-number {
    background: #2196f3;
    color: #fff;
}

.steps-indicator li.completed .step-number {
    background: #4caf50;
    color: #fff;
}

.steps-indicator .step-title {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Wizard Content */
.setup-wizard-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    min-height: 400px;
}

/* Step Content */
.setup-wizard-step .step-title {
    color: #333;
    margin-bottom: 10px;
}

.setup-wizard-step .step-description {
    color: #666;
    margin-bottom: 30px;
}

/* Wizard Actions */
.setup-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.setup-wizard-actions button {
    min-width: 120px;
}

/* Connection Test Step */
.connection-test .connection-status {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.connection-test .status-success {
    background: #f0f8ff;
    border: 1px solid #4caf50;
}

.connection-test .status-failed {
    background: #fff0f0;
    border: 1px solid #f44336;
}

.connection-test .info-list {
    margin: 15px 0;
}

.connection-test .info-list dt {
    font-weight: bold;
    display: inline-block;
    width: 150px;
    color: #666;
}

.connection-test .info-list dd {
    display: inline;
    margin-left: 10px;
}

.connection-test .webstore-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.connection-test .webstore-list li {
    padding: 2px 0;
}

.connection-test .webstore-id {
    color: #666;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Collection Results */
.collection-results .summary-totals {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.collection-results .total-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.collection-results .total-item.success {
    background: #e8f5e9;
    color: #4caf50;
}

.collection-results .total-item.error {
    background: #ffebee;
    color: #f44336;
}

.collection-results .total-item.warning {
    background: #fff3cd;
    color: #ff9800;
}

/* Message Groups */
.message-group {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.message-group h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.message-group.success h4 {
    background: #e8f5e9;
    color: #4caf50;
}

.message-group.error h4 {
    background: #ffebee;
    color: #f44336;
}

.message-group.warning h4 {
    background: #fff3cd;
    color: #ff9800;
}

.message-group .message-list {
    padding: 15px;
    margin: 0;
    list-style: none;
}

.message-group .message-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.message-group .message-list li:last-child {
    border-bottom: none;
}

/* Property Creation */
.create-properties .info-message {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.create-properties .action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.creation-results .summary-counts {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.creation-results .count-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
}

.creation-results .count-item .count {
    font-size: 24px;
    font-weight: bold;
}

/* Review Step */
.setup-summary .steps-review {
    margin: 20px 0;
}

.setup-summary .step-review {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
}

.setup-summary .step-review h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: #333;
}

.setup-summary .step-review.status-complete {
    border-color: #4caf50;
}

.setup-summary .step-review.status-error {
    border-color: #f44336;
}

.setup-summary .step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.setup-summary .step-details li {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.setup-summary .detail-label {
    color: #666;
}

.setup-summary .detail-value {
    font-weight: bold;
}

.setup-summary .error-detail .detail-value {
    color: #f44336;
}

/* Overall Status */
.overall-status {
    margin: 30px 0;
}

.overall-status .message {
    padding: 20px;
    border-radius: 5px;
    display: flex;
    gap: 15px;
}

/* Next Steps */
.next-steps {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-top: 30px;
}

.next-steps h3 {
    margin-top: 0;
}

.next-steps ol {
    margin: 15px 0 0 20px;
    color: #666;
}

.next-steps li {
    margin-bottom: 10px;
}

/* Loading States */
.setup-wizard-step .loading-mask {
    text-align: center;
    padding: 50px;
}

.setup-wizard-step .loader {
    display: inline-block;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

/* Retry Actions */
.retry-action {
    text-align: center;
    margin-top: 20px;
}

/* Icons */
.setup-wizard-container .icon-check-circle::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    font-weight: bold;
}

.setup-wizard-container .icon-x-circle::before {
    content: '✕';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #f44336;
    color: white;
    font-weight: bold;
}

.setup-wizard-container .icon-alert-circle::before {
    content: '!';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #ff9800;
    color: white;
    font-weight: bold;
}

.setup-wizard-container .icon-info-circle::before {
    content: 'i';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #2196f3;
    color: white;
    font-weight: bold;
    font-style: italic;
}

.setup-wizard-container .icon-clock::before {
    content: '⏱';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}
