/* =========================================================
   EVDVISION DESIGN SYSTEM
   Brand Core V1
   ========================================================= */

:root {
    --evd-navy: #17206F;
    --evd-navy-dark: #0C154F;
    --evd-blue: #24508E;
    --evd-blue-bright: #2563EB;
    --evd-purple: #6D28D9;
    --evd-purple-light: #8B5CF6;
    --evd-teal: #18A6A6;
    --evd-teal-light: #2DD4BF;

    --evd-bg: #F6F8FC;
    --evd-surface: #FFFFFF;
    --evd-surface-soft: #F8FAFF;
    --evd-border: #E7EAF3;

    --evd-text: #101828;
    --evd-text-soft: #667085;

    --evd-gradient:
        linear-gradient(
            135deg,
            #17206F 0%,
            #24508E 36%,
            #6D28D9 70%,
            #18A6A6 100%
        );

    --evd-gradient-primary:
        linear-gradient(
            135deg,
            #6D28D9 0%,
            #24508E 100%
        );

    --evd-shadow-sm:
        0 4px 14px rgba(23, 32, 111, 0.06);

    --evd-shadow-md:
        0 10px 30px rgba(23, 32, 111, 0.10);

    --evd-shadow-lg:
        0 20px 50px rgba(23, 32, 111, 0.14);

    --evd-radius-sm: 10px;
    --evd-radius: 14px;
    --evd-radius-lg: 18px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    background: var(--evd-bg) !important;
}

body {
    color: var(--evd-text);
    -webkit-font-smoothing: antialiased;
}

.dashboard-main {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(109,40,217,.045),
            transparent 28%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(24,166,166,.035),
            transparent 26%
        ),
        var(--evd-bg) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--evd-text);
}

a {
    transition:
        color .20s ease,
        background .20s ease,
        border-color .20s ease,
        transform .20s ease;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: rgba(255,255,255,.98) !important;
    border-right: 1px solid var(--evd-border) !important;
    box-shadow:
        8px 0 30px rgba(23,32,111,.035) !important;
}

.sidebar-logo-area {
    position: relative;
    background: #fff !important;
    border-bottom: 1px solid var(--evd-border) !important;
}

.sidebar-logo-area::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: var(--evd-gradient);
    opacity: .72;
}

.sidebar-menu-area {
    padding-top: 12px;
}

.sidebar-menu > li {
    margin: 3px 10px;
}

.sidebar-menu li > a {
    border-radius: 11px !important;
    color: #344054 !important;
    font-weight: 500;
    min-height: 44px;
    transition: all .20s ease !important;
}

.sidebar-menu li > a:hover {
    background:
        linear-gradient(
            90deg,
            rgba(109,40,217,.07),
            rgba(36,80,142,.05)
        ) !important;
    color: var(--evd-navy) !important;
    transform: translateX(2px);
}

.sidebar-menu li > a:hover iconify-icon,
.sidebar-menu li > a:hover i {
    color: var(--evd-purple) !important;
}

.sidebar-menu li.active-page > a,
.sidebar-menu li.active > a,
.sidebar-menu li > a.active {
    background: var(--evd-gradient-primary) !important;
    color: #fff !important;
    box-shadow:
        0 8px 20px rgba(109,40,217,.20) !important;
}

.sidebar-menu li.active-page > a *,
.sidebar-menu li.active > a *,
.sidebar-menu li > a.active * {
    color: #fff !important;
}

.sidebar-submenu {
    margin-top: 5px !important;
}

.sidebar-submenu li a {
    font-size: 14px;
    min-height: 38px;
}

.circle-icon.text-primary-600 {
    color: var(--evd-purple) !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.navbar-header {
    background: rgba(255,255,255,.90) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231,234,243,.9) !important;
    box-shadow:
        0 4px 18px rgba(23,32,111,.035) !important;
}

.sidebar-toggle,
.sidebar-mobile-toggle {
    border-radius: 10px !important;
    transition: all .2s ease;
}

.sidebar-toggle:hover,
.sidebar-mobile-toggle:hover {
    color: var(--evd-purple) !important;
    background: rgba(109,40,217,.07) !important;
}


/* =========================================================
   PRIMARY BRAND COLOR OVERRIDES
   ========================================================= */

.text-primary,
.text-primary-600,
.text-primary-main {
    color: var(--evd-purple) !important;
}

.bg-primary,
.bg-primary-600 {
    background: var(--evd-gradient-primary) !important;
}

.bg-primary-50 {
    background: rgba(109,40,217,.07) !important;
}

.border-primary,
.border-primary-600 {
    border-color: var(--evd-purple) !important;
}

.hover-text-primary:hover,
.text-hover-primary-600:hover {
    color: var(--evd-purple) !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 10px !important;
    font-weight: 600;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease !important;
}

.btn-primary,
.btn-primary-600 {
    border: 0 !important;
    color: #fff !important;
    background: var(--evd-gradient-primary) !important;
    box-shadow:
        0 7px 18px rgba(109,40,217,.18) !important;
}

.btn-primary:hover,
.btn-primary-600:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow:
        0 11px 26px rgba(109,40,217,.25) !important;
}

.btn-outline-primary,
.btn-outline-primary-600 {
    color: var(--evd-purple) !important;
    border-color: rgba(109,40,217,.45) !important;
    background: #fff !important;
}

.btn-outline-primary:hover,
.btn-outline-primary-600:hover {
    color: #fff !important;
    border-color: transparent !important;
    background: var(--evd-gradient-primary) !important;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    /* background: var(--evd-surface) !important; */
    border: 1px solid var(--evd-border) !important;
    border-radius: var(--evd-radius) !important;
    box-shadow: var(--evd-shadow-sm) !important;
}

.card:hover {
    box-shadow: var(--evd-shadow-md) !important;
}

.card-header {
    /* background: rgba(255,255,255,.96) !important; */
    border-bottom: 1px solid var(--evd-border) !important;
}


/* dashboard statistic cards */
.dashboard-main-body .card {
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.dashboard-main-body .card:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TABLES
   ========================================================= */

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    background: #F8FAFD !important;
    color: #475467 !important;
    border-bottom: 1px solid var(--evd-border) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.table tbody td {
    border-color: #EEF1F6 !important;
    vertical-align: middle;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: #FAFBFF !important;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: #DDE2EC !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    transition:
        border .18s ease,
        box-shadow .18s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(109,40,217,.65) !important;
    box-shadow:
        0 0 0 3px rgba(109,40,217,.09) !important;
}

.form-check-input:checked {
    background-color: var(--evd-purple) !important;
    border-color: var(--evd-purple) !important;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.dropdown-menu {
    border: 1px solid var(--evd-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--evd-shadow-lg) !important;
}

.dropdown-item {
    border-radius: 8px;
}

.dropdown-item:hover {
    background: rgba(109,40,217,.06) !important;
    color: var(--evd-navy) !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination .page-link {
    border-radius: 9px !important;
}

.pagination .active .page-link,
.page-link.bg-primary-600 {
    color: #fff !important;
    background: var(--evd-gradient-primary) !important;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    border-radius: 999px !important;
}


/* =========================================================
   MODALS
   ========================================================= */

.modal-content {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow:
        0 30px 70px rgba(23,32,111,.18) !important;
}

.modal-header {
    border-bottom-color: var(--evd-border) !important;
}


/* =========================================================
   BREADCRUMBS / PAGE TITLES
   ========================================================= */

.dashboard-main-body > h6,
.dashboard-main-body h5 {
    letter-spacing: -.01em;
}

.breadcrumb {
    color: var(--evd-text-soft);
}


/* =========================================================
   AVATAR / PROFILE
   ========================================================= */

.navbar-header img.rounded-circle,
.sidebar img.rounded-circle {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff,#fff) padding-box,
        var(--evd-gradient) border-box;
}


/* =========================================================
   FOOTER
   ========================================================= */

.evd-footer {
    margin-top: 18px;
    color: #667085;
}

.evd-footer strong {
    color: var(--evd-navy);
}

.evd-footer-tagline span {
    color: var(--evd-teal);
    padding: 0 4px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(109,40,217,.55),
            rgba(36,80,142,.55)
        );
    border-radius: 999px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] body,
[data-theme="dark"] .dashboard-main {
    background: #0B1020 !important;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .navbar-header,
[data-theme="dark"] .card,
[data-theme="dark"] .card-header {
    background: #11182B !important;
    border-color: #202A42 !important;
}

[data-theme="dark"] .sidebar-menu li > a {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .table thead th {
    background: #141D31 !important;
    color: #CBD5E1 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {
    .navbar-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .card {
        border-radius: 12px !important;
    }
}


/* =========================================================
   LOGIN EXPERIENCE
   ========================================================= */

.auth {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(109,40,217,.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(24,166,166,.10),
            transparent 30%
        ),
        #F7F9FE !important;
}

.auth-right,
.auth-form {
    background: rgba(255,255,255,.96);
}

.auth-right {
    border-left: 1px solid rgba(231,234,243,.9);
}

.auth input.form-control {
    min-height: 48px;
}

.auth .btn-primary {
    min-height: 48px;
}

.auth h4,
.auth h5 {
    color: var(--evd-navy);
}

/* =========================================================
   EVDVISION APP SHELL V6
   Clean application shell
   ========================================================= */

:root {
    --evd-navy: #172554;
    --evd-ink: #1e293b;
    --evd-muted: #718096;

    --evd-violet: #6255b5;
    --evd-teal: #299d98;

    --evd-surface: #ffffff;
    --evd-surface-soft: #f8fafc;

    --evd-line: rgba(30, 41, 59, .075);

    --evd-radius-sm: 10px;
    --evd-radius-md: 14px;

    --evd-shadow-soft:
        0 5px 18px rgba(25, 35, 60, .045);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.evd-sidebar {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        ) !important;

    border-right:
        1px solid var(--evd-line) !important;

    box-shadow:
        7px 0 24px rgba(25, 35, 60, .025) !important;
}


/* =========================================================
   LOGO AREA
   ========================================================= */

.evd-sidebar-logo-area {
    min-height: 92px !important;

    padding: 8px 16px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff !important;

    border-bottom:
        1px solid rgba(30, 41, 59, .06);
}


.evd-sidebar-logo-area::after {
    display: none !important;
}


.evd-sidebar-logo-link {
    width: 100% !important;
    height: 74px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.evd-system-logo {
    width: auto !important;
    height: auto !important;

    max-width: 162px !important;
    max-height: 72px !important;

    object-fit: contain !important;

    margin: 0 auto;
}


.evd-system-logo--icon {
    max-width: 46px !important;
    max-height: 46px !important;
}


/* =========================================================
   PROFILE
   ========================================================= */

.evd-sidebar-profile {
    margin: 9px 11px 12px;

    padding: 11px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid rgba(40, 54, 82, .075);

    border-radius:
        var(--evd-radius-md);

    background:
        linear-gradient(
            135deg,
            #fbfcff 0%,
            #f8fafc 100%
        );

    box-shadow:
        0 3px 12px rgba(27, 39, 66, .03);
}


.evd-sidebar-profile__avatar-wrap {
    position: relative;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;
}


.evd-sidebar-profile__avatar {
    display: block;

    width: 42px !important;
    height: 42px !important;

    border:
        1px solid #e4e8ef;

    border-radius:
        11px;

    background:
        #eef1f5;

    object-fit: cover !important;
}


.evd-sidebar-profile__status {
    position: absolute;

    right: -1px;
    bottom: -1px;

    width: 9px;
    height: 9px;

    border:
        2px solid #ffffff;

    border-radius:
        50%;

    background:
        #38a58d;
}


.evd-sidebar-profile__meta {
    min-width: 0;
    flex: 1;
}


.evd-sidebar-profile__name {
    display: block;

    margin: 0;

    color:
        var(--evd-ink);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.35;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    word-break: break-word;
}


.evd-sidebar-profile__role {
    display: block;

    margin-top: 2px;

    color:
        #7b8799;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================================
   MENU
   ========================================================= */

.evd-sidebar-menu-area {
    padding-top: 0 !important;
}


.evd-sidebar .sidebar-menu {
    padding:
        1px 10px 24px !important;
}


.evd-sidebar .sidebar-menu > li {
    margin:
        2px 0 !important;
}


.evd-sidebar .sidebar-menu li > a {
    min-height:
        41px;

    padding:
        9px 11px !important;

    border:
        1px solid transparent !important;

    border-radius:
        var(--evd-radius-sm) !important;

    background:
        transparent !important;

    color:
        #4a566b !important;

    font-size:
        13px;

    font-weight:
        540;

    box-shadow:
        none !important;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease !important;
}


.evd-sidebar .sidebar-menu li > a .menu-icon {
    color:
        #69768b !important;

    font-size:
        17px;
}


.evd-sidebar .sidebar-menu li > a:hover {
    border-color:
        rgba(67, 79, 105, .06) !important;

    background:
        #f5f7fa !important;

    color:
        #2f3b51 !important;
}


.evd-sidebar .sidebar-menu li > a:hover .menu-icon {
    color:
        var(--evd-violet) !important;
}


/* Active */

.evd-sidebar .sidebar-menu li.active-page > a,
.evd-sidebar .sidebar-menu li.active > a,
.evd-sidebar .sidebar-menu li > a.active {

    border-color:
        rgba(92, 83, 177, .10) !important;

    background:
        linear-gradient(
            135deg,
            rgba(98, 85, 181, .085),
            rgba(41, 157, 152, .055)
        ) !important;

    color:
        #51479a !important;

    box-shadow:
        none !important;
}


.evd-sidebar .sidebar-menu li.active-page > a .menu-icon,
.evd-sidebar .sidebar-menu li.active > a .menu-icon,
.evd-sidebar .sidebar-menu li > a.active .menu-icon {

    color:
        #5d51ad !important;
}


/* Submenu */

.evd-sidebar .sidebar-submenu {
    margin:
        2px 0 6px !important;

    padding:
        2px 0 2px 9px !important;
}


.evd-sidebar .sidebar-submenu li a {
    min-height:
        34px;

    padding:
        7px 10px !important;

    font-size:
        12px;
}


/* =========================================================
   HEADER
   ========================================================= */

.evd-navbar-header {
    min-height:
        68px !important;

    padding:
        0 20px !important;

    background:
        rgba(255, 255, 255, .96) !important;

    border-bottom:
        1px solid var(--evd-line) !important;

    box-shadow:
        0 3px 15px rgba(25, 35, 60, .02) !important;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.evd-header-menu-btn {
    width:
        38px !important;

    height:
        38px !important;

    padding:
        0 !important;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid transparent !important;

    border-radius:
        10px !important;

    background:
        transparent !important;

    color:
        #465268 !important;

    box-shadow:
        none !important;
}


.evd-header-menu-btn:hover {
    border-color:
        #e8ebf1 !important;

    background:
        #f6f7f9 !important;

    color:
        var(--evd-violet) !important;
}


/*
 Desktop:
 show only sidebar-toggle.
*/

.evd-header-menu-btn--desktop {
    display:
        inline-flex !important;
}


.evd-header-menu-btn--mobile {
    display:
        none !important;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.evd-header-action {
    position:
        relative;

    width:
        38px !important;

    height:
        38px !important;

    padding:
        0 !important;

    border:
        1px solid #e7eaf0 !important;

    border-radius:
        10px !important;

    background:
        #fbfcfd !important;

    color:
        #515d72 !important;

    box-shadow:
        none !important;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease !important;
}


.evd-header-action:hover {
    border-color:
        #dfe3ea !important;

    background:
        #f5f6f9 !important;

    color:
        var(--evd-violet) !important;

    transform:
        none !important;
}


.evd-header-language {
    color:
        #39455a !important;

    font-size:
        11px;

    font-weight:
        700;
}


/* =========================================================
   HEADER PROFILE
   ========================================================= */

.evd-header-profile-btn {
    width:
        40px;

    height:
        40px;

    padding:
        2px;

    border:
        1px solid #e2e6ed;

    border-radius:
        11px !important;

    background:
        #ffffff;

    box-shadow:
        none;
}


.evd-header-avatar {
    display:
        block;

    width:
        34px !important;

    height:
        34px !important;

    border-radius:
        8px;

    background:
        #eef1f5;

    object-fit:
        cover !important;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.evd-navbar-header .dropdown-menu {
    margin-top:
        9px !important;

    padding:
        9px;

    border:
        1px solid #e7eaf0 !important;

    border-radius:
        13px !important;

    background:
        #ffffff;

    box-shadow:
        0 16px 38px
        rgba(25, 35, 60, .11) !important;
}


.evd-navbar-header .dropdown-item {
    border-radius:
        8px;

    font-size:
        12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    .evd-header-menu-btn--desktop {
        display:
            none !important;
    }

    .evd-header-menu-btn--mobile {
        display:
            inline-flex !important;
    }

}


@media (max-width: 767.98px) {

    .evd-navbar-header {
        min-height:
            62px !important;

        padding:
            0 12px !important;
    }

    .evd-navbar-header .gap-3 {
        gap:
            7px !important;
    }

    .evd-header-action {
        width:
            36px !important;

        height:
            36px !important;
    }

}


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] .evd-sidebar,
.dark .evd-sidebar {

    background:
        #121a28 !important;

    border-color:
        #202a3b !important;
}


[data-theme="dark"] .evd-sidebar-logo-area,
.dark .evd-sidebar-logo-area {

    background:
        #121a28 !important;

    border-color:
        #202a3b !important;
}


[data-theme="dark"] .evd-sidebar-profile,
.dark .evd-sidebar-profile {

    border-color:
        #283348;

    background:
        #182233;
}


[data-theme="dark"] .evd-sidebar-profile__name,
.dark .evd-sidebar-profile__name {

    color:
        #edf1f7;
}


[data-theme="dark"] .evd-sidebar .sidebar-menu li > a,
.dark .evd-sidebar .sidebar-menu li > a {

    color:
        #bac3d1 !important;
}


[data-theme="dark"] .evd-sidebar .sidebar-menu li > a:hover,
.dark .evd-sidebar .sidebar-menu li > a:hover {

    border-color:
        #283348 !important;

    background:
        #192334 !important;
}


[data-theme="dark"] .evd-navbar-header,
.dark .evd-navbar-header {

    background:
        rgba(18, 26, 40, .96) !important;

    border-color:
        #202a3b !important;
}


[data-theme="dark"] .evd-header-action,
.dark .evd-header-action,
[data-theme="dark"] .evd-header-profile-btn,
.dark .evd-header-profile-btn {

    border-color:
        #293449 !important;

    background:
        #192334 !important;

    color:
        #c5cedb !important;
}

