html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #0f172a;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

* {
    box-sizing: border-box;
}

.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.app-brand {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.top-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
}

.top-links a.active,
.top-links a:hover {
    color: #ffffff;
}

.user-chip {
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
    font: inherit;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.layout-content {
    flex: 1;
    display: flex;
    margin-top: 64px;
    min-height: 0;
}

.sidebar {
    width: 230px;
    background-color: #475569;
    color: #ffffff;
    padding: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links a {
    text-decoration: none;
    color: #f8fafc;
    padding: 0.5rem 0.65rem;
    border-radius: 0.35rem;
}

.sidebar-links a.active,
.sidebar-links a:hover {
    background-color: rgba(15, 23, 42, 0.35);
}

.sidebar-logout-btn {
    width: 100%;
    border: none;
    border-radius: 0.35rem;
    background-color: rgba(15, 23, 42, 0.2);
    color: #f8fafc;
    padding: 0.5rem 0.65rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.sidebar-logout-btn:hover {
    background-color: rgba(15, 23, 42, 0.35);
}

.main-content {
    flex: 1;
    background-color: #ffffff;
    padding: 1.25rem;
}

.app-footer {
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 768px) {
    .layout-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}