/* Import CSS architecture */
@import url('variables.css');
@import url('layout.css');
@import url('components.css');
@import url('utilities.css');
@import url('animations.css');
@import url('marketing.css');
@import url('dashboard.css');

/* Basic reset and styling */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Layout shell background - kept for backward compatibility */
.layout-shell {
    min-height: 100vh;
}

/* App loading screen - shown during startup initialization */
.app-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.app-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-loading-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Dark mode support for loading screen */
@media (prefers-color-scheme: dark) {
    .app-loading-screen {
        background: linear-gradient(135deg, #020617 0%, #111827 100%);
    }
}
