﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }
/* Avatar + logout styling */
.login-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
/* Avatar image + initials fallback */
.avatar-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 34px;
    height: 34px;
    margin-right: 8px;
}

.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}


.username {
    vertical-align: middle;
    margin-right: 6px;
}

/* mirror alleen het login-icoon zodat de pijl naar rechts wijst */
.login-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform-origin: center;
}

.logout {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    padding: 4px;
}

    .logout:hover {
        color: #dc3545;
    }

.logout-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.login-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.avatar-svg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: visible;
}

.username {
    font-size: 0.95rem;
    color: inherit;
}

.logout, .auth-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 4px;
}

.logout-icon, .auth-icon {
    fill: currentColor;
    width: 18px;
    height: 18px;
}
/* loading overlay voor grids */
.loading-wrapper {
    position: relative;
    min-height: 300px; /* of hoogte van je grid-container */
}

/* overlay boven grid, telt niet mee voor layout */
.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255,255,255,0.6); /* 👈 zichtbaarder */

    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all; /* 👈 blokkeert interactie */
    cursor: progress; /* 👈 duidelijke feedback */
}

/* eenvoudige, rustige spinner */
.spinner {
    width: 42px; /* 👈 groter */
    height: 42px;
    border: 4px solid rgba(0,0,0,0.15);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
