@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

html,
body {
  height: 100%;
  background: linear-gradient(
    to right,
    #d4c4e6,
    #dae2b8
  ); /* Background gradient */
  font-family: "Poppins", sans-serif; /* Default font family */
}

body {
  display: flex;
  flex-direction: column;
}

.custom-scrollbar {
  max-height: 300px; /* Adjust height as per your requirement */
  overflow-y: auto;
}

/* Custom scrollbar style */
.custom-scrollbar::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1; /* Background of the scrollbar track */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Round corners */
  border: 3px solid #f1f1f1; /* Space around the thumb */
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555; /* Color when hovering over the thumb */
}

footer {
  margin-top: auto;
}

.card-title {
  font-weight: bold;
  font-size: 24px;
}

.btn-primary {
  background-color: #6a11cb;
  border-color: #6a11cb;
}

.btn-primary:hover {
  background-color: #2575fc;
  border-color: #2575fc;
}

/* Custom Navbar Styles */
.navbar-dark .navbar-brand {
  color: #f8f9fa;
}

.navbar-dark .nav-link {
  color: #f8f9fa;
}

.navbar-dark .nav-link:hover {
  color: #adb5bd;
}

.navbar-dark .dropdown-menu {
  background-color: #343a40;
}

.navbar-dark .dropdown-item {
  color: #f8f9fa;
}

.navbar-dark .dropdown-item:hover {
  color: #adb5bd;
  background-color: #495057;
}

.span-all {
  color: #2575fc !important;
  font-style: oblique;
}

.grid-view .asset-card {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.list-view .asset-card {
  flex: 0 0 100%;
  max-width: 100%;
}

.list-view .card {
  flex-direction: row;
}

.list-view .card-body {
  flex: 1;
}

/* Dark mode styles */
body.dark-mode {
  background: #121212;
  color: #f8f9fa;
}

body.dark-mode .card {
  background: #1e1e1e;
}

body.dark-mode .card-title,
body.dark-mode .card-text {
  color: #f8f9fa;
}

body.dark-mode .navbar-dark .navbar-brand,
body.dark-mode .navbar-dark .nav-link,
body.dark-mode .navbar-dark .dropdown-item {
  color: #adb5bd;
}

body.dark-mode .btn-primary {
  background-color: #343a40;
  border-color: #343a40;
}

body.dark-mode .btn-primary:hover {
  background-color: #495057;
  border-color: #495057;
}

/* Table dark mode styles */
body.dark-mode table {
  background-color: #1e1e1e;
  color: #f8f9fa;
}

body.dark-mode table th,
body.dark-mode table td {
  color: #f8f9fa;
}

body.dark-mode table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #2c2c2c;
}

body.dark-mode table.table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e;
}

/* Accessibility button styles */
#accessibilityOptions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accessibility-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6a11cb;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 5px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}

.accessibility-button:hover {
  transform: rotate(360deg);
  background-color: #2575fc;
}

.accessibility-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-top: 10px;
}

.accessibility-button:focus + .accessibility-menu,
.accessibility-menu:hover {
  display: flex;
}

.modal-content {
  padding: 15px;
}

.modal-body p {
  margin: 0;
}

.modal-body p strong {
  display: inline-block;
  width: 150px;
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
}

.card {
  border: 1px solid #e9ecef;
}

.card-body {
  padding: 15px;
}

.table th,
.table td {
  vertical-align: middle;
}

.bi-eye,
.bi-pencil-square {
  font-size: 1.2rem;
}

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.list-group-item {
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.list-group-item {
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

/* Enhance Select Style */
.form-select {
  padding: 10px;
  font-size: 16px;
}

.card:hover {
  transform: scale(1.05);
  background-color: #f8f9fa;
}

.list-group-item {
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.form-select {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ced4da;
}

#budgetChart {
  height: 400px;
  margin-top: 20px;
}

.apexcharts-legend-series {
  display: flex;
  align-items: center;
}

.apexcharts-legend-marker {
  margin-right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.apexcharts-legend-text {
  font-size: 14px;
}

.list-group {
  margin-top: 20px;
}

.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-group-item h6 {
  margin: 0;
}

.list-group-item p {
  margin: 0;
  font-size: 14px;
}

.list-group-item small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #6c757d;
}

.list-group-item .btn {
  margin-left: auto;
}

/* Custom Scrollbar Styles */
.list-group {
  max-height: 300px;
  overflow-y: auto;
}

.list-group::-webkit-scrollbar {
  width: 10px;
}

.list-group::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.list-group::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.list-group::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Custom Scrollbar Styles */
#softwareLicensesUsageChart {
  overflow-x: auto;
}

#softwareLicensesUsageChart::-webkit-scrollbar {
  height: 10px;
}

#softwareLicensesUsageChart::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#softwareLicensesUsageChart::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

#softwareLicensesUsageChart::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Additional Enhancements */
.navbar-dark .navbar-toggler {
  border-color: transparent;
}

.navbar-dark .navbar-toggler:hover {
  background-color: #343a40;
}

.navbar-dark .dropdown-menu .dropdown-item {
  padding: 10px 20px;
}

.navbar-dark .dropdown-menu .dropdown-item i {
  margin-right: 10px;
}

.list-group-item h6 {
  font-weight: bold;
}

.list-group-item small {
  color: #6c757d;
}

.btn {
  transition: background-color 0.3s, border-color 0.3s;
}

.btn:hover {
  background-color: #2575fc;
  border-color: #2575fc;
}

.card {
  border-radius: 10px;
}

.card-title {
  font-family: "Poppins", sans-serif;
}

.accessibility-button:focus {
  outline: none;
}

.accessibility-menu select {
  width: 100%;
  margin-bottom: 10px;
}

.accessibility-menu button {
  width: 100%;
}

.navbar-brand {
  font-family: "Source Sans 3", sans-serif;
}
.img-thumbnail {
  border-radius: 50%;
  height: 150px;
  width: 150px;
}
.navbar-nav .dropdown-menu {
  right: 0; /* Align the dropdown to the right */
  left: auto; /* Ensure it's aligned from the right side */
}

.navbar-nav .dropdown-menu.show {
  transform: translate3d(0, 0, 0) !important; /* Ensure it doesn't jump */
  top: 100%; /* Push the dropdown down properly */
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.255em; /* Add spacing between text and caret icon */
}

.navbar-nav .dropdown-menu li a {
  padding: 10px 20px; /* Add padding for better click area */
}

@media (max-width: 768px) {
  .navbar-nav .dropdown-menu {
    position: static; /* Mobile: Ensure dropdown is not out of place */
    float: none; /* Remove float in smaller screens */
  }
}

/* Cards Desgin and color for Dashboard */

.card1 {
  background-color: #b0c4b1 !important;
}

.card2 {
  background-color: #dedbd2 !important;
}

.card3 {
  background-color: #4a5759 !important;
  color: #dedbd2 !important;
}

.card4 {
  background-color: #f7e1d7 !important;
}

.bg-danger-email {
  background-color: #ef476f !important;
}

.list-group-item-danger {
  background-color: #ff8fa434 !important ;
}

/* Moduel Skelton Data */
.skeleton-loader {
  background-color: #e0e0e0;
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(to right, #e0e0e0 8%, #f0f0f0 18%, #e0e0e0 33%);
  background-size: 1000px 100%;
}

.skeleton-table .skeleton-loader {
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.module-name {
  color: #fb8500;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 576px) {
  .w-75 {
    width: 100% !important;
  }

  .skeleton-loader {
    width: 90% !important;
  }

  .btn-primary {
    width: 100%;
    padding: 14px;
  }
}
.spinner-border {
  border-color: #0d6efd #0d6efd transparent transparent;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  100% {
    transform: rotate(360deg);
  }
}

#profile_pic_container {
  width: 100px;
  height: 100px;
  position: relative;
}

#profile_pic_container .spinner-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
