:root {
    --senada-red: #c1121f;
    --senada-red-strong: #9b0d18;
    --senada-red-soft: #ffe7ea;
    --senada-red-wash: #fff5f6;
    --senada-text: #111827;
    --senada-muted: #6b7280;
    --senada-line: rgba(17, 24, 39, 0.08);
    --senada-shadow: 0 1rem 2rem rgba(193, 18, 31, 0.12);
    --senada-card-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, 0.08);
}

body {
    color: var(--senada-text);
    background:
        radial-gradient(circle at top left, rgba(193, 18, 31, 0.10), transparent 32%),
        linear-gradient(180deg, #fff8f8 0%, #ffffff 45%, #fff6f6 100%);
}

.topbar {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    box-shadow: 0 .75rem 1.5rem rgba(193, 18, 31, 0.16);
}

.topbar .navbar-header {
    background: rgba(255, 255, 255, 0.12) !important;
}

.senada-brand-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.senada-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.senada-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.senada-brand-image {
    width: min(100%, 11rem) !important;
    max-height: 4.25rem;
    object-fit: contain;
    filter: drop-shadow(0 .5rem 1rem rgba(0, 0, 0, 0.08));
    mix-blend-mode: multiply;
}

.topbar .nav-link,
.topbar .navbar-nav .nav-link,
.topbar .navbar-nav .text-dark,
.topbar .navbar-brand,
.topbar .navbar-brand b,
.topbar .nav-toggler,
.topbar .topbartoggler {
    color: #fff !important;
}

.left-sidebar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-right: 1px solid rgba(193, 18, 31, 0.08);
    box-shadow: inset -1px 0 0 rgba(17, 24, 39, 0.03);
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    color: var(--senada-text) !important;
    border-radius: .9rem;
    margin: .15rem .65rem;
    transition: all .2s ease;
}

.sidebar-nav ul .sidebar-item .sidebar-link i {
    color: var(--senada-red) !important;
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover,
.sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.sidebar-nav ul .sidebar-item .sidebar-link.active {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    color: #fff !important;
    box-shadow: 0 .75rem 1.25rem rgba(193, 18, 31, 0.18);
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover i,
.sidebar-nav ul .sidebar-item.selected > .sidebar-link i,
.sidebar-nav ul .sidebar-item .sidebar-link.active i {
    color: #fff !important;
}

.sidebar-nav .nav-small-cap,
.sidebar-nav .hide-menu,
.nav-small-cap {
    letter-spacing: .04em;
}

.sidebar-nav .nav-small-cap {
    color: var(--senada-red) !important;
    font-weight: 800;
}

.page-wrapper,
.container-fluid {
    background: transparent !important;
}

.card,
.modal-content,
.list-group-item,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 1.15rem !important;
    border: 1px solid var(--senada-line) !important;
    box-shadow: var(--senada-card-shadow);
}

.card-header.bg-primary,
.bg-primary {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    border-color: transparent !important;
}

.bg-success,
.bg-danger,
.bg-info,
.bg-warning {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.alert-primary,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    background: linear-gradient(180deg, #fff5f6 0%, #ffe7ea 100%) !important;
    border: 1px solid rgba(193, 18, 31, 0.18) !important;
    color: var(--senada-text) !important;
}

.badge-primary,
.badge-success,
.badge-danger,
.badge-info,
.badge-warning {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    color: #fff !important;
}

.card-header {
    border-top-left-radius: 1.15rem !important;
    border-top-right-radius: 1.15rem !important;
}

.btn-primary,
.btn-info,
.btn-dark,
.btn-danger,
.btn-success,
.btn-warning {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 .75rem 1.5rem rgba(193, 18, 31, 0.16);
    color: #fff !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-dark:hover,
.btn-danger:hover,
.btn-success:hover,
.btn-warning:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--senada-red) !important;
    border-color: rgba(193, 18, 31, 0.32) !important;
}

.btn-outline-primary:hover {
    background: var(--senada-red-soft) !important;
    color: var(--senada-red) !important;
}

.form-control,
.custom-select,
textarea,
select {
    border-radius: .95rem !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    box-shadow: none !important;
}

.form-control:focus,
.custom-select:focus,
textarea:focus,
select:focus {
    border-color: rgba(193, 18, 31, 0.45) !important;
    box-shadow: 0 0 0 .2rem rgba(193, 18, 31, 0.08) !important;
}

.table thead th,
.table-bordered th {
    color: var(--senada-text);
}

.table thead.bg-primary th,
.table thead.bg-success th,
.table thead.bg-danger th,
.table thead.bg-info th,
.table thead.bg-warning th,
.table .bg-primary th,
.table .bg-success th,
.table .bg-danger th,
.table .bg-info th,
.table .bg-warning th,
.table thead.bg-primary th a,
.table thead.bg-success th a,
.table thead.bg-danger th a,
.table thead.bg-info th a,
.table thead.bg-warning th a,
.table .bg-primary th a,
.table .bg-success th a,
.table .bg-danger th a,
.table .bg-info th a,
.table .bg-warning th a,
.table thead.text-white th,
.table thead.text-white th a,
.table .text-white th,
.table .text-white th a {
    color: #fff !important;
}

table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after {
    color: rgba(255, 255, 255, 0.88) !important;
}

.page-breadcrumb,
.breadcrumb,
.footer,
.footer.text-center {
    background: transparent !important;
}

.footer {
    color: var(--senada-muted);
}

.auth-plus {
    background:
        radial-gradient(circle at top left, rgba(193, 18, 31, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.14), transparent 30%),
        linear-gradient(180deg, #fff6f6 0%, #ffffff 100%) !important;
}

.auth-plus .auth-box {
    overflow: hidden;
    border-radius: 1.75rem;
    box-shadow: 0 1.5rem 3rem rgba(193, 18, 31, 0.14);
    border: 1px solid rgba(193, 18, 31, 0.10);
    background: rgba(255, 255, 255, 0.95);
}

.auth-plus .modal-bg-img {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,245,246,.94) 100%) !important;
    overflow: hidden;
}

.auth-plus .modal-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(193,18,31,.04), transparent 58%);
    pointer-events: none;
}

.auth-plus .auth-visual-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    min-height: 500px;
}

.auth-plus .auth-logo-hero {
    position: relative;
    z-index: 2;
    width: min(100%, 32rem);
    max-height: 26rem;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1rem 2rem rgba(17, 24, 39, 0.10));
}

.auth-plus .auth-panel {
    background: rgba(255, 255, 255, 0.92);
}

.auth-plus .login-compact-panel {
    gap: .5rem;
}

.auth-plus .login-compact-header {
    max-width: 20rem;
}

.auth-plus .brand-kicker {
    color: var(--senada-red);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.auth-plus .brand-title {
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 900;
    color: var(--senada-text);
}

.auth-plus .brand-title span {
    color: var(--senada-red);
}

.auth-plus .form-control {
    min-height: 3.05rem;
}

.preloader .lds-ripple .lds-pos {
    border-color: var(--senada-red) !important;
}

.dropdown-menu,
.user-dd {
    border-radius: 1rem !important;
    border: 1px solid var(--senada-line) !important;
    box-shadow: var(--senada-card-shadow) !important;
}

.table .thead-dark th,
.table .thead-light th,
.table-bordered thead th,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border-color: rgba(193, 18, 31, 0.12) !important;
}

.page-item.active .page-link,
.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--senada-red) 0%, #ef4444 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .auth-plus .auth-box {
        min-height: auto !important;
    }

    .auth-plus .auth-visual-panel {
        min-height: 280px;
        padding: 1.5rem;
    }

    .auth-plus .auth-logo-hero {
        max-height: 14rem;
        width: min(100%, 18rem);
    }

    .auth-plus .brand-title {
        font-size: 1.7rem;
    }
}
