/* Modern Wizard Styling - Reusable across the application */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');

/* Futuristic text logo for use on gradient backgrounds */
.rtp-brand-text {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 217, 126, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}
.rtp-brand-text .rtp-brand-highlight {
    color: #00d97e;
    font-weight: 900;
}

/* Main wizard container styling */
.modern-wizard {
    min-height: 100vh;
    background: linear-gradient(135deg, #00428a 0%, #007bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Open Sans', sans-serif;
}

.wizard-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.wizard-header {
    background: linear-gradient(135deg, #00428a 0%, #007bff 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.wizard-header .mud-typography-h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Progress bar styling */
.progress-bar {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Step indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: white;
    color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.step-circle.completed {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.step-label.active {
    opacity: 1;
    font-weight: 600;
}

/* Content areas */
.wizard-content {
    padding: 2rem;
}

.step-content {
    animation: fadeIn 0.5s ease;
}

.wizard-actions {
    padding: 1.5rem 2rem;
    background: #ecf5ff;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icon animations */
.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.completion-icon {
    font-size: 5rem;
    color: #4CAF50;
    animation: scaleIn 0.5s ease;
}

/* Card styling */
.feature-card {
    padding: 1.5rem;
    border-radius: 10px;
    background: #ecf5ff;
    border-left: 4px solid #007bff;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Button styling */
.modern-button {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    border-radius: 50px;
    padding: 10px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modern-button:hover {
    background: none;
    border-color: #007bff;
    color: #007bff;
}

.modern-button-outlined {
    background: transparent;
    color: #004289;
    border: 2px solid #004289;
    border-radius: 50px;
    padding: 8px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modern-button-outlined:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Form styling */
.modern-form {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.modern-input {
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Alert styling */
.modern-alert {
    border-radius: 4px;
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.modern-alert.success {
    background: #f1f8e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.modern-alert.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
    color: #f57c00;
}

.modern-alert.error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.modern-alert.info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .wizard-container {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .wizard-header {
        padding: 1.5rem;
    }
    
    .wizard-content {
        padding: 1.5rem;
    }
    
    .wizard-actions {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Dark theme support - Using MudBlazor dark theme variables */
@media (prefers-color-scheme: dark) {
    .wizard-container {
        background: var(--mud-palette-background, #1a1a27);
        color: var(--mud-palette-text-primary, #ffffff);
    }
    
    .wizard-content {
        background: var(--mud-palette-surface, #2c2c3d);
    }
    
    .feature-card {
        background: var(--mud-palette-surface, #2c2c3d);
        color: var(--mud-palette-text-primary, #ffffff);
    }
    
    .modern-form {
        background: var(--mud-palette-surface, #2c2c3d);
        color: var(--mud-palette-text-primary, #ffffff);
    }
    
    .login-container {
        background: var(--mud-palette-background, #1a1a27);
    }
    
    .login-card {
        background: var(--mud-palette-surface, #2c2c3d);
        box-shadow: var(--mud-elevation-4, 0 6px 12px rgba(0,0,0,0.3));
    }
    
    .onboarding-container {
        background: var(--mud-palette-background, #1a1a27);
    }
}

/* MudBlazor theme class support for explicit theme control */
.mud-theme-dark .wizard-container,
.mud-theme-dark .login-container,
.mud-theme-dark .onboarding-container {
    background: var(--mud-palette-background, #1a1a27);
}

.mud-theme-dark .login-card,
.mud-theme-dark .wizard-content,
.mud-theme-dark .feature-card {
    background: var(--mud-palette-surface, #2c2c3d);
}

/* Utility classes - Using MudBlazor theme colors */
.gradient-bg {
    background: linear-gradient(135deg, #00428a 0%, #007bff 100%);
}

.gradient-text {
    color: #007bff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Theme-aware utility classes */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background, #f5f5f5);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--mud-palette-surface, #ffffff);
    border-radius: var(--mud-default-borderradius, 8px);
    box-shadow: var(--mud-elevation-4, 0 6px 12px rgba(0,0,0,0.1));
    padding: 2rem;
}

.onboarding-container {
    min-height: 100vh;
    background: var(--mud-palette-background, #f5f5f5);
}

/* Consistent with MudBlazor card styling */
.wizard-card {
    background: var(--mud-palette-surface, #ffffff);
    border-radius: var(--mud-default-borderradius, 8px);
    box-shadow: var(--mud-elevation-2, 0 2px 4px rgba(0,0,0,0.1));
    transition: box-shadow 0.2s ease-in-out;
}

.wizard-card:hover {
    box-shadow: var(--mud-elevation-4, 0 6px 12px rgba(0,0,0,0.1));
}

.glass-effect {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.shadow-medium {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.shadow-strong {
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
