html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

#features,
#pricing {
    scroll-margin-top: 5rem;
}


main {
    scroll-behavior: smooth;
}

/* Modern Loading Spinner */
#app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
}

.loader-container {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: float 3s ease-in-out infinite;
}

.loader-logo svg {
    width: 100%;
    height: 100%;
    stroke: #2563eb;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loader-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Error UI */
#blazor-error-ui {
    background: #ef4444;
    bottom: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 16px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
}

#blazor-error-ui .error-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#blazor-error-ui .error-message {
    display: flex;
    align-items: center;
    gap: 12px;
}

#blazor-error-ui .error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

#blazor-error-ui .error-actions {
    display: flex;
    gap: 12px;
}

#blazor-error-ui a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

#blazor-error-ui a:hover {
    background: rgba(255, 255, 255, 0.3);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    line-height: 1;
}
