/* Override Bootstrap's primary color */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2"),
    url("fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bs-primary: #0baa74;
  --bs-secondary: #1d376a;
  --bs-text: #222222;
  --bs-subtext: #737791;
  --bs-text-secondary: #333333;
  /* additional custom colors */
  --bs-success: #0baa74;
  --bs-info: #007aff;
  --bs-warning: #ff9500;
  --bs-danger: #ff2d55;
  --bs-muted: #eef3f7;
  --bs-light: #ffffff;
  --bs-dark: #34495e;

  --bs-accordion-active-bg: #0baa7442;

  /* .accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
    box-shadow: inset 0 calc(-1* var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
} */

  --bs-font-sans-serif: "Inter", sans-serif;
  --bs-normal: 400;
  --bs-medium: 500;
  --bs-semibold: 600;
  --bs-bold: 700;

  --bs-radius: 0.25rem;
  --bs-radius-sm: 0.5rem;
  --bs-radius-lg: 0.75rem;
  --bs-radius-xl: 1rem;
}

* {
  box-sizing: border-box;
  /* margin: 0; */
}

/* Webkit-based browsers */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  /* background: #f1f1f1; */
  background: transparent;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #1d376a38;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d376a76;
}

body {
  font-family: "Inter";
  color: var(--bs-text);
}
main {
  width: 100%;
}
@media (min-width: 1200px) {
  main {
    width: calc(100% - 244px);
  }
}
a {
  color: var(--bs-subtext);
}
a:hover {
  color: var(--bs-primary);
}

/* Remove number input arrows */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-scrollbar {
  overflow-y: scroll; /* Enables scrolling */
  scrollbar-width: none; /* For Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

/* Aside bar styles  */
.dashboard-aside {
  max-width: 244px;
  min-width: 244px;
  background-color: #f9fafb;
}

.aside-link {
  color: #737791;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter";
  text-decoration: none;
}
.aside-link.active {
  color: #fff;
  background-color: var(--bs-secondary) !important ;
  border-radius: 12px;
}
.aside-link.active:hover {
  color: #fff;
  background-color: var(--bs-secondary) !important;
  border-radius: 12px;
}
.aside-child-item {
  display: flex;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #98a2b2;
  letter-spacing: -0.16px;
  text-decoration: none;
  margin-bottom: 10px;
  border-left: 2px solid #98a2b2;
}
.aside-child-content {
  padding: 12px 8px 0px 24px;
}

.aside-child-item:hover {
  color: #0baa74;
  border-left: 2px solid #0baa74;
}
.aside-child-item.active {
  color: #0baa74;
  border-left: 2px solid #0baa74;
}

.aside-link:hover {
  background-color: #0b55aa1c;
  color: #737791;
  border-radius: 12px;
}

.nav-pills .aside-link.active > img {
  filter: invert(1) sepia(0) saturate(1) hue-rotate(0deg);
}

.nav-pills .aside-link > img {
  width: 20px;
  height: 20px;
  filter: invert(0.4) sepia(0) saturate(0.2) hue-rotate(0deg);
}
.sidebar-divider {
  color: #727f92;
  font-size: 14px !important;
  padding: 1rem;
  margin-top: 0.5rem;
}

.accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

.aside-accordion.accordion {
  --bs-accordion-bg: transparent !important;
  --bs-accordion-border-color: none !important;
}
.aside-accordion .accordion-button:not(.collapsed) {
  background-color: #0b55aa1c !important;
}

.aside-accordion .accordion-button {
  border-radius: 12px !important;
} /* End of Aside bar styles */

/* Additional customizations if needed */

/* Font sizes */
.text-xs {
  font-size: 12px;
  line-height: 16px;
}
.text-sm {
  font-size: 14px;
  line-height: 20px;
}
.text-md {
  font-size: 16px;
  line-height: 24px;
}
.text-lg {
  font-size: 20px;
  line-height: 24px;
}
.text-xl {
  font-size: 24px;
  line-height: 30px;
}
.text-2xl {
  font-size: 32px;
  line-height: 38px;
}

/* Background colors  */
.bg-primary {
  background-color: var(--bs-primary) !important;
}
.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

/* Text colors */
.text-primary {
  color: var(--bs-text) !important;
}
.text-secondary {
  color: var(--bs-text-secondary) !important;
}
.text-brown {
  color: var(--bs-subtext) !important;
}
.text-success {
  color: var(--bs-primary) !important;
}

/* borders  */
.border-primary {
  border-color: #f3f3f5;
}

/* Components overwrites  */

/* Buttons style  */
.btn {
  height: 40px !important;
  overflow: hidden;
  font-size: 14px;
  padding: 6px 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--bs-radius-sm) !important;
  transition: all 0.3s ease; /* equivalent to duration-300 transition-all */
}
/* .btn:hover {
  transform: translateY(-0.125rem);
} */
.btn:active {
  transform: translateY(0.3rem); /* equivalent to translate-y-2 */
}

.btn-primary {
  color: var(--bs-light);
  border-color: var(--bs-primary);
  background-color: var(--bs-primary);
}
.btn-primary:hover {
  background-color: #0d8f63 !important;
  border-color: var(--bs-primary) !important;
}
.btn-secondary {
  color: var(--bs-light);
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
}
.btn-secondary:hover {
  background-color: #1a3364 !important;
  border-color: var(--bs-secondary) !important;
}

/* button white  */
.btn-white {
  color: var(--bs-text);
  border: 1px solid #dee2e6;
  background-color: #fff;
}
.btn-white:hover {
  color: var(--bs-text);
  border: 1px solid #dee2e6;
  background-color: #fff;
}
.btn-white:active {
  color: var(--bs-text);
  border: 1px solid #dee2e6 !important;
  background-color: #fff !important;
}
.btn-white:focus {
  color: var(--bs-text);
  border: 1px solid #dee2e6 !important;
  background-color: #fff !important;
} /* button white  */

.btn-muted {
  color: #b8bfcc;
  border-color: none;
  background-color: #f4f2f3;
}
.btn-danger {
  color: var(--bs-light);
  border-color: var(--bs-danger);
  background-color: var(--bs-danger);
}
.btn-info {
  color: var(--bs-light);
  border-color: var(--bs-info);
  background-color: var(--bs-info);
}
.btn-info:hover {
  color: var(--bs-light);
  background-color: var(--bs-info);
}
.btn-info:active {
  color: var(--bs-light) !important;
  background-color: var(--bs-info) !important;
}
.btn-outline {
  color: var(--bs-primary);
  background-color: #22c55e07;
  border-color: var(--bs-primary);
}
.btn-outline:hover {
  color: var(--bs-light);
  background-color: #0d8f63 !important;
  border-color: var(--bs-light) !important;
}
.btn-outline:active {
  color: var(--bs-light) !important;
}

/* Radio, Checkbox, Switch overwrites */
.form-check-input {
  width: 24px;
  height: 24px;
  border: var(--bs-border-width) solid #cccccc;
}
.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.form-check-label {
  padding-left: 8px;
  font-size: 16px !important;
  font-weight: var(--bs-medium);
  line-height: 32px !important;
  color: var(--bs-subtext) !important;
}
.form-label {
  font-size: 14px;
  color: var(--bs-subtext);
}
.form-control {
  padding: 8.5px 12px;
  font-size: 14px;
}
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: none;
  /* box-shadow: 0 0 0 .25rem rgb(16 167 6 / 22%); */
}
.form-select {
  font-size: 14px;
  padding: 0.75rem 0.75rem;
}
.form-select:focus {
  color: var(--bs-subtext);
  border-color: var(--bs-primary);
  box-shadow: none;
  /* box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); */
}
.form-switch .form-check-input {
  width: 48px;
}
.form-check-input:checked + .form-check-label {
  color: var(--bs-text) !important;
}

/* Accordion style overwrites */
.accordion-button:focus {
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background-color: #0baa7442;
}

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

/* .table-striped > tbody > tr:nth-child(odd) > td, */
.table-common-head {
  margin-bottom: 0;
}
.table-common-head > thead > tr > th {
  color: #737791;
  font-weight: 400;
}
.table-common-head > tbody > tr > th {
  color: #222222;
}
.table-common-head > tbody > tr > td {
  color: #737791;
}
.table-common-head > tbody > tr > td,
.table-common-head > thead > tr > th,
.table-common-head > tbody > tr > th {
  font-size: 14px;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  padding: 16px 0px !important;
  vertical-align: middle;
}

.table-last-row {
  border: none !important;
  border-color: transparent !important;
}

/* Selector Styles   */
.dropdown-menu {
  padding: 0;
  margin: 0;
}

.dropdown .no-hover:hover,
.dropdown .no-hover:focus {
  border: none !important;
  outline: 0 !important;
}

.dropdown.open .dropdown-menu.select-wrapper {
  /* box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.23); */
  /* border: solid 1px #eeeeee; */
  border-top: none !important;
  height: 200px;
  overflow-y: scroll;
}

.dropdown-menu.select-wrapper > li {
  line-height: 1.5;
  letter-spacing: 0.7px;
  color: var(--bs-text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 7.5px 15px;
  border-top: solid 1px #f3f3f3;
}

.dropdown-menu.select-wrapper > li:hover {
  background-color: #e5eee5;
}

/* Tab style  */
.tab-style .nav-link {
  color: #98a2b2;
  font-weight: 600;
  font-size: 14px;
  border-style: none;
  padding: 0;
  padding-bottom: 8px;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #0baa74;
  background-color: transparent;
  border-style: none;
  border-bottom: 2px solid #0baa74;
}

.secondary-tab.nav-pills .nav-link {
  border-radius: 32px;
  background-color: #ffffff;
  color: #737791;
}

.secondary-tab.nav-pills .nav-link.active,
.secondary-tab.nav-pills .show > .nav-link {
  color: #ffffff;
  background-color: var(--bs-primary);
}

.subscription-card {
  min-width: 273px;
  border: 1px solid #e6e8ec;
}

.subscription-card p {
  font-size: 24px;
}

.subscription-card h6 {
  font-size: 14px;
  margin-bottom: 4px;
}

.subscription-card_icon-box {
  width: 50px;
  height: 50px;
  background-color: #eff9ff;
}

/* .dashboard-aside {
    max-width: 332px;
    min-width: 332px;
    height: 100vh;
    background: #333;
    color: white;
    transition: all 0.3s ease;
  }
  main {
    width: calc(100% - 332px);
    transition: all 0.3s ease;
  }

@media (min-width: 1460px) {
  .dashboard-aside.collapsed {
    max-width: 40px;
    min-width: 40px;
  }

  main.collapsed {
    width: calc(100% - 40px);
  }
} */

/* Media Query use for width 1460px  */
@media (min-width: 1460px) {
  /* .dashboard-aside {
    max-width: 332px;
    min-width: 332px;
  }

  main {
    width: calc(100% - 332px);
  } */
  .asideToggleButton {
    top: 30%;
    right: 0;
  }
  .dashboard-aside.collapsed .asideToggleButton {
    top: 36%;
  }
  .dashboard-aside {
    max-width: 332px;
    min-width: 332px;
    height: 100vh;
    transition: all 0.3s ease;
  }
  main {
    width: calc(100% - 332px);
    transition: all 0.3s ease;
  }
  .dashboard-aside.collapsed {
    max-width: 74px;
    min-width: 74px;
  }
  main.collapsed {
    width: calc(100% - 74px);
  }
  .dashboard-aside .aside-link span {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dashboard-aside.collapsed .asideToggleTitle .aside-link span {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
  .dashboard-aside.collapsed .asideToggleTitle .aside-link {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .dashboard-aside.collapsed .asideToggleTitle .accordion-item {
    display: none;
  }
  .dashboard-aside.collapsed .asideToggleTitle .only-visible-hover {
    display: flex;
  }

  .aside-link {
    padding: 12px;
  }

  .table-common-head > tbody > tr > td,
  .table-common-head > tbody > tr > th,
  .table-common-head > thead > tr > th {
    font-size: 16px;
  }

  tbody,
  td,
  tfoot,
  th,
  thead,
  tr {
    padding: 16px 0px !important;
  }

  .subscription-card {
    min-width: 333px;
    border: 1px solid #e6e8ec;
  }

  .subscription-card p {
    font-size: 24px;
  }

  .subscription-card h6 {
    font-size: 18px;
  }

  .subscription-card_icon-box {
    width: 82px;
    height: 82px;
    background-color: #eff9ff;
  }
}

.only-visible-hover {
  display: none;
  position: relative;
}
.hover-container {
  display: none;
  position: absolute;
  left: 100%;
  z-index: 99;
}

.only-visible-hover:hover .hover-container {
  display: block;
  background-color: white;
  width: 240px;
  height: auto;
  top: 0;
}

.no-scroll {
  overflow-y: auto;
}
