:root {
    --nexivo-red: #991b1b;
    --nexivo-red-dark: #7f1d1d;
    --nexivo-red-light: #b91c1c;
    --nexivo-sidebar-active: #3f1f1f;
    --nexivo-sidebar: #2f363d;
}

/*
 * AdminLTE forces every .fade element to full opacity when reduced motion is
 * enabled. Restore Bootstrap's intended opacity specifically for modal
 * backdrops without affecting offcanvas backdrops or the modal itself.
 */
.modal-backdrop.show {
    opacity: var(--bs-backdrop-opacity, 0.5) !important;
}

/* Sidebar */
.app-sidebar,
.main-sidebar {
    background: var(--nexivo-sidebar) !important;
}

.app-sidebar .brand-link,
.main-sidebar .brand-link {
    /*background: #262b30 !important;*/
    color: #fff !important;
}

.app-sidebar .nav-link.active,
.main-sidebar .nav-link.active {
    background: var(--nexivo-red) !important;
    color: #fff !important;
}
.app-sidebar .nav-link.active {
    box-shadow: inset 4px 0 0 #dc2626;
}

.app-sidebar .nav-link:hover,
.main-sidebar .nav-link:hover {
    background: var(--nexivo-sidebar-active) !important;
    color: #fff !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--nexivo-red) !important;
    border-color: var(--nexivo-red) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--nexivo-red-dark) !important;
    border-color: var(--nexivo-red-dark) !important;
}

/* Card Header dezent */
.card-header {
    border-top: 3px solid var(--nexivo-red);
}

/* Footer */
.app-footer {
    border-top: 1px solid #ddd;
    font-size: 0.875rem;
}

/* Tabellen */
.table td,
.table th {
    vertical-align: middle;
}

.nexivo-brand {
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: #2f363d !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.nexivo-brand .brand-link {
    display: block;
    padding: 0;
    text-decoration: none;
}

.nexivo-brand .brand-title {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
}

.nexivo-brand .brand-subtitle {
    display: block;
    margin-top: .35rem;
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    line-height: 1.2;
    white-space: normal;
}

.sidebar-brand {
    margin: 0 !important;
}

.nexivo-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(153, 27, 27, .25), transparent 35%),
        linear-gradient(135deg, #20252b 0%, #343b43 100%);
}

.nexivo-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.nexivo-login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    border-top: 5px solid var(--nexivo-red);
}

.nexivo-login-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 2rem;
}

.nexivo-login-logo {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    background: var(--nexivo-red);
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexivo-login-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    color: #20252b;
}

.nexivo-login-subtitle {
    font-size: .9rem;
    color: #6c757d;
    margin-top: .25rem;
}

.nexivo-login-heading {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #20252b;
}

.nexivo-login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
    color: #6c757d;
}
