:root {
  --black: #000000;
  --white: #ffffff;
  --blue: #007bff;
  --warning: #cc3300;
  --red: #ff0000;
  --orange: #f97316;
}

body {
  font-family: "Inter", serif;
  font-style: normal;
}

.welcome-page-section {
  padding: 24px;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.welcome-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

label {
  margin-left: 0px !important;
}

.error-message {
  color: var(--red);
}

canvas {
  max-width: 100%;
  max-height: 100%;
}

.chart-responsive {
  width: 50% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .chart-responsive {
    width: 100% !important;
    height: auto !important;
  }
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: transparent;
  padding: 10px;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.download-btn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.img-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
  display: inline-block;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.img-thumbnail {
  max-width: 80% !important;
}

/* ======================================================================================================================= */
/* Start Profile Photo Section Here */
/* ======================================================================================================================= */

/* Hide sidebar toggle button on large screens */
@media (min-width: 1025px) {
  #sidebarToggle {
    display: none;
  }
}

/* Sidebar default styles */
.sidenav {
  width: 250px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
}

@media (max-width: 1024px) {
  .sidenav {
    transform: translateX(-100%);
  }

  .sidenav.show {
    transform: translateX(0);
  }
}

.sidenav.collapsed {
  transform: translateX(-100%);
}

#sidebarToggle {
  position: fixed;
  top: 18px;
  left: 250px;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 5px 9px;
  border-radius: 30px;
  cursor: pointer;
  transition: left 0.3s ease-in-out, background 0.2s ease-in-out;
  z-index: 1100;
}

#sidebarToggle:hover {
  background: #999;
}

.sidenav.collapsed+#sidebarToggle {
  left: 10px;
}

@media (max-width: 1024px) {
  #sidebarToggle {
    left: 8px;
  }

  .sidenav.show+#sidebarToggle {
    left: 250px;
  }
}

#sidebarIcon {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 1024px) {
  .sidenav:not(.show) #sidebarIcon {
    transform: rotate(180deg);
  }
}

/* ======================================================================================================================= */
/* Start Profile Photo Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Profile Photo Section Here */
/* ======================================================================================================================= */

.avatar-upload {
  position: relative;
  max-width: 205px;
  margin: 24px 0px;
}

.avatar-upload .avatar-edit {
  position: absolute;
  right: 12px;
  z-index: 1;
  top: 10px;
}

.avatar-upload .avatar-edit input {
  display: none;
}

.avatar-upload .avatar-edit input+label {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 100%;
  background: var(--white);
  border: 1px solid transparent;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: normal;
  transition: all 0.2s ease-in-out;
}

.avatar-upload .avatar-edit input+label:hover {
  background: #f1f1f1;
  border-color: #d6d6d6;
}

.avatar-upload .avatar-edit input+label:after {
  content: "\f040";
  font-family: "FontAwesome";
  color: #757575;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  margin: auto;
}

.avatar-upload .avatar-preview {
  width: 192px;
  height: 192px;
  position: relative;
  border-radius: 100%;
  border: 6px solid #f8f8f8;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.avatar-upload .avatar-preview>div {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ======================================================================================================================= */
/* End Profile Photo Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Button Here */
/* ======================================================================================================================= */

.bg-color {
  color: var(--white);
  background-color: var(--black);
}

.bg-color:hover {
  color: var(--white);
  background-color: #424649;
}

.button-red {
  color: var(--white);
  background-color: #dc3545;
}

.button-red:hover {
  color: var(--white);
  background-color: #bb2d3b;
}

.button-blue {
  color: var(--white);
  background-color: #0d6efd;
}

.button-blue:hover {
  color: var(--white);
  background-color: #0b5ed7;
}

.button-infoblue {
  color: var(--white);
  background-color: #0dcaf0;
}

.button-infoblue:hover {
  color: var(--white);
  background-color: #31d2f2;
}

.dt-buttons {
  margin-bottom: 1.5rem;
}

/* ======================================================================================================================= */
/* End Button Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Text Color Here */
/* ======================================================================================================================= */

.card-title {
  padding: 24px 24px 0px;
  margin: 0px !important;
}

.card-title h5 {
  margin: 0px !important;
}

.text-color {
  color: var(--black);
}

/* ======================================================================================================================= */
/* End Text Color Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Upload Section Here */
/* ======================================================================================================================= */

.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
  background-color: #f9f9f9;
}

.drag-drop-area.drag-over {
  border-color: #007bff;
  background-color: #eef6ff;
}

/* Image Preview Styling */
.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview .preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ======================================================================================================================= */
/* End Upload Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Table Section Here */
/* ======================================================================================================================= */

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: center;
  vertical-align: middle;
}

.table td button {
  margin: 0px;
  padding: 8px 22px;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: var(--black);
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  border-radius: 5px;
  margin: 0 4px;
}

.pagination a.active {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

/* ======================================================================================================================= */
/* End Table Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Dropdown Section Here */
/* ======================================================================================================================= */

.select2 .select2-selection--single {
  height: 40px !important;
  padding: 8px 16px 8px 12px;
  width: 100% !important;
  line-height: 0px !important;
}

.select2 .select2-selection--single {
  border: 1px solid #d2d6da !important;
  border-radius: 0.5rem !important;
}

/* ======================================================================================================================= */
/* End Dropdown Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Signup Section Here */
/* ======================================================================================================================= */

.alert-error-message {
  color: var(--white);
  background-color: #e74c3c;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.alert-success-message {
  color: var(--white);
  background-color: #2ecc71;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* ======================================================================================================================= */
/* End Signup Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start Shortcut Section Here */
/* ======================================================================================================================= */

.add-shortcut-card {
  text-align: center;
  padding: 20px;
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.add-shortcut-card:hover {
  transform: translateY(-5px);
}

.add-shortcut-card h5 {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
}

.add-shortcut-card i {
  padding: 7px 14px;
  border-radius: 12px;
  background-color: var(--orange);
  color: var(--white);
  font-size: 24px;
  display: inline-block;
}

/* ======================================================================================================================= */
/* End Shortcut Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* End Signup Section Here */
/* ======================================================================================================================= */

.modal-title {
  color: var(--white);
}

.modal-dialog {
  max-width: 500px;
}

.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.12);
}

.modal-header {
  padding: 1rem;
  background: var(--warning);
  border-radius: 0.75rem 0.75rem 0 0;
  color: var(--white);
  border-bottom: none;
}

.modal-body {
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.warning-icon {
  font-size: 2rem;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0.75rem;
  justify-content: center;
  gap: 0.5rem;
}

.btn {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.4rem;
}

.btn-secondary {
  background: #e9ecef;
  color: #495057;
}

.btn-secondary:hover {
  background: #dee2e6;
}

.btn-danger {
  background: var(--warning);
}

.btn-danger:hover {
  color: var(--white);
  background: #e63946;
}

.modal.fade .modal-dialog {
  transform: scale(0.9);
  transition: 0.2s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* ======================================================================================================================= */
/* End Signup Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* End Signup Section Here */
/* ======================================================================================================================= */

.choices__inner {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  background-color: var(--white) !important;
  padding: 0.6rem !important;
  border: 1px solid #d2d6da !important;
  border-radius: 0.5rem !important;
  font-size: 14px;
  min-height: 40px !important;
  overflow: hidden;
}

.choices__list--single {
  display: inline-block;
  padding: 0px 16px 0px 4px !important;
  width: 100%;
}

.choices[data-type*="select-one"] .choices__inner {
  padding-bottom: 0px !important;
}

.choices[data-type*="select-one"] .choices__input {
  display: block;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  background-color: #f3f3f3 !important;
  margin: 0;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  color: var(--white);
  background-color: #1967d2 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  display: none;
  z-index: 1;
  position: absolute;
  width: 100%;
  background-color: var(--white);
  border: 1px solid #ddd;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  overflow: hidden;
  word-break: break-all;
  border-radius: 0.5rem !important;
}

/* ======================================================================================================================= */
/* End Signup Section Here */
/* ======================================================================================================================= */

/* ======================================================================================================================= */
/* Start List Section Here */
/* ======================================================================================================================= */

.wrap {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}

.sortable-list {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  /* Enable scrolling */
  overflow-x: hidden;
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: transparent transparent;
  /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
.sortable-list::-webkit-scrollbar {
  width: 8px;
}

.sortable-list::-webkit-scrollbar-track {
  background: transparent;
  /* Hide track */
}

.sortable-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  /* Subtle scrollbar */
  border-radius: 4px;
}

.sortable-list:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.6);
  /* Visible on hover */
}

.sortable-list .item {
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
  margin-bottom: 1rem;
}

.sortable-list .item:last-child {
  border-bottom: 0;
}

.sortable-list .item ul {
  list-style-type: none;
  margin-bottom: 0;
}

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

.ui-sortable-helper {
  width: 100%;
  background: #eee;
  border: 1px solid #ccc;
  border-bottom: 1px solid #ccc !important;
}

/* ======================================================================================================================= */
/* End List Section Here */
/* ======================================================================================================================= */

/* KYC IMAGE PREViEW CSS START */

.file-wrapper-for-KYC {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  background: #f4f4f4;
  padding: 8px;
  border-radius: 5px;
  position: relative;
}

.preview-image-for-KYC {
  max-width: 8rem;
  /* max-height: 100px; */
  object-fit: cover;
  border-radius: 5px;
}

.delete-btn-for-KYC {
  background: red;
  color: var(--white);
  border: none;
  padding: 4px 20px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  border-radius: 10%;
}