/* UDaily Default Styles */

/* Preload spinner — shown while WASM runtime loads */
.preload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.preload-content {
    text-align: center;
}

.preload-spinner {
    width: 40px;
    height: 40px;
    margin: 16px auto;
    border: 4px solid #dee2e6;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.preload-text {
    color: #6c757d;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Error boundary */
.error-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 4rem auto;
}

/* Not found */
.not-found {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 4rem auto;
}

/* Anonymous layout (login/register pages) */
.anonymous-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.anonymous-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.anonymous-container {
    width: 100%;
    max-width: 400px;
}

.anonymous-footer {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Headings should never show a focus outline */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none;
}

/* Anonymous logo */
.anonymous-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.anonymous-logo h1 {
    color: #2c3e50;
    font-weight: 700;
}

/* Login / registration pages */
.login-page {
    width: 100%;
}

.login-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-links {
    text-align: center;
    margin-top: 1rem;
}

.login-links .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.login-links a {
    color: #0d6efd;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}
