/* Configuration Wizard Styles */
.wizard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.wizard.hidden {
    display: none;
}

.wizard-content {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: wizardSlideIn 0.3s ease-out;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 2px solid var(--border);
}

.wizard-header h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: var(--text);
}

.wizard-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.wizard-step {
    padding: 32px;
}

.wizard-step-header {
    margin-bottom: 24px;
}

.wizard-step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 12px;
}

.wizard-step-title {
    display: inline;
    font-size: 20px;
    color: var(--text);
    vertical-align: middle;
}

.wizard-step-description {
    color: var(--text-secondary);
    margin: 12px 0 0 44px;
    line-height: 1.6;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-field label {
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-field .field-help {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
}

.wizard-field input,
.wizard-field select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
}

.wizard-field input:focus,
.wizard-field select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.wizard-field input[type="password"] {
    font-family: monospace;
    letter-spacing: 2px;
}

.wizard-platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.wizard-platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-platform-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.wizard-platform-option.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.wizard-platform-icon {
    font-size: 32px;
}

.wizard-platform-name {
    font-weight: 500;
    font-size: 14px;
}

.wizard-platform-url {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.wizard-platform-description {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4px;
    opacity: 0.7;
}

.wizard-platform-option.selected .wizard-platform-description,
.wizard-platform-option.selected .wizard-platform-url {
    color: rgba(255, 255, 255, 0.9);
}

.wizard-info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
}

.wizard-info-box h4 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 14px;
}

.wizard-info-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.wizard-info-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.wizard-info-box li {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.wizard-info-box code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-top: 2px solid var(--border);
    gap: 12px;
}

.wizard-actions-left {
    display: flex;
    gap: 12px;
}

.wizard-actions-right {
    display: flex;
    gap: 12px;
}

.wizard-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-btn-primary {
    background: var(--accent-primary);
    color: white;
}

.wizard-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wizard-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wizard-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.wizard-btn-secondary:hover {
    background: var(--bg-hover);
}

.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
}

.wizard-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.wizard-progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.wizard-progress-dot.completed {
    background: var(--accent-primary);
}

.wizard-skip-link {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.wizard-skip-link:hover {
    color: var(--text);
}

/* Token input with toggle visibility button */
.token-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.token-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.toggle-token-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    line-height: 1;
}

.toggle-token-btn:hover:not(:disabled) {
    background-color: var(--bg-hover);
}

.toggle-token-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
