:root {
    /* Color Palette */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #3b82f6;
    --accent-light: #eff6ff;
    --progress-bg: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.maintenance-container {
    background: var(--card-bg);
    max-width: 540px;
    width: 100%;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    text-align: center;
    
    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

.animation-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 88px;
    height: 88px;
    background-color: var(--accent-light);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.gear-icon {
    /* Slow, subtle rotation to show activity without being distracting */
    animation: spin 12s linear infinite;
}

.content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.content .secondary-text {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Subtle, indeterminate progress bar */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: var(--progress-bg);
    border-radius: 4px;
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    height: 100%;
    width: 30%;
    background-color: var(--accent-color);
    border-radius: 4px;
    animation: progressIndeterminate 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes progressIndeterminate {
    0% {
        left: -30%;
        width: 30%;
    }
    50% {
        width: 40%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .maintenance-container {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .content h1 {
        font-size: 1.5rem;
    }
    
    .animation-wrapper {
        width: 72px;
        height: 72px;
        margin-bottom: 1.5rem;
    }
    
    .gear-icon {
        width: 40px;
        height: 40px;
    }
}