/* Smarting — base styles (Tailwind handles utilities) */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Geist", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1:focus { outline: none; }

#blazor-error-ui {
    color-scheme: light only;
    background: #FAEEDA;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 13px;
    color: #633806;
}

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

.blazor-error-boundary {
    background: #DC2626;
    padding: 1rem;
    color: white;
    border-radius: 8px;
    margin: 1rem;
    font-size: 14px;
}

.blazor-error-boundary::after {
    content: "Ett fel har inträffat.";
}

.status-bar-safe-area { display: none; }

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: var(--color-bg, #FAFAFA);
        width: 100%;
        z-index: 1;
    }
}
