/* ==============================
    INTAJO — Theme Override v2
    ============================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --cp-primary: #ef6f6f;
    --cp-primary-rgb: 239, 111, 111;
    --cp-primary-light: rgba(var(--cp-primary-rgb), 0.12);
    --cp-primary-soft: rgba(var(--cp-primary-rgb), 0.06);
    --cp-secondary: #efc673;
    --cp-dark: #1c1c28;
    --cp-dark-soft: #2a2a3a;
    --cp-text: #3a4b60;
    --cp-text-muted: #6e7687;
    --cp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --cp-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --cp-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --cp-radius-sm: 6px;
    --cp-radius: 10px;
    --cp-radius-lg: 14px;
    --cp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- GLOBAL TRANSITIONS ---------- */
.card,
.btn,
.form-control,
.modal-content,
.dropdown-menu,
.nav-link,
.metismenu a,
.table tr,
.avatar,
.badge,
.nav-tabs .nav-link {
    transition: all var(--cp-transition);
}

/* ---------- SELECTION ---------- */
::selection {
    color: #fff;
    background: var(--cp-primary);
}

/* ---------- LINKS ---------- */
a,
.btn-link {
    color: var(--cp-primary);
}

/* ---------- TEXT COLORS ---------- */
.text-green,
.text-info,
.text-success,
.text-danger,
.text-primary,
.text-warning,
.mail-star.active,
.page-title {
    color: var(--cp-primary) !important;
}

/* ---------- BADGES ---------- */
.badge-default {
    background: #6c7989;
    color: #eff2f7;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.badge-primary {
    background-color: var(--cp-primary);
}

/* ---------- LOADER ---------- */
.loader {
    color: var(--cp-primary);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    background: var(--cp-primary);
    color: #fff;
    border-color: var(--cp-primary);
    box-shadow: 0 3px 10px rgba(var(--cp-primary-rgb), 0.3);
}

.btn-primary:hover {
    background: #e05a5a;
    border-color: #e05a5a;
    box-shadow: 0 6px 18px rgba(var(--cp-primary-rgb), 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-info {
    /* reserved */
}

.btn-outline-primary {
    color: var(--cp-primary);
    border-color: var(--cp-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--cp-primary);
    border-color: var(--cp-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--cp-primary-rgb), 0.25);
}

.btn {
    border-radius: var(--cp-radius-sm);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---------- NAV TABS ---------- */
.nav-tabs .nav-link.active {
    border-color: var(--cp-primary);
    color: var(--cp-primary);
    font-weight: 600;
}

.nav-tabs .nav-link {
    border-radius: var(--cp-radius-sm) var(--cp-radius-sm) 0 0;
    padding: 0.6rem 1.1rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--cp-primary);
    border-color: transparent;
}

/* ---------- FORM CONTROLS ---------- */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--cp-primary-rgb), 0.2);
    border-color: var(--cp-primary);
}

.form-control {
    border-radius: var(--cp-radius-sm);
    border-color: #dce1e7;
}

.form-control,
.dataTables_wrapper .dataTables_filter,
.input-group-text {
    border-color: #dce1e7;
    background: #fff;
}

.form-control:hover {
    border-color: #c0c8d2;
}

/* ---------- CARDS ---------- */
.card,
.dropify-wrapper,
.btn-primary {
    border: 0;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow-sm);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card:hover {
    box-shadow: var(--cp-shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-footer {
    background: rgba(0, 0, 0, 0.015);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card.card-fullscreen {
    background-color: #fff !important;
    border-radius: 0;
    backdrop-filter: none;
}

.card .card-options a.btn {
    color: #fff;
}

.card-status {
    border-radius: var(--cp-radius) var(--cp-radius) 0 0;
    height: 3px;
}

/* ---------- CARD BODY SPACING ---------- */
.card-body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
}

/* ---------- BACKGROUNDS ---------- */
.bg-primary,
.bg-info,
.bg-warning,
.btn-success {
    background-color: var(--cp-primary) !important;
    border: transparent;
}

.bg-success,
.bg-danger,
.badge-success,
.progress-bar,
.btn-danger,
.btn-warning {
    border: transparent;
}

.bg-blue,
.bg-azure,
.bg-indigo,
.bg-purple,
.bg-red,
.bg-orange {
    background-color: var(--cp-primary) !important;
}

.bg-pink,
.bg-yellow,
.bg-lime,
.bg-green,
.bg-teal,
.bg-cyan {
    background-color: var(--cp-secondary) !important;
}

.bg-light-blue,
.bg-light-azure,
.bg-light-indigo,
.bg-light-lime,
.bg-light-green,
.bg-light-teal {
    background-color: rgba(var(--cp-primary-rgb), 0.12);
    color: var(--cp-text);
}

.bg-light-pink,
.bg-light-red,
.bg-light-orange,
.bg-light-yellow,
.bg-light-cyan {
    background-color: rgba(239, 198, 115, 0.15);
    color: var(--cp-text);
}

.bg-light-purple {
    background-color: rgba(255, 154, 154, 0.15);
    color: #ff9a9a;
}

.bg-light-gray {
    background-color: rgba(102, 106, 109, 0.15);
    color: #666A6D;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
    background: var(--cp-primary) !important;
    border-radius: 4px;
}

/* ---------- CUSTOM CONTROLS ---------- */
.custom-control-input:checked~.custom-control-label::before,
.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before,
.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before {
    border-color: var(--cp-primary);
    background-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.12);
}

.custom-select {
    background-color: transparent;
    border-color: #dce1e7;
    border-radius: var(--cp-radius-sm);
}

.multiselect_div>.btn-group .btn {
    background-color: transparent;
    border-color: #dce1e7;
    border-radius: var(--cp-radius-sm);
}

.custom-switch-input:checked~.custom-switch-indicator {
    background: var(--cp-primary);
}

.selectgroup-input:checked+.selectgroup-button {
    border-color: var(--cp-primary);
    color: var(--cp-primary);
    background: var(--cp-primary-light);
    box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.08);
}

.imagecheck-figure:before {
    color: var(--cp-secondary) !important;
}

/* ---------- WIZARD ---------- */
.wizard>.steps .current a,
.wizard>.steps .current a:hover,
.wizard>.steps .current a:active,
.wizard>.actions a,
.wizard>.actions a:hover {
    background: var(--cp-primary);
    border-radius: var(--cp-radius-sm);
}

.wizard>.steps .done a,
.wizard>.steps .done a:hover {
    background: var(--cp-primary-light);
    color: var(--cp-primary);
    border-radius: var(--cp-radius-sm);
}

/* ---------- TABLES ---------- */
.table th {
    color: var(--cp-text);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(var(--cp-primary-rgb), 0.15);
    padding: 0.85rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #f0f2f5;
}

.table.table-custom td,
.table.table-custom th {
    background: rgba(255, 255, 255, 0.6);
}

.table.table_custom tr {
    background: rgba(255, 255, 255, 0.6);
}

.table-hover tbody tr:hover {
    background: rgba(var(--cp-primary-rgb), 0.03);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.012);
}

/* ---------- TABLE CALENDAR ---------- */
.inline-datepicker.fill_bg {
    color: var(--cp-primary);
}

.table-calendar-link {
    background: var(--cp-primary);
    border-radius: 6px;
}

.table-calendar-link:hover {
    background: var(--cp-dark-soft);
    transform: scale(1.05);
}

.table-calendar-link::before {
    background: var(--cp-dark-soft);
}

/* ---------- PROFILE AVATARS ---------- */
.avatar.avatar-blue,
.avatar.avatar-azure,
.avatar.avatar-indigo,
.avatar.avatar-purple,
.avatar.avatar-pink,
.avatar.avatar-red,
.avatar.avatar-orange {
    background-color: rgba(var(--cp-primary-rgb), 0.12);
    color: var(--cp-primary);
}

.avatar.avatar-yellow,
.avatar.avatar-lime,
.avatar.avatar-green,
.avatar.avatar-teal,
.avatar.avatar-cyan {
    background-color: rgba(239, 198, 115, 0.15);
    color: var(--cp-secondary);
}

/* ---------- BODY ---------- */
body {
    color: var(--cp-text);
}

body::after {
    background: url(../../static/images/bg2503.jpg) top center;
    background-size: cover;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* ---------- DARK MODE BODY ---------- */
body.dark-mode::after {
    display: none;
}

/* ---------- PAGE SECTIONS ---------- */
.page .section-white,
.page .section-body {
    background: transparent;
}

.page .section-light {
    background: rgba(255, 255, 255, 0.55);
}

/* ---------- HEADER ---------- */
.header {
    background: var(--cp-primary);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.header .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.header .nav-tabs .nav-link.active {
    border-color: #fff;
    color: #fff;
}

.header .nav-tabs .nav-link:hover {
    color: #fff;
}

.header .dropdown-menu .dropdown-item:hover,
.header .dropdown-menu .dropdown-item.active {
    color: var(--cp-primary);
    background: var(--cp-primary-soft);
}

/* ---------- HEADER TOP ---------- */
#header_top .brand-logo {
    background: transparent;
    max-width: 40px;
    max-height: 40px;
    animation: brandLogoFloat 3.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(var(--cp-primary-rgb), 0.35));
    transition: filter 0.4s ease;
}

#header_top .brand-logo:hover {
    filter: drop-shadow(0 3px 14px rgba(var(--cp-primary-rgb), 0.55));
}

@keyframes brandLogoFloat {
    0% {
        transform: translateY(0) perspective(200px) rotateY(0deg);
    }

    50% {
        transform: translateY(-6px) perspective(200px) rotateY(360deg);
    }

    100% {
        transform: translateY(0) perspective(200px) rotateY(360deg);
    }
}

#header_top .nav-link {
    color: var(--cp-text);
}

.header_top.dark {
    background-color: var(--cp-dark-soft) !important;
}

.header_top.dark .nav-link {
    color: #eff2f7 !important;
}

/* ---------- LEFT SIDEBAR ---------- */
#left-sidebar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

body.offcanvas-active #left-sidebar {
    background: #fff;
}

/* ---------- METISMENU (SIDEBAR NAV) ---------- */
.metismenu a {
    color: var(--cp-text);
    border-radius: var(--cp-radius-sm);
    padding: 0.6rem 0.85rem;
    margin: 1px 0;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.metismenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--cp-primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.metismenu a:hover {
    color: var(--cp-primary);
    background: var(--cp-primary-soft);
    border-color: var(--cp-primary);
}

.metismenu a:hover::before {
    height: 60%;
}

.metismenu .active>a {
    color: var(--cp-primary);
    background: var(--cp-primary-light);
    border-color: var(--cp-primary);
    font-weight: 600;
}

.metismenu .active>a::before {
    height: 60%;
}

.metismenu .active ul .active a {
    color: var(--cp-primary);
    background: transparent;
    font-weight: 600;
}

.metismenu.grid>li.active>a,
.metismenu.grid>li>a:hover {
    background: var(--cp-primary-light);
    color: var(--cp-primary);
    box-shadow: 0 2px 8px rgba(var(--cp-primary-rgb), 0.12);
}

.metismenu .has-arrow:after {
    transition: all 0.3s ease;
}

/* ---------- INBOX ---------- */
.inbox .detail {
    background: #fff;
    border-radius: var(--cp-radius);
}

/* ---------- FILE FOLDER ---------- */
.file_folder a {
    background: #fff;
    border-color: #eff2f7;
    border-radius: var(--cp-radius);
    transition: all var(--cp-transition);
}

.file_folder a:hover {
    box-shadow: var(--cp-shadow-md);
    border-color: rgba(var(--cp-primary-rgb), 0.2);
    transform: translateY(-2px);
}

/* ---------- STATUS CHAT ---------- */
.right_chat li.online .status {
    background: var(--cp-primary);
    animation: status-pulse 2s infinite;
}

/* ---------- GENDER OVERVIEW ---------- */
.gender_overview {
    background: #eff2f7;
}

/* ---------- THEME DIV ---------- */
.theme_div {
    background: #fff;
    border-radius: var(--cp-radius);
}

/* ---------- TOP DARK & SIDEBAR DARK ---------- */
.top_dark {
    background-color: var(--cp-dark-soft) !important;
}

.sidebar_dark #left-sidebar {
    background-color: var(--cp-dark-soft) !important;
    backdrop-filter: none;
}

.sidebar_dark #header_top .nav-link {
    color: #eff2f7 !important;
}

.sidebar_dark .metismenu .active>a {
    color: var(--cp-primary);
}

/* ---------- ICON COLOR THEME ---------- */
.iconcolor #header_top .nav-link {
    color: var(--cp-primary) !important;
}

/* ---------- GRADIENT THEME ---------- */
.gradient .fa {
    background: -webkit-linear-gradient(45deg, var(--cp-primary), var(--cp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient .custom-switch-input:checked~.custom-switch-indicator {
    background: linear-gradient(45deg, var(--cp-primary), var(--cp-secondary)) !important;
}

.gradient .metismenu.grid>li.active>a,
.gradient .metismenu.grid>li>a:hover {
    background: linear-gradient(45deg, var(--cp-primary), #e05a5a) !important;
    color: #fff;
    border: 0;
}

.gradient .btn-primary {
    background: linear-gradient(45deg, var(--cp-primary), var(--cp-secondary)) !important;
    border: 0;
}

.gradient .btn-dark {
    background: linear-gradient(45deg, #808488, #333537) !important;
}

.gradient .bg-success,
.gradient .bg-danger,
.gradient .badge-success,
.gradient .progress-bar,
.gradient .btn-danger {
    background: linear-gradient(45deg, var(--cp-primary), var(--cp-secondary)) !important;
}

.gradient .header {
    background: linear-gradient(45deg, var(--cp-primary), #e05a5a);
}

/* ---------- AUTH (LEGACY OVERRIDE) ---------- */
.auth .auth_left {
    background: transparent;
    width: 50%;
}

@media screen and (max-width: 992px) {
    .auth .auth_left {
        width: 100%;
    }
}

.auth .auth_left>.card {
    max-width: 340px;
    margin-left: auto;
}

/* ---------- MODAL ---------- */
.modal {
    z-index: 9000;
    max-height: 85%;
    top: 60px;
}

.modal-top {
    z-index: 30000 !important;
}

.modal .modal-content {
    background: #f7f8fa;
    border-radius: var(--cp-radius);
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.modal-header {
    padding: 1.15rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
}

/* ---------- BOOTSTRAP SELECT ---------- */
.bootstrap-select .btn:not(.bs-placeholder) {
    white-space: normal !important;
    word-wrap: break-word !important;
}

.bootstrap-select>.dropdown-menu {
    z-index: 10000 !important;
}

.bootstrap-select .dropdown-menu {
    min-width: 100%;
    max-width: 100vw;
}

.bootstrap-select .dropdown-menu .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bootstrap-select .dropdown-menu .dropdown-item .text {
    white-space: normal;
}

.bootstrap-select.dropup .dropdown-menu {
    bottom: auto !important;
    top: auto !important;
}

/* ---------- DROPDOWN ---------- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-radius: var(--cp-radius);
    padding: 0.4rem;
    min-width: 10rem;
    max-width: 95vw;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        margin-top: 4px;
    }

    to {
        opacity: 1;
        margin-top: 0;
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu .dropdown-item {
    border-radius: var(--cp-radius-sm);
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background: var(--cp-primary-soft);
    color: var(--cp-primary);
}

/* Dropdown inside btn-group / header */
.btn-group>.dropdown-menu,
.input-group>.dropdown-menu {
    top: 100% !important;
    margin-top: 0.25rem;
}

.btn-group.dropup>.dropdown-menu,
.input-group.dropup>.dropdown-menu {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* ---------- TYPOGRAPHY ---------- */
.gooddesc {
    font-weight: 700;
}

.smallsize {
    font-size: 10px;
}

.mediumsize {
    font-size: 12px;
}

.pricetext {
    font-size: 12px;
}

/* ============================== */
/*      STATUS ANIMATIONS         */
/* ============================== */
.need-auth {
    animation: color-need-auth 2s ease-in-out infinite;
}

@keyframes color-need-auth {

    0%,
    100% {
        background-color: rgba(var(--cp-primary-rgb), 0);
    }

    50% {
        background-color: rgba(var(--cp-primary-rgb), 0.8);
    }
}

.sign-warning {
    animation: color-sign-warning 2s ease-in-out infinite;
}

@keyframes color-sign-warning {

    0%,
    100% {
        background-color: rgba(255, 116, 116, 0);
    }

    50% {
        background-color: rgba(255, 116, 116, 0.75);
    }
}

.sign-danger {
    animation: color-sign-danger 2s ease-in-out infinite;
}

@keyframes color-sign-danger {

    0%,
    100% {
        background-color: rgba(255, 215, 0, 0);
    }

    50% {
        background-color: rgba(255, 215, 0, 0.7);
    }
}

.sign-info {
    animation: color-sign-info 2s ease-in-out infinite;
}

@keyframes color-sign-info {

    0%,
    100% {
        background-color: rgba(105, 212, 255, 0);
    }

    50% {
        background-color: rgba(105, 212, 255, 0.75);
    }
}

.sign-success {
    animation: color-sign-success 2s ease-in-out infinite;
}

@keyframes color-sign-success {

    0%,
    100% {
        background-color: rgba(105, 255, 115, 0);
    }

    50% {
        background-color: rgba(105, 255, 115, 0.75);
    }
}

.sign-secondary {
    animation: color-sign-secondary 2s ease-in-out infinite;
}

@keyframes color-sign-secondary {

    0%,
    100% {
        background-color: rgba(176, 176, 176, 0);
    }

    50% {
        background-color: rgba(176, 176, 176, 0.7);
    }
}

/* ============================== */
/*       NEW ANIMATION UTILS      */
/* ============================== */

/* Fade in on mount */
.anim-fade-in {
    animation: animFadeIn 0.5s ease forwards;
}

@keyframes animFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
.anim-fade-left {
    animation: animFadeLeft 0.5s ease forwards;
}

@keyframes animFadeLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
.anim-fade-right {
    animation: animFadeRight 0.5s ease forwards;
}

@keyframes animFadeRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
.anim-scale-in {
    animation: animScaleIn 0.4s ease forwards;
}

@keyframes animScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse ring - for notification dots */
.anim-pulse-ring {
    animation: animPulseRing 2s ease-in-out infinite;
}

@keyframes animPulseRing {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--cp-primary-rgb), 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(var(--cp-primary-rgb), 0);
    }
}

/* Shimmer loading */
.anim-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: animShimmer 1.5s ease-in-out infinite;
}

@keyframes animShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Slide down */
.anim-slide-down {
    animation: animSlideDown 0.35s ease forwards;
}

@keyframes animSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover lift */
.hover-lift {
    transition: all var(--cp-transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--cp-shadow-lg);
}

/* Stagger animation for list children */
.anim-stagger>* {
    opacity: 0;
    animation: animFadeIn 0.4s ease forwards;
}

.anim-stagger>*:nth-child(1) {
    animation-delay: 0.05s;
}

.anim-stagger>*:nth-child(2) {
    animation-delay: 0.1s;
}

.anim-stagger>*:nth-child(3) {
    animation-delay: 0.15s;
}

.anim-stagger>*:nth-child(4) {
    animation-delay: 0.2s;
}

.anim-stagger>*:nth-child(5) {
    animation-delay: 0.25s;
}

.anim-stagger>*:nth-child(6) {
    animation-delay: 0.3s;
}

.anim-stagger>*:nth-child(7) {
    animation-delay: 0.35s;
}

.anim-stagger>*:nth-child(8) {
    animation-delay: 0.4s;
}

.anim-stagger>*:nth-child(9) {
    animation-delay: 0.45s;
}

.anim-stagger>*:nth-child(10) {
    animation-delay: 0.5s;
}

/* ============================== */
/*      PAGE CONTENT POLISH       */
/* ============================== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header .right .nav-pills .nav-link {
    color: var(--cp-text);
    border-radius: var(--cp-radius);
    font-weight: 500;
}

.page-header .right .nav-pills .nav-link:hover {
    background: var(--cp-primary-soft);
    color: var(--cp-primary);
}

.page-header .right .nav-pills .nav-link.active {
    background: var(--cp-primary);
    color: #fff;
}

/* Section body micro spacing */
.section-body {
    padding-top: 0.5rem;
}

/* ============================== */
/*          DARK MODE              */
/* ============================== */
.dark-mode {
    background: #1f2328;
    color: #a4aab3;
}

.dark-mode ::selection {
    background: #fff;
    color: #1f2328;
}

.dark-mode .loader {
    color: #1f2328;
}

.dark-mode .auth_left {
    background: #1f2328;
}

/* Dark mode sections */
.dark-mode .page .section-gray {
    background: #1f2328;
}

.dark-mode .page .section-white {
    background: #24282e;
}

.dark-mode .page .section-light {
    background: #24282e;
}

.dark-mode .page .section-body {
    background: #1f2328;
}

.dark-mode .page .section-dark {
    background: #1f2328;
}

/* Dark mode sidebar */
.dark-mode #left-sidebar,
.dark-mode .user_div {
    background: #1f2328;
    border-color: #2d3137;
    backdrop-filter: none;
}

.dark-mode #left-sidebar .brand-name,
.dark-mode .user_div .brand-name {
    color: #fff;
}

.dark-mode #left-sidebar .card,
.dark-mode .user_div .card {
    background: transparent;
}

/* Dark mode theme div */
.dark-mode .theme_div .card {
    background: #fff;
}

/* Dark mode header */
.dark-mode #header_top {
    background: #1f2328;
}

/* Dark mode cards */
.dark-mode .card {
    background: rgba(36, 40, 46, 0.8);
    color: #a4aab3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark-mode .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .card-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

/* Dark mode tables */
.dark-mode .table th {
    color: #c0c6cf;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .table td {
    border-color: rgba(255, 255, 255, 0.04);
    color: #a4aab3;
}

.dark-mode .table-hover tbody tr:hover {
    background: rgba(var(--cp-primary-rgb), 0.06);
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

/* Dark mode forms */
.dark-mode .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #c0c6cf;
}

.dark-mode .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cp-primary);
}

.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Dark mode nav tabs */
.dark-mode .nav-tabs .nav-link {
    color: #7d8490;
}

.dark-mode .nav-tabs .nav-link:hover {
    color: var(--cp-primary);
}

.dark-mode .nav-tabs .nav-link.active {
    color: var(--cp-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Dark mode dropdown */
.dark-mode .dropdown-menu {
    background: #2b3035;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.dark-mode .dropdown-menu .dropdown-item {
    color: #a4aab3;
}

.dark-mode .dropdown-menu .dropdown-item:hover {
    background: rgba(var(--cp-primary-rgb), 0.12);
    color: var(--cp-primary);
}

.dark-mode .bootstrap-select>.dropdown-menu {
    z-index: 10000 !important;
}

/* Dark mode modal */
.dark-mode .modal .modal-content {
    background: #2b3035;
    color: #a4aab3;
}

.dark-mode .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* Dark mode metismenu */
.dark-mode .metismenu a {
    color: #a4aab3;
}

.dark-mode .metismenu a:hover {
    color: var(--cp-primary);
    background: rgba(var(--cp-primary-rgb), 0.1);
}

.dark-mode .metismenu .active>a {
    color: var(--cp-primary);
    background: rgba(var(--cp-primary-rgb), 0.15);
}

.dark-mode .metismenu .g_heading {
    color: #7d8490;
}

/* Dark mode text */
.dark-mode .text-muted {
    color: #7d8490 !important;
}

/* Dark mode anim-shimmer */
.dark-mode .anim-shimmer {
    background: linear-gradient(90deg, #2d3137 25%, #3a3f44 50%, #2d3137 75%);
    background-size: 200% 100%;
}

/* ============================== */
/*       RESPONSIVE OVERRIDES     */
/* ============================== */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem;
    }

    .modal {
        top: 55px;
        max-height: calc(100vh - 65px);
    }

    .table th,
    .table td {
        padding: 0.55rem 0.65rem;
    }

    .table th {
        font-size: 0.75rem;
    }

    .metismenu a {
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }

    .page-header {
        margin-bottom: 1rem;
    }

    .header .nav-tabs .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .dropdown-menu {
        max-width: 92vw;
    }
}

@media (max-width: 992px) {
    .dropdown-menu {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }
}