/* Base reset and foundation styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rb-text-primary);
    background-color: var(--rb-bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--rb-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, button, textarea, select {
    font: inherit;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--rb-secondary);
    outline-offset: 2px;
}

/* Blazor-specific styles */
#blazor-error-ui {
    background: var(--rb-error);
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
}

.blazor-error-boundary {
    background: var(--rb-bg-tertiary);
    padding: 1rem;
    border: 1px solid var(--rb-error);
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
