﻿/* Shared css, mainly for shared components between projects */

a {
    color: var(--mud-palette-primary);
}

.wof-font-grey {
    color: #888 !important;
}

.form-label-small {
    margin-bottom: 4px;
    line-height: 1.3;
}

    .form-label-small > label, .form-label-small > .wof-font-smaller {
        font-size: 0.75rem;
    }

    .form-label-small > p {
        line-height: 1.3;
    }

#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: unset !important;
    color: white; /* Ensure the text is easily readable */
    text-align: center; /* Center-align the text */
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Optional: adds a shadow for better layering */
    z-index: 9999; /* Ensure it is always on top of other content */
}

.overlay-lockout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(100, 100, 100, 0.5); /* soft gray */
    z-index: -1; /*z-index is already 9999, removes one to not cover the actual error ui*/
    pointer-events: all;
}

.blazor-error-ui-content {
    padding: 15px 20px; /* Add some padding */
    background-color: var(--mud-palette-error);
}

    .blazor-error-ui-content a {
        color: #FFFFFF;
        font-weight: bold;
        text-decoration: none;
    }

/* -------------- Mobile first media queries --------------- */
.dynamic-avatar-size {
    width: 50px !important;
    height: 50px !important;
}

/* -------------- Min with fall-through -------------------- */
/* XS */
@media screen and (min-width: 599px) {
    .dynamic-avatar-size {
        width: 65px !important;
        height: 65px !important;
    }
}

/* SM */
@media screen and (min-width: 959px) {
    .dynamic-avatar-size {
        width: 75px !important;
        height: 75px !important;
    }
}

/* MD */
@media screen and (min-width: 1279px) {
}

/* LG */
@media screen and (min-width: 1919px) {
}
