@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9375rem; /* slightly smaller base text (15px at 16px default) */
}

/* --- Mobile safety / prevent page-level horizontal scrolling --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Flex children in the main layout must be allowed to shrink */
.page,
.main,
.content {
    min-width: 0;
    max-width: 100%;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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;
    }
.home-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-image {
    width: 150px;
    height: auto;
}

@media (max-width: 640.98px) {
    .home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .home-image {
        width: 96px;
    }
}
.login-wrapper {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: rgba(82, 96, 113);
}

.login-logo {
    width: 120px;
    margin-bottom: 20px;
}

.login-wrapper input.form-control {
    border-radius: 8px;
}

.btn-login {
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}
.auth a, .auth button {
    margin-left: 5px;
    margin-right: 5px;
}
.sidebar-logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 4.25rem; /* Match top-row height so logo centres properly */
    padding: 0;
    flex-shrink: 0;
}

/* 2. The Image: Strictly controls the size */
.sidebar-logo-img {
    max-height: 65px !important;
    max-width: 65px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Ensures it doesn't stretch or distort */
    display: block !important;
}
.sidebar {
    display: flex !important;
    flex-direction: column !important; /* Stack logo on top of menu */
}