@import "globalvariables.css";

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f3f3;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

h1:focus {
    outline: none;
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3N2ZyI+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--groen--brand);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text);
}

/* Laad-indicator zolang de aanmeldstatus nog niet gekend is (zie MainLayout) */
.app-laden {
    width: 2.25rem;
    height: 2.25rem;
    margin: 30vh auto 0;
    border: 3px solid #e0e0e0;
    border-top-color: var(--groen--brand);
    border-radius: 50%;
    animation: app-laden-draai 0.8s linear infinite;
}

@keyframes app-laden-draai {
    to {
        transform: rotate(360deg);
    }
}

/* Layout */
.app-shell {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #f5f5f5;
}

.app-shell__sidebar {
    width: min(18rem, 24vw);
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    background: #f1f1f1;
    border-right: 1px solid #d6d6d6;
}

.app-shell__mobile-navigation {
    display: none;
}

@media (max-width: 768px) {
    .app-shell__sidebar {
        display: none;
    }

    .app-shell__header {
        display: flex;
        align-items: center;
        background: #f5f5f5;
        border-bottom: 1px solid #d9d9d9;
    }

    .app-shell__mobile-navigation {
        display: block;
        flex-shrink: 0;
        padding-left: 0.75rem;
    }

    .app-shell__header > .titelbalk {
        flex: 1;
        min-width: 0;
        padding-left: 0.5rem;
        border-bottom: 0;
    }
}

.app-shell__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.app-shell__main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    /* Achtergrond voor alle pagina's in de standaard layout.
       De pagina's zelf hoeven geen achtergrond meer in te stellen. */
    background: #f5f5f5 var(--pagina-achtergrond) center left / cover no-repeat;
}

/* The page's root element fills the space below the title bar,
   and still grows when its content is taller. */
.app-shell__main > * {
    flex: 1 0 auto;
}

/* Sidebar */
/* Dit moet blijven staan voor het ingeklapte vleugel-paneel
want anders wordt het ingeklapte paneel niet correct weergegeven
doordat de standaard stijlen van toepassing blijven */
.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-sectie__titel,
.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-tab__binnenkort {
    display: none;
}

/* Ingeklapt is er geen titel, dus een lijn tussen de blokken */
.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-sectie + .vleugel-sectie {
    padding-top: 0.5rem;
    border-top: 1px solid #d6d6d6;
}

.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-brand-link {
    display: none;
}

.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-tab {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
}

.vleugel-paneel--desktop.vleugel-paneel--collapsed .vleugel-tab__label {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.rounded-full {
    border-radius: 100%;
}

/* 24 uren passen niet in één lijst: scrollbaar maken */
.tijd-lijst {
    max-height: 16rem;
    overflow-y: auto;
    min-width: 5rem;
}