/* ============================================================
   FORM CONTROLS
   ============================================================ */

.form-control:focus {
  border: 2px solid var(--bs-body-ofc-bt);
}


/* ============================================================
   DATE PICKERS
   ============================================================ */

.datepicker, .datetimepicker {
  border: 1px solid lightgrey;
}
.datepicker, .datetimepicker :focus {
  border: 2px solid var(--bs-body-ofc-bt);
}
.datepicker, .datetimepicker {
  z-index: 899999999999999999999 !important;
}


/* ============================================================
   SELECT2
   ============================================================ */

.select2-container .select2-selection--single {
  border: 0px;
  color: black;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  background-color: var(--bs-tertiary-bg);
}


/* ============================================================
   DATATABLES
   ============================================================ */

div.dtsp-panesContainer div.dataTables_wrapper div.dataTables_scrollBody {
  background-color: var(--bs-card-bg) !important;
  border: 0px solid var(--bs-body-color) !important;
}

table.dataTable > tbody > tr.selected > * {
  box-shadow: inset 0 0 0 9999px var(--bs-body-bg);
  color: var(--bs-body-ofc);
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
  background-color: #10b981 !important;
  color: white !important;
}

div.dtsp-panesContainer div.dtsp-title {
  border: 0px solid var(--bs-body-bg);
}

div.dtsp-panesContainer button.dtsp-clearAll,
div.dtsp-panesContainer button.dtsp-collapseAll,
div.dtsp-panesContainer button.dtsp-showAll {
  border: 0px solid var(--bs-body-bg);
}


/* ============================================================
   PLACEHOLDERS
   ============================================================ */

.placeholder-glow .placeholder {
  -webkit-animation: placeholder-glow 1s ease-in-out infinite;
  animation: placeholder-glow 1s ease-in-out infinite;
}



/* ============================================================
   NAV / PILLS
   ============================================================ */

.nav-pills > li.nav-item > a.nav-link.active {
  font-weight: 500;
  color: var(--bs-body-color) !important;
  background-color: var(--bs-body-bg) !important;
}

.mm-active > a {
  border-left: 4px solid var(--bs-body-ofc-nav) !important;
  border-radius: 2px;
  color: var(--bs-body-ofc-nav) !important;
}

.mm-active > a i {
  color: var(--bs-body-ofc-nav) !important;
}


/* ============================================================
   DARK MODE — force all text utility classes to white
   ============================================================ */

[data-bs-theme=dark] .text-primary,
[data-bs-theme=dark] .text-secondary,
[data-bs-theme=dark] .text-success,
[data-bs-theme=dark] .text-danger,
[data-bs-theme=dark] .text-warning,
[data-bs-theme=dark] .text-info,
[data-bs-theme=dark] .text-light,
[data-bs-theme=dark] .text-dark,
[data-bs-theme=dark] .text-body,
[data-bs-theme=dark] .text-muted,
[data-bs-theme=dark] .text-white {
  color: #FFFFFF !important;
}


/* ============================================================
   ACTIVE NAV LINKS
   (note: "actibve"/"actinve" are the original — likely typos,
   but preserved to match existing markup class names)
   ============================================================ */

[data-bs-theme=light] .nav-link.actibve {
  background-color: #10b981 !important;
  color: #FFFFFF !important;
}

[data-bs-theme=dark] .nav-link.actinve {
  background-color: #10b981 !important;   /* was #000000 — emerald on dark */
  color: #FFFFFF !important;              /* was #10b981 on black — white on emerald */
}


/* ============================================================
   CUSTOM SELECT LIST
   ============================================================ */

.custom-select-list {
  padding: 10px;
  list-style: none;
}

.custom-select-list li {
  padding: 10px;
  margin: 15px;
  border-radius: 10px;
  border-bottom: 0px solid #ddd;
  cursor: pointer;
}


/* ============================================================
   OVERLAYS / MODALS — z-index
   ============================================================ */

.offcanvas {
  z-index: 99990 !important;
}

.swal2-container {
  z-index: 99999 !important;
}


/* ============================================================
   SWEETALERT
   ============================================================ */

.swal-footer {
  text-align: center;
}

.swal-button {
  background-color: var(--bs-body-ofc);
}

.swal-button:not([disabled]):hover {
  background-color: var(--bs-body-ofc);
}

@media (max-width: 500px) {
  .swal2-popup {
    width: calc(100% - 60px);
  }
}

.swal2-popup {
  width: 300px !important;
  background-color: transparent;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(10, 46, 31, 0.92) !important;   /* was warm pinkish — now emerald-tinted dark */
}


/* ============================================================
   CUSTOM BUTTONS — .cusbtn (always white foreground)
   ============================================================ */

.cusbtn3 {
  background-color: transparent;
  padding: 7px;
  border-radius: 5px;
  border: 0 solid var(--bs-body-color) !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cusbtn3,
.cusbtn3 i,
.cusbtn3 span,
.cusbtn3 svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.cusbtn3:active,
.cusbtn3:hover {
  background-color: var(--bs-body-ofc);
  color: #ffffff !important;
}

.cusbtn3:active i,
.cusbtn3:hover i,
.cusbtn3:active span,
.cusbtn3:hover span {
  color: #ffffff !important;
}



.cusbtn {
  background-color: transparent;
  padding: 7px;
  border-radius: 5px;
  border: 0 solid var(--bs-body-color) !important;
  color: #000 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cusbtn,
.cusbtn i,
.cusbtn span,
.cusbtn svg {
  color: #000 !important;
  fill: #000 !important;
}

.cusbtn:active,
.cusbtn:hover {
  background-color: var(--bs-body-ofc);
  color: #ffffff !important;
}

.cusbtn:active i,
.cusbtn:hover i,
.cusbtn:active span,
.cusbtn:hover span {
  color: #ffffff !important;
}


/* ============================================================
   TABLES
   ============================================================ */

.table {
  border-color: 0px solid var(--bs-body-color);
}

.table > :not(caption) > * > * {
  padding: .6rem .6rem;
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
  background-color: var(--bs-table-bg);
  border-bottom-width: 0px;
  -webkit-box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}


/* ============================================================
   SECONDARY CUSTOM BUTTON — .cusbtnx
   ============================================================ */

.cusbtnx {
  padding: 7px;
  border-radius: 5px;
}

.cusbtnx:active,
.cusbtnx:hover {
  background-color: rgba(16, 185, 129, 0.41);
}

.cusbtnx:active i {
  color: #fff;
}


/* ============================================================
   MODALS
   ============================================================ */

.modal-header, .modal-footer {
  border: 0px !important;
}

@media (max-width: 768px) {
  .offcanvas, .modal {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   FILE UPLOAD
   ============================================================ */

.file-upload-box {
  padding-top: 5px;
  padding-bottom: 0px !important;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.file-list {
  margin-top: 0px !important;
}

.file-list li {
  list-style: none;
  border-radius: 0px;
  border: 0px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-remove {
  cursor: pointer;
  color: red;
  font-weight: bold;
}

input[type="file"] {
  display: none;
}


/* ============================================================
   DISABLED BUTTONS
   ============================================================ */

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
  color: var(--bs-body-color) !important;
  background-color: transparent;
  border: 0px solid var(--bs-body-bg);
  border-color: var(--bs-body-bg);
  opacity: 1;
}

.btn-light {
  color: var(--bs-body-color);
  background-color: transparent;
  border-color: var(--bs-body-bg);
}


/* ============================================================
   FORM SELECT
   ============================================================ */

.form-select {
  box-shadow: none !important;
}
.form-select:focus {
  border-color: var(--bs-body-ofc) !important;
  box-shadow: none !important;
}


/* ============================================================
   BORDERS
   ============================================================ */

.border-light,
.border-warning,
.border-info,
.border-success,
.border-danger,
.border-primary {
  border: 0px solid var(--bs-body-color) !important;
  box-shadow: var(--bs-box-shadow) !important;
}

@media (max-width: 576px) {
  .border-light,
  .border-warning,
  .border-info,
  .border-success,
  .border-danger,
  .border-primary {
    border: 0px solid var(--bs-body-color) !important;
    box-shadow: var(--bs-box-shadow) !important;
  }
}


/* ============================================================
   DASHBOARD SLIDE-IN
   ============================================================ */

.dashboard-slide-in {
  animation: slideInFromLeft 100ms forwards ease-out;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ============================================================
   KADI (click target)
   ============================================================ */

.kadi {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* ============================================================
   RIPPLE EFFECT
   ============================================================ */

.ripple-effect {
  background-color: rgba(16, 185, 129, 0.25);
  transform: scale(0);
  animation: ripple-animation 600ms linear;
  pointer-events: none;
  opacity: 0.75;
}

@keyframes ripple-animation {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

.ripple-effect.rect {
  border-radius: 0;
}

@media (prefers-color-scheme: dark) {
  .ripple-effect {
    background-color: rgba(16, 185, 129, 0.25);
  }
}


/* ============================================================
   THEME SPINNER
   ============================================================ */

[data-bs-theme="light"] #theme-spinner {
  color: #10b981;
}

[data-bs-theme="dark"] #theme-spinner {
  color: #10b981;
}


/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: var(--bs-body-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  border-top: 1px solid;
}

[data-bs-theme="light"] .bottom-nav {
  border-top-color: #ddd;
}

[data-bs-theme="dark"] .bottom-nav {
  border-top-color: #444;
}

.nav-item {
  text-align: center;
  font-size: 0.85rem;
  color: var(--bs-body-color);
}

.nav-item i {
  display: block;
  font-size: 1rem;
}


/* ============================================================
   FAB (floating action button)
   ============================================================ */

.fab-wrapper {
  position: relative;
  top: -15px;
  text-align: center;
}

.fab-button {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-bs-theme="light"] .fab-button {
  border-color: #ccc;
}

[data-bs-theme="dark"] .fab-button {
  border-color: #555;
}

.fab-button:hover {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.fab-label {
  font-size: 0.85rem;
  margin-top: 6px;
  color: var(--bs-body-color);
}

.fab-menu {
  position: absolute;
  width: 200px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  gap: 8px;
  background: var(--bs-body-bg);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.fab-menu.show {
  display: flex;
}

.fab-menu a {
  padding: 5px 10px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.fab-menu a:hover {
  background-color: rgba(16, 185, 129, 0.1);
}


/* ============================================================
   PRICING BOX
   ============================================================ */

.pricing-box {
  border: 1px solid var(--bs-body-ofc) !important;   /* was --vs-body-ofc (typo) — now correct */
  transition: transform 0.3s ease;
}


/* ============================================================
   CHECKBOXES
   ============================================================ */

.form-check-input {
  border: 1px solid var(--bs-body-color) !important;
  box-shadow: none !important;
}

.form-check-input:focus,
.form-check-input:hover,
.form-check-input:checked {
  border: 1px solid #10b981 !important;   /* emerald on state change */
  box-shadow: none !important;
}

.form-check-input:checked {
  background-color: #10b981;
  border-color: #10b981 !important;
}


/* ============================================================
   DOWNLOAD BANNER
   ============================================================ */

#downloadBanner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  padding: 15px;
  border-top: 1px solid #ccc;
  text-align: center;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#downloadBanner a {
  color: #10b981;
  text-decoration: none;
  font-weight: bold;
}


/* ============================================================
   FOOTER LINKS
   ============================================================ */

.footer-link,
.footer-link i {
  color: var(--bs-body-color) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}


/* ============================================================
   GLOBAL TYPOGRAPHY — applies the crypto font pair everywhere
   ============================================================ */

body,
p,
a,
span,
button,
input,
textarea,
label,
select,
option,
ul, ol, li,
td, th,
div,
blockquote,
small,
strong,
em,
.form-control,
.form-select,
.custom-select-list li,
.bottom-nav,
.nav-item,
.fab-menu a,
.footer-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Headings, numbers, buttons, nav — Space Grotesk for the crypto feel */
h1, h2, h3, h4, h5, h6,
.btn,
a.btn,
button.btn,
.cusbtn,
.cusbtnx,
.nav-item,
.nav-link,
.fab-button,
.fab-label,
.swal-button,
.swal2-styled,
.table th,
.modal-title,
.card-title {
  font-family: 'Space Grotesk', sans-serif;
}