@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-primary: #ab6b2f;
    --bs-secondary: #232323;
    --bs-warning: #ffad53;
    --bs-danger: #fc76b7;
    --bs-success: #149c47;
    --bs-dark: #4f4f4f;
    --bs-primary-rgb: 98, 113, 235;
    --bs-secondary-rgb: 35, 35, 35;
    --bs-warning-rgb: 255, 173, 83;
    --bs-danger-rgb: 252, 118, 183;
    --bs-dark-rgb: 79, 79, 79;
    --bs-success-rgb: 35, 203, 98;

    --bs-border-radius: 0.375rem;
    --border-radius: 0.75rem;

    /* Theme Variables */
    --bg-body: #f8fafb;
    --bg-sidebar: #f8fafb;
    --bg-card: #ffffff;
    --bg-preloader: #e0e4ff;
    /* Light preloader color */
    --text-main: #232323;
    --text-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.05);
    --input-bg: #ffffff;
    --input-border: #ced4da;
}

body.dark-mode {
    --bg-body: #121212;
    --bg-sidebar: #1e1e1e;
    --bg-card: #1e1e1e;
    --bg-preloader: #121212;
    /* Dark preloader color */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #2d2d2d;
    --input-border: #444444;
}

/* Global Dark Mode Overrides for Bootstrap Components */
body.dark-mode .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

body.dark-mode .d2c_main {
    background-color: transparent !important;
}

body.dark-mode .table {
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .table thead.table-light,
body.dark-mode .table-light,
body.dark-mode .table-light th,
body.dark-mode .table-light td {
    background-color: #2a2a2a !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-main) !important;
}

body.dark-mode .form-control::placeholder {
    color: var(--text-muted) !important;
}

body.dark-mode .text-dark {
    color: var(--text-main) !important;
}

body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

body.dark-mode .badge.bg-light {
    background-color: #333333 !important;
    color: var(--text-main) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-main) !important;
}

body.dark-mode .btn-outline-dark {
    color: var(--text-main) !important;
    border-color: var(--text-main) !important;
}

body.dark-mode .btn-outline-dark:hover {
    background-color: var(--text-main) !important;
    color: #121212 !important;
}

body.dark-mode .bg-white {
    background-color: var(--bg-card) !important;
}

body.dark-mode .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .shadow,
body.dark-mode .shadow-sm,
body.dark-mode .shadow-lg {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .5) !important;
}

body.dark-mode .text-dark {
    color: var(--text-main) !important;
}

body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

/* Specific component fixes for dashboard */
body.dark-mode .d-flex.align-items-center.mb-3.p-3.bg-light.rounded-4 {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .flex-shrink-0.bg-white.rounded-3.p-2.shadow-sm {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.d2c_sidebar.dark-mode>.flex-column,
.d2c_sidebar.dark-mode {
    --bg-sidebar: #1e1e1e !important;
    --border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

/* Button Global */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ab6b2f;
    /* #6271eb */
    --bs-btn-border-color: #ab6b2f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ab6b2f;
    --bs-btn-hover-border-color: #ab6b2f;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ab6b2f;
    --bs-btn-active-border-color: #ab6b2f;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ab6b2f;
    --bs-btn-disabled-border-color: #ab6b2f;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #232323;
    --bs-btn-border-color: #232323;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1e1e1e;
    --bs-btn-hover-border-color: #1e1e1e;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #232323;
    --bs-btn-active-border-color: #232323;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #232323;
    --bs-btn-disabled-border-color: #232323;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #149c47;
    --bs-btn-border-color: #149c47;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1e1e1e;
    --bs-btn-hover-border-color: #1e1e1e;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #149c47;
    --bs-btn-active-border-color: #149c47;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #149c47;
    --bs-btn-disabled-border-color: #149c47;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ffad53;
    --bs-btn-border-color: #ffad53;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #efa95d;
    --bs-btn-hover-border-color: #efa95d;
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ffad53;
    --bs-btn-active-border-color: #ffad53;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ffad53;
    --bs-btn-disabled-border-color: #ffad53;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #fc76b7;
    --bs-btn-border-color: #fc76b7;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #cd4343;
    --bs-btn-hover-border-color: #cd4343;
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #fc76b7;
    --bs-btn-active-border-color: #fc76b7;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #fc76b7;
    --bs-btn-disabled-border-color: #fc76b7;
}

.btn-dark {
    --bs-btn-color: #fff;
    --bs-btn-bg: #232323;
    --bs-btn-border-color: #232323;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-focus-shadow-rgb: 66, 70, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #232323;
    --bs-btn-active-border-color: #232323;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #232323;
    --bs-btn-disabled-border-color: #232323;
}

.btn-outline-primary {
    --bs-btn-color: #6271eb;
    --bs-btn-border-color: #6271eb;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6271eb;
    --bs-btn-hover-border-color: #6271eb;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6271eb;
    --bs-btn-active-border-color: #6271eb;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6271eb;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6271eb;
    --bs-gradient: none;
}

.btn-outline-secondary {
    --bs-btn-color: #232323;
    --bs-btn-border-color: #232323;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #232323;
    --bs-btn-hover-border-color: #232323;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #232323;
    --bs-btn-active-border-color: #232323;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #232323;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #232323;
    --bs-gradient: none;
}

.btn-outline-success {
    --bs-btn-color: #149c47;
    --bs-btn-border-color: #149c47;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #149c47;
    --bs-btn-hover-border-color: #149c47;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #149c47;
    --bs-btn-active-border-color: #149c47;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #149c47;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #149c47;
    --bs-gradient: none;
}

.btn-outline-warning {
    --bs-btn-color: #ffad53;
    --bs-btn-border-color: #ffad53;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ffad53;
    --bs-btn-hover-border-color: #ffad53;
    --bs-btn-focus-shadow-rgb: 255, 193, 7;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #ffad53;
    --bs-btn-active-border-color: #ffad53;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffad53;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ffad53;
    --bs-gradient: none;
}

.btn-outline-danger {
    --bs-btn-color: #fc76b7;
    --bs-btn-border-color: #fc76b7;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #fc76b7;
    --bs-btn-hover-border-color: #fc76b7;
    --bs-btn-focus-shadow-rgb: 220, 53, 69;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #cd4343;
    --bs-btn-active-border-color: #cd4343;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fc76b7;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #fc76b7;
    --bs-gradient: none;
}

.btn-outline-dark {
    --bs-btn-color: #232323;
    --bs-btn-border-color: #232323;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #232323;
    --bs-btn-hover-border-color: #232323;
    --bs-btn-focus-shadow-rgb: 33, 37, 41;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #cf4545;
    --bs-btn-active-border-color: #cf4545;
    --bs-btn-active-shadow: inset 0 0.188rem 0.313rem rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #232323;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #232323;
    --bs-gradient: none;
}

.btn {
    --bs-btn-padding-x: 2rem;
    --bs-btn-padding-y: 0.625rem;
    --bs-btn-border-radius: 0.188rem;
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: 0.375rem;
}

.btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-color: #232323;
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: #6271eb;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #6271eb;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: none;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
}

.btn.rounded-circle {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-link:focus-visible {
    color: var(--bs-btn-color);
}

.btn-link:hover {
    color: var(--bs-btn-hover-color);
}

.btn:active {
    border-color: transparent !important;
}

/* Button Global */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-text-size-adjust: 100%;
    background-color: var(--bg-body);
    color: var(--text-main);
}


a {
    text-decoration: none;
    transition: 0.4s all ease;
}

/* liner border color */
hr {
    border-color: var(--border-color);
}

/* global table */
table td,
table th {
    border-color: var(--border-color);
    padding: 0.813rem 1.25rem !important;
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 0rem;
}

table td {
    font-weight: 400;
    color: var(--bs-secondary);
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 0rem;
}

.table {
    --bs-table-color: var(--bs-body-color);
    color: var(--bs-table-color);
    vertical-align: middle;
}

.table-dark {
    --bs-table-color: var(--bs-white);
}

.table-dark td,
.table-dark th {
    color: var(--bs-white);
}

table.dataTable tbody tr.selected>* {
    box-shadow: inset 0rem 0rem 0rem 624.938rem rgb(234 238 251);
    color: var(--bs-primary);
}

table.dataTable>tbody>tr>.selected {
    background-color: rgb(234 238 251);
    color: var(--bs-primary);
}

/* alerts */
.alert i {
    font-size: 1.125rem;
    width: 1.625rem;
}

/* progress */
.progress {
    --bs-progress-bar-bg: var(--bs-primary);
}

/* list group */
.list-group {
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-active-border-color: var(--bs-primary);
}

/* bg opacity */
.bg-opacity-10 {
    --bs-bg-opacity: 0.07;
}

/* ---------------------------------------------------
    LIGHT THEME
----------------------------------------------------- */
body {
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body::selection {
    background: var(--bs-primary);
    color: var(--bs-white);
}

p {
    color: rgba(35, 35, 35, 0.8);
}

/* global card */
.card {
    border-radius: var(--border-radius);
    border: none;
    -webkit-border-radius: var(--border-radius);
    -moz-border-radius: var(--border-radius);
    -ms-border-radius: var(--border-radius);
    -o-border-radius: var(--border-radius);
    padding: 0;
    background: var(--bg-card);
    box-shadow: 0rem 0rem 1.875rem rgba(35, 35, 35, 0.05);
}

.card-header {
    background: transparent;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 0.8rem 1.25rem;
    -webkit-border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    -moz-border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    -ms-border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    -o-border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-body {
    padding: 1.25rem;
}

/* form global css */
.form-label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--bs-dark);
    text-transform: capitalize;
}

.form-control {
    background-color: rgba(208, 244, 218, 0.5);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.form-control::placeholder {
    color: rgba(56, 56, 56, 0.6);
}

.form-control:focus {
    box-shadow: none;
    background-color: rgba(208, 244, 218, 0.5);
}

.form-check-input {
    border-color: rgb(98 113 235 / 43%);
}

.form-check-input:checked {
    background-color: #6271eb;
    border-color: #6271eb;
}

/* dropdown position */
.dropdown-menu {
    inset: 0rem 0rem auto auto !important;
}

/*Preloader*/
.preloader {
    background-color: var(--bg-preloader);
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 1100;
    transition: opacity 0.2s, display 0.2s;
}

.preloader>img {
    max-width: 10.625rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

body.dark-mode .preloader>img {
    filter: brightness(0) invert(1);
}

/* Preloader CSS */

/* ---------------------------------------------------
    SIDEBAR
----------------------------------------------------- */
.navbar-brand {
    max-width: 16.5rem;
}

.d2c_wrapper {
    display: -webkit-box;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.d2c_sidebar {
    z-index: 99999;
    width: 260px !important;
    /* Mobile width */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 1;
    order: 1;
    background-color: var(--bg-sidebar) !important;
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
}

/* Desktop Mini-Sidebar WITH OVERLAY */
@media (min-width: 992px) {
    .d2c_sidebar {
        width: 90px !important;
        /* Constant gap for content */
        position: relative;
        overflow: visible !important;
        padding: 0 !important;
        transition: none !important;
        transform: none !important;
        visibility: visible !important;
    }

    .d2c_sidebar>.flex-column {
        position: fixed;
        top: 0;
        left: 0 !important;
        width: 90px;
        height: 100vh;
        background: var(--bg-sidebar);
        border-right: 1px solid var(--border-color);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-x: hidden;
        white-space: nowrap !important;
        padding: 2.5rem 0 !important;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Fixed alignment to avoid jumps */
        margin: 0 !important;
    }

    .d2c_sidebar:hover>.flex-column {
        width: 260px;
        box-shadow: 15px 0 45px rgba(0, 0, 0, 0.12);
        padding: 2.5rem 0 !important;
        /* Keep padding consistent */
    }
}

.brand-icon {
    width: 100% !important;
    height: 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.d2c_sidebar .logo-full,
.d2c_sidebar .logo-mini {
    position: absolute;
    /* No top/left/transform - let flex centering handle it */
    max-height: 80%;
    width: auto;
    transition: opacity 0.3s ease;
    display: block !important;
    margin: 0 !important;
}

.d2c_sidebar .logo-full {
    opacity: 0;
    visibility: hidden;
    max-width: 160px;
}

.d2c_sidebar .logo-mini {
    opacity: 1;
    visibility: visible;
    max-width: 40px;
}

.d2c_sidebar:hover .logo-full {
    opacity: 1;
    visibility: visible;
}

.d2c_sidebar:hover .logo-mini {
    opacity: 0;
    visibility: hidden;
}

/* Profile row – behaves like a nav-link with avatar as icon */
.sidebar-profile-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 0 !important;
    height: 52px !important;
    /* Force constant height matching nav items */
    border-radius: 0.75rem;
    color: var(--bs-secondary) !important;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap !important;
    /* Critical to avoid vertical shifts */
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    margin: 0 !important;
}

.sidebar-profile-item .d2c_profile_avatar {
    width: 90px;
    /* Same as mini-sidebar width to anchor the avatar */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.d2c_sidebar .nav-item .nav-link {
    text-decoration: none;
    width: 100%;
    margin: 0 0 4px 0 !important;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 500;
    color: var(--text-main);
    padding: 10px 0 !important;
    height: 52px !important;
    /* Force constant height */
    border-radius: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
    overflow: hidden;
    white-space: nowrap !important;
    /* Critical to avoid vertical shifts */
    line-height: 1 !important;
}

@media (min-width: 992px) {

    .d2c_sidebar:hover .nav-item .nav-link,
    .d2c_sidebar:hover .sidebar-profile-item {
        padding: 0.625rem 0;
        /* Enforced constant padding */
    }
}


.d2c_sidebar .d2c_icon {
    width: 90px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1 !important;
}

.d2c_sidebar .d2c_icon i,
.d2c_sidebar .d2c_icon img {
    display: block;
    vertical-align: middle;
}

.d2c_sidebar .d2c_icon i {
    color: var(--text-main);
    font-size: 1.6rem;
}

.d2c_sidebar .nav-item .nav-link .d2c_icon {
    width: 90px;
    /* Fixed width matching mini-sidebar to keep icons anchored */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 0 !important;
    flex-shrink: 0;

}

.d2c_sidebar hr {
    margin: 16px 0 !important;
    opacity: 0.1;
    border: 0;
    border-top: 1px solid var(--border-color);
    display: block !important;
    height: 1px !important;
}

/* Fix for profile and text visibility in mini mode */
@media (min-width: 992px) {

    .d2c_sidebar:not(:hover) .d2c_sidebar_text,
    .d2c_sidebar:not(:hover) .d2c_sidebar_hr,
    .d2c_sidebar:not(:hover) .nav-item .nav-link span:not(.d2c_icon) {
        display: none !important;
        /* Removes items from flex flow, solving centering */
    }

    .d2c_sidebar:hover .d2c_sidebar_text,
    .d2c_sidebar:hover .d2c_sidebar_hr,
    .d2c_sidebar:hover .nav-item .nav-link span:not(.d2c_icon) {
        display: inline-block !important;
        opacity: 0;
        animation: fadeIn 0.3s forwards;
        animation-delay: 0.1s;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.d2c_sidebar .fa-chevron-right {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.d2c_sidebar .nav-link[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

.d2c_sidebar .fa-chevron-right {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.d2c_sidebar .nav-link[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

.d2c_sidebar .fa-chevron-right {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.d2c_sidebar .nav-link[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

.d2c_sidebar .d2c_sidebar_text {
    white-space: nowrap;
    display: inline-block;
}

/* Nav Item in Hover, Active, and Focus State */
.d2c_sidebar .nav-item.active .nav-link {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.d2c_sidebar .nav-item:hover .nav-link {
    color: var(--bs-primary);
    background: var(--border-color);
}

/* Sub-menu Styling */
.d2c_sidebar .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.d2c_sidebar .sub-menu .nav-item .nav-link {
    background: transparent;
    color: var(--text-muted);
    padding-left: 1.5rem !important;
    /* Slight indentation for sub-items */
    height: 48px !important;
    /* Slightly more compact but fixed height */
}

.d2c_sidebar .sub-menu .nav-item:hover .nav-link,
.d2c_sidebar .sub-menu .nav-item.active .nav-link {
    color: var(--bs-primary);
    background: var(--border-color) !important;
}

body.dark-mode .d2c_sidebar .sub-menu .nav-link {
    color: var(--text-main);
}

/* ---------------------------------------------------
    SIDEBAR RESPONSIVE
----------------------------------------------------- */
@media (max-width: 991.98px) {
    .d2c_sidebar {
        overflow-y: auto;
    }
}

/* ---------------------------------------------------
    RIGHT SIDEBAR
----------------------------------------------------- */
.d2c_sidebar.d2c_sidebar_right {
    width: 20rem !important;
}

.dropdown-list {
    width: 25rem;
    inset: 0rem 0rem auto auto !important;
}

.dropdown-list a:active {
    background: #e9ecef;
}

.dropdown-list .dropdown-item {
    padding: 0.625rem 0.938rem;
    border-bottom: 0.063rem solid #2323230a;
}

.dropdown-list .d2c_all_notification_btn {
    background: #e0e4ff;
    color: var(--bs-primary);
    padding: 0.75rem;
}

.dropdown-list .dropdown-item:active {
    color: var(--bs-primary);
}

.d2c_sidebar_right .d2c_profile_name {
    line-height: 0.625rem;
}

.d2c_sidebar_right .border-bottom {
    border-color: rgb(56 56 56 / 7%) !important;
}

.dropdown-list .d2c_notification_first_letter {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 0.375rem;
    margin-bottom: 0rem;
}

/* ---------------------------------------------------
    MAIN BODY
----------------------------------------------------- */
.d2c_main {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 2;
    order: 2;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 100%;
    width: 100%;
}

/* ---------------------------------------------------
    OFF CANVAS TOGGLE BTN
----------------------------------------------------- */
.d2c_offcanvas_toggle {
    border: none;
    color: var(--bs-white);
    background: var(--bs-primary);
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    -webkit-border-radius: var(--border-radius) 0 0 var(--border-radius);
    -moz-border-radius: var(--border-radius) 0 0 var(--border-radius);
    -ms-border-radius: var(--border-radius) 0 0 var(--border-radius);
    -o-border-radius: var(--border-radius) 0 0 var(--border-radius);
}


/* ---------------------------------------------------
   GLOBAL
----------------------------------------------------- */

.d2c_percentage_rate span {
    font-size: 0.75rem;
}

.d2c_percentage_rate i {
    font-size: 0.625rem;
    padding: 0.4rem;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    margin-left: 0.313rem;
}

.card.d2c_wallet_card>* {
    color: var(--bs-white);
}


.d2c_convert .input-group>.form-control {
    background-color: rgba(208, 244, 218, 0.5);
}

.d2c_convert form .form-select,
.d2c_trade_form .form-select {
    background-image: none !important;
}

.d2c_convert .input-group>input.form-control {
    width: 60%;
}

.d2c_convert form label {
    margin-bottom: 0.625rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* ---------------------------------------------------
   copyright
----------------------------------------------------- */
.d2c_copyright {
    border-radius: var(--border-radius);
}

.d2c_copyright p {
    font-size: 0.875rem;
}

.d2c_copyright p a {
    color: var(--bs-secondary);
}

.d2c_copyright p a:hover {
    color: var(--bs-primary);
}


/* 
    Template Name: {{FundRows – Free Bootstrap Crypto Dashboard Template}}
    Template URL: {{https://www.designtocodes.com/product/fundrows-free-crypto-dashboard-template/}}
    Description: {{Build a user-friendly crypto dashboard with FundRows free crypto dashboard template. Enjoy full responsiveness, and customizable for your crypto projects. With FundRows, developers can create a unique crypto admin dashboard that is visually impressive.}}
    Author: DesignToCodes
    Author URL: https://www.designtocodes.com
    Text Domain: {{ FundRows }}
  */
/* Mobile Bottom Bar Styles */
.d2c_mobile_bottom_bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
}

.d2c_mobile_bottom_bar .nav-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
    flex: 1;
    padding: 10px 0;
}

.d2c_mobile_bottom_bar .nav-link.active,
.d2c_mobile_bottom_bar .nav-link:hover {
    color: var(--bs-primary);
}

.d2c_mobile_bottom_bar .nav-link small {
    font-size: 0.65rem;
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .d2c_main {
        padding-bottom: 80px !important;
        /* Space for bottom bar */
    }
}

.d2c_sidebar .logo-full {
    display: block;
}

.d2c_sidebar .logo-mini {
    display: none;
}

@media (min-width: 992px) {
    .d2c_sidebar:not(:hover) .logo-full {
        display: none !important;
    }

    .d2c_sidebar:not(:hover) .logo-mini {
        display: block !important;
    }
}