/**
 * Setup Wizard Styles
 */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.setup-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    margin: 20px auto;
}

.setup-header {
    text-align: center;
    margin-bottom: 40px;
}

.setup-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.setup-header .lead {
    color: #666;
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-number {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.progress-step.completed .progress-step-number {
    background: #28a745;
    color: white;
}

.progress-step-label {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

/* Setup Content */
.setup-content {
    min-height: 400px;
    margin-bottom: 30px;
}

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

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

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

.setup-step h2 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.setup-step > p {
    color: #666;
    margin-bottom: 30px;
}

/* Checklist */
.checklist {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.checklist h5 {
    color: #333;
    margin-bottom: 15px;
}

.checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    padding: 8px 0;
    color: #555;
}

.checklist li i {
    margin-right: 10px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #333;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-strength::after {
    content: attr(data-strength);
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    color: #6c757d;
}

/* Review Section */
.review-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-section h5 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.review-section .table {
    margin-bottom: 0;
    background: white;
}

.review-section .table td:first-child {
    font-weight: 600;
    color: #555;
    width: 30%;
}

/* Navigation Buttons */
.setup-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.setup-navigation .btn {
    padding: 10px 30px;
    font-weight: 600;
}

/* Alerts */
.alert-message {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .setup-container {
        padding: 20px;
    }

    .progress-container {
        padding: 0;
    }

    .progress-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-step-label {
        font-size: 0.7rem;
    }

    .progress-line {
        margin: 0 5px;
    }

    .setup-header h1 {
        font-size: 1.5rem;
    }

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

/* Loading Spinner */
#setup-progress {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

#setup-progress .spinner-border {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

#setup-progress-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

#setup-progress-detail {
    display: block;
    font-size: 0.875rem;
}

/* Connection Status */
#connection-status {
    animation: fadeIn 0.3s ease-in;
}
