
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --theme-background: #f6f9ff;
  --theme-body-text: #444;
  --theme-color-primary: #4154f1;
  --theme-color-primary-rgb: 65, 84, 241;
  --theme-color-hover: #717ff5;
  --theme-color-title: #012970;
  --theme-color-light: #fff;
  --theme-shadow-rgb: 1, 41, 112;
  --theme-menu-color: #fcfdff;
  --theme-submenu-color: #51678f;
  --theme-submenu-divider:#a5c5fe;
  --theme-subheading-color: #899bbd;
}


[data-theme="green"]{
  --theme-background: #f5fdf8;
  --theme-body-text: #2e3b32;
  --theme-text-muted: #a2bfb1;
  --theme-color-primary: #2e7d32;
  --theme-color-primary-rgb: 46, 125, 50;
  --theme-color-hover: #388e3c;
  --theme-color-title: #1b5e20;
  --theme-color-light: #ffffff;
  --theme-shadow-rgb: 27, 94, 32;
  --theme-menu-color: #fcfefc;
  --theme-submenu-color: #4e705f;
  --theme-submenu-divider: #c8e6c9;
  --theme-subheading-color: #7fa98a;
}

[data-theme="red"] {
  --theme-background: #fdf7f7;
  --theme-body-text: #4a2c2c;
  --theme-color-primary: #a94442;
  --theme-color-primary-rgb: 169, 68, 66;
  --theme-color-hover: #c25555;
  --theme-color-title: #722f2f;
  --theme-color-light: #ffffff;
  --theme-shadow-rgb: 114, 47, 47;
  --theme-menu-color: #fefdfd;
  --theme-submenu-color: #946464;
  --theme-submenu-divider: #edd1d1;
  --theme-subheading-color: #aa7e7e;
}

[data-theme="dark"]{
--theme-background: #121212;  
--theme-body-text: #e0e0e0;   
--theme-text-muted: #5a5a5a;
--theme-color-primary: #bb86fc;
--theme-color-primary-rgb: 187, 134, 252;
--theme-color-hover: #985eff; 
--theme-color-title: #ffffff; 
--theme-color-light: #1e1e1e; 
--theme-shadow-rgb: 0, 0, 0; 
--theme-menu-color: #2c2c2c;
--theme-submenu-color: #3a3a3a;
--theme-submenu-divider: #444444;
--theme-subheading-color: #b0b0b0;
}



body {
  font-family: "Open Sans", sans-serif;
  background: var(--theme-background);
  color: var(--theme-body-text);
}

a, .btn-link {
  color: var(--theme-color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--theme-color-hover);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
  min-height: 62vh;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--theme-color-title);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--theme-color-primary);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: var(--theme-color-light);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--theme-color-hover);
  color: var(--theme-color-light);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  background-color: var(--theme-menu-color);
  color: var(--theme-body-text);
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  background-color: var(--theme-menu-color);
  color: var(--theme-body-text);
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: var(--theme-text);
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: var(--theme-submenu-divider);
  margin: 0;
}

.dropdown-menu .dropdown-item {
  background-color: var(--theme-menu-color);
  color: var(--theme-body-text);
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--theme-color-light);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: var(--theme-menu-color);
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid var(--theme-menu-color);
    border-left: 1px solid var(--theme-menu-color);
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}


/* Form Control */

.form-control {
  background-color: var(--theme-color-light) !important;
  border-color: var(--theme-submenu-color) !important;
  color: var(--theme-body-text) !important;
  box-shadow: none !important; /* Remove Bootstrap's default blue glow */
  transition: none; /* Optional: prevent animation flicker */
}

.form-control:focus {
  background-color: var(--theme-color-light) !important;
  border-color: var(--theme-submenu-color) !important;
  color: var(--theme-body-text) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--theme-subheading-color);  /* Or any custom color */
  opacity: 1;                            /* Optional: prevents it from looking faded */
  font-style: italic;                    /* Optional: example styling */
}


/* Card */
.card {
    background-color: var(--theme-color-light);
    color: var(--theme-body-text);
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(var(--theme-shadow-rgb), 0.1);
  }
  
  .card-header,
  .card-footer {
    border-color: #ebeef4;
    background-color: var(--theme-color-light);
    color: var(--theme-submenu-color);
    padding: 15px;
  }
  
  .card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-color-title);
    font-family: "Poppins", sans-serif;
  }
  
  .card-title span {
    color: var(--theme-subheading-color);
    font-size: 14px;
    font-weight: 400;
  }
  
  .card-body {
    padding: 0 20px 20px 20px;
    color: var(--theme-body-text)
  }
  
  .card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
  }
  
  @media (min-width: 1200px) {
    .logo {
      /* width: 280px; */
    }
  }
  
  .logo img {
    max-height: 26px;
    margin-right: 6px;
  }
  
  .logo span {
    font-size: 26px;
    font-weight: 700;
    color: var(--theme-color-title);
    font-family: "Nunito", sans-serif;
  }
  
  .header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(var(--theme-shadow-rgb), 0.1);
    background-color: var(--theme-color-light);
    padding-left: 20px;
    /* Toggle Sidebar Button */
    /* Search Bar */
  }
  
  .header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: var(--theme-color-title);
  }
  
  .header .search-bar {
    min-width: 360px;
    padding: 0 20px;
  }
  
  @media (max-width: 768px) {
    .header .search-bar {
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      padding: 20px;
      box-shadow: 0px 0px 15px 0px rgba(var(--theme-shadow-rgb), 0.1);
      background: var(--theme-color-light);
      z-index: 9999;
      transition: 0.3s;
      visibility: hidden;
      opacity: 0;
    }
  
    .header .search-bar-show {
      top: 60px;
      visibility: visible;
      opacity: 1;
    }
  }
  
  .header .search-form {
    width: 100%;
  }
  
  .header .search-form input {
    border: 0;
    font-size: 14px;
    color: var(--theme-color-title);
    background-color: var(--theme-background);
    border: 1px solid rgba(var(--theme-shadow-rgb), 0.2);
    padding: 7px 38px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
  }
  
  .header .search-form input:focus,
  .header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(var(--theme-shadow-rgb), 0.15);
    border: 1px solid rgba(var(--theme-shadow-rgb), 0.3);
  }
  
  .header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
  }
  
  .header .search-form button i {
    color: var(--theme-color-title);
  }
  
  /*--------------------------------------------------------------
  # Header Nav
  --------------------------------------------------------------*/
  .header-nav ul {
    list-style: none;
  }
  
  .header-nav>ul {
    margin: 0;
    padding: 0;
  }
  
  .header-nav .nav-icon {
    font-size: 22px;
    color: var(--theme-color-title);
    margin-right: 25px;
    position: relative;
  }
  
  .header-nav .nav-profile {
    color: var(--theme-color-title);
  }
  
  .header-nav .nav-profile img {
    max-height: 36px;
  }
  
  .header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
  }
  
  .header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
  }
  
  .header-nav .notifications {
    inset: 8px -15px auto auto !important;
  }
  
  .header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
  }
  
  .header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
  }
  
  .header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
  }
  
  .header-nav .notifications .notification-item:hover {
    background-color: var(--theme-background);
  }
  
  .header-nav .messages {
    inset: 8px -15px auto auto !important;
  }
  
  .header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
  }
  
  .header-nav .messages .message-item a {
    display: flex;
  }
  
  .header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
  }
  
  .header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--theme-text);
  }
  
  .header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
  }
  
  .header-nav .messages .message-item:hover {
    background-color: var(--theme-background);
  }
  
  .header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
  }
  
  .header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--theme-text);
  }
  
  .header-nav .profile .dropdown-header span {
    font-size: 14px;
  }
  
  .header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
  }
  
  .header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
  }
  
  .header-nav .profile .dropdown-item:hover {
    background-color: var(--theme-background);
  }
  
  /*--------------------------------------------------------------
  # Sidebar
  --------------------------------------------------------------*/
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-menu-color) transparent;
    box-shadow: 0px 0px 20px rgba(var(--theme-shadow-rgb), 0.1);
    background-color: var(--theme-color-light);
  }
  
  @media (max-width: 959px) {
    .sidebar {
      left: -300px;
    }
  }
  
  .sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: var(--theme-color-light);
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background-color: var(--theme-menu-color);
  }
  
  @media (min-width: 960px) {
  
    #main,
    #footer {
      margin-left: 300px;
    }
  }
  
  @media (max-width: 959px) {
    .toggle-sidebar .sidebar {
      left: 0;
    }
  }
  
  @media (min-width: 960px) {
  
    .toggle-sidebar #main,
    .toggle-sidebar #footer {
      margin-left: 0;
    }
  
    .toggle-sidebar .sidebar {
      left: -300px;
    }
  }
  
  .sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .sidebar-nav .nav-item {
    margin-bottom: 5px;
  }
  
  .sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--theme-subheading-color);
    font-weight: 600;
    margin: 10px 0 5px 15px;
  }
  
  .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-color-primary);
    transition: 0.3;
    background: var(--theme-background);
    padding: 10px 15px;
    border-radius: 4px;
  }
  
  .sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: var(--theme-color-primary);
  }
  
  .sidebar-nav .nav-link.collapsed {
    color: var(--theme-color-title);
    background: var(--theme-color-light);
  }
  
  .sidebar-nav .nav-link.collapsed i {
    color: var(--theme-subheading-color);
  }
  
  .sidebar-nav .nav-link:hover {
    color: var(--theme-color-primary);
    background: var(--theme-background);
  }
  
  .sidebar-nav .nav-link:hover i {
    color: var(--theme-color-primary);
  }
  
  .sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
  }
  
  .sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
  }
  
  .sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
  }
  
  .sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color-title);
    transition: 0.3;
    padding: 10px 0 10px 40px;
    transition: 0.3s;
  }
  
  .sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
  }
  
  .sidebar-nav .nav-content a:hover,
  .sidebar-nav .nav-content a.active {
    color: var(--theme-color-primary);
  }
  
  .sidebar-nav .nav-content a.active i {
    background-color: var(--theme-color-primary);
  }


  .mobile-navbar{
    background-color: var(--theme-color-light)
  }

  
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid var(--theme-menu-color);
  }
  
  .footer .copyright {
    text-align: center;
    color: var(--theme-color-title);
  }
  
  .footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: var(--theme-color-title);
  }
  
/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    color: var(--theme-subheading-color);
    font-weight: 600;
  }
  
  .breadcrumb a {
    color: var(--theme-subheading-color);
    transition: 0.3s;
  }
  
  .breadcrumb a:hover {
    color: var(--theme-submenu-color);
  }
  
  .breadcrumb .breadcrumb-item::before {
    color: var(--theme-subheading-color);
  }
  
  .breadcrumb .active {
    color: var(--theme-submenu-color);
    font-weight: 600;
  }
  
.has-notification {
  position: relative;
  display: inline-block;
}

.has-notification::after {
  content: '';
  position: absolute;
  top: 3px;
  right: -12px;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
}

#mainContentSection{max-width: 1200px;}

.info-card {
  padding-bottom: 10px;
}

.info-card h6 {
  font-size: 28px;
  color: var(--theme-color-title);
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.sales-card .card-icon {
  color: var(--theme-color-primary);
  background: #f6f6fe;
}

.profile-overview .label,
.profile-edit label {
  font-weight: 600;
  color: rgba(var(--theme-color-rgb), 0.6);
}

.profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile-overview .card-title {
  color: var(--theme-color-title);
}

/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: var(--theme-menu-color);
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: var(--theme-color-primary);
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--theme-menu-color);
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

.g-4 .card, .gap-4 .card{margin-bottom: 0px;}

.transaction-proposal-summary div:last-of-type {border:0 !important;}
.popup-modal-icon{margin-bottom:1.236em !important;}
.modal-footer .btn.rounded-pill{ width:140px; }









#preloader {
position: fixed;
top: 0; left: 0;
width: 100vw;
height: 100vh;
background: gray;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid black;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}




/* Default Bootstrap Overrides */



.nav-link{
  color: var(--theme-color-primary)
}


.btn-primary {
  --bs-btn-bg: var(--theme-color-primary);
  --bs-btn-border-color: var(--theme-color-primary);
  --bs-btn-hover-bg: rgba(var(--theme-color-primary-rgb), 0.9);
  --bs-btn-hover-border-color: rgba(var(--theme-color-primary-rgb), 0.9);
  --bs-btn-active-bg: rgba(var(--theme-color-primary-rgb), 0.8);
  --bs-btn-active-border-color: rgba(var(--theme-color-primary-rgb), 0.8);
}

.btn-outline-primary {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: var(--theme-color-primary);
  --bs-btn-hover-bg: rgba(var(--theme-color-primary-rgb), 0.9);
  --bs-btn-hover-border-color: rgba(var(--theme-color-primary-rgb), 0.9);
  --bs-btn-active-bg: rgba(var(--theme-color-primary-rgb), 0.8);
  --bs-btn-active-border-color: rgba(var(--theme-color-primary-rgb), 0.8);
}

.color-primary, .text-primary
{color: var(--theme-color-primary) !important;}

.text-bg-primary
{background-color: var(--theme-color-primary) !important;}

.table, .table-borderless, .datatable, tr, td, th, tbody, thead, table{
  background-color: transparent !important;
  color: var(--theme-body-text);
}
th{color: var(--theme-body-text) !important;}

.text-muted{color: var(--theme-text-muted) !important;}
.text-body{color: var(--theme-body-text) !important;}

.list-group, .list-group-item, .nav-link.active, .modal-content, .modal-header, .modal-body, .modal-footer{
  background-color: var(--theme-background) !important;
  color: var(--theme-body-text) !important;
  border-color: var(--theme-submenu-divider) !important;
}

.nav-tabs, .nav-tabs-bordered
{border-color: var(--theme-submenu-divider) !important;}

.nav-tabs .nav-link:not(.active):hover
{color: var(--theme-color-title) !important;}

.alert-secondary{
background-color: var(--theme-menu-color);
border-color: var(--theme-submenu-divider);
color: var(--theme-body-text);
}

.bg-primary{
  background: var(--theme-color-primary) !important;
  background-color: var(--theme-color-primary) !important;
}
