:root {
  --bgdarkmode: rgb(31 41 55);
  --textdarkmode: rgb(209 213 219);
  --bg2darkmode: rgb(17 24 39);
  --colordarkmode: rgb(156 163 175);
  /* Nice colors */
  /*
    #1f2937
    #2f2c4c
  */
}

* {
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
  /* box-shadow: 0rem 0.16667rem 0.33333rem rgba(0, 0, 0, 0.16); */
}

a {text-decoration: none; color: unset}

nav.navbar {
  background-color: #fff;
}

body {
  background-color: #f4f6fe;
  color: #1f3b64;
}
.dark-mode {
  background-color: var(--bg2darkmode) !important;
  color: #fff;
  --bs-table-bg: #333;
  --bs-table-color: #fff;
}
.dark-mode .bg-white, .dark-mode .card, .dark-mode table {
  background-color: var(--bgdarkmode) !important;
  color: #fff;
  --bs-table-bg: var(--bgdarkmode);
  --bs-table-color: #fff;
}
body.dark-mode nav.navbar {
  border-bottom: rgb(55 65 81) 1px solid !important;
}
body.dark-mode nav.navbar, body.dark-mode .sidebar, body.dark-mode .sidebar * {
  background-color: var(--bgdarkmode);
  color: #eee !important;
}
body.dark-mode .form-control, body.dark-mode .form-select {
  background-color: var(--bg2darkmode);
  color: rgb(209 213 219);
}
body.dark-mode .form-control::placeholder {
  color: rgb(156 163 175);
}

.btn-light {
  background-color: rgb(229 231 235);
  color: rgb(31 41 55);
  border: 1px solid rgb(31 41 55);
}

.card {
  border-radius: 0.9375rem !important;
}

.notifications .dropdown-toggle::after {display: none !important}

.notification-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.notification-icon .fa-bell {
  font-size: 20px;
  /* color: #333; */
}
.notification-icon .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #f00;
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  font-weight: bold;
}

input[type="number"] {
  direction: inherit;
}

.form-switch .form-check-input {
  height: 24px;
  width: 2.4em;
}

.form-check-input-lg {
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid #ccc;
}

.btn-primary {
  background-color: #1f3b64;
  border-color: #1f3b64;
}

i {
  /* color: #1f3b64; */
  width: 1.1em;
  /* font-size: 0.7rem; */
}

.settings-nav .nav-link {
  color: unset;
}
.settings-nav .nav-link.active {
  display: none;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  height: calc(100vh - 70px);
  overflow-y: auto;
  min-width: 15rem;
  position: sticky;
  top: 70px;
  box-shadow: var(--bs-box-shadow) !important;
  color: #000;
}

.sidebar .logo {
  text-align: center;
  padding: 1rem 0;
  letter-spacing: 1.5px;
  color: #222;
}

.sidebar .links {
  font-size: 0.9rem;
  /* height: calc(100% - 3.7rem); */
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar:hover::-webkit-scrollbar {
  /* display: block; */
}

.sidebar .links .link {
  display: flex;
  align-items: center;
  font-weight: bold;
  padding: 1.2rem 1.8rem 1.2rem 0.8rem;
  color:rgb(94, 110, 141);
}

.sidebar .links .ul .link::before {
  position: absolute;
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border: 1px solid #536485;
  border-radius: 50%;
  background-color: transparent;
  inset-inline-start: 0.5rem;
  opacity: 0.5;
}

.sidebar .links svg, .sidebar .links i {
  margin-left: 1.3rem;
  fill: #536485;
  color: #536485;
  font-size: 1.15rem;
  width: 20px;
  height: 20px;
}

.sidebar .link.active, .sidebar .link:hover, .accordion-button:hover, .accordion-button.active {
  background-color: #f8fafb !important;
  /* color: #000 !important; */
}

.dark-mode .sidebar .link.active, .dark-mode .sidebar .link:hover {
  background-color: rgb(17 24 39 / 0.4) !important;
  color: #f8fafb !important;
}

.table {
  margin-bottom: 0;
}
.table-card {
  border-radius: 0.5rem !important;
}


/* rating-stars */
.rating-stars,
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-size: 17px;
}
.rating input {
  display: none;
}
.rating label,
.rating-stars span {
  color: #c0a880;
  margin-left: 0.3rem;
  font-size: 1.5rem;
}
.rating-stars span.checked,
.rating-stars span.checked ~ span,
.rating label:hover ~ label,
.rating input:checked ~ label,
.rating label:hover {
  color: orange;
  cursor: pointer;
}

