.card {
  border-top-left-radius: 35px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 35px;
  border-bottom-left-radius: 0px;
  transition: background .3s ease;
  background: var(--bs-dark) !important;
}

.card:hover {
  background: rgba(255,255,255,.05);
}

.gradient-red {
  background: linear-gradient(90deg, #ff7b00, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.modal {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: alias;
}

.modal-content {
  cursor: default;
  border-top-left-radius: 35px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 35px;
  border-bottom-left-radius: 0px;
}

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

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

.modal-header, .modal-footer {
  border: none;
}

.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
  background-image: var(--bs-gradient)!important;
  border: none;
  border-top-left-radius: 15px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 2px;
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info, .btn-outline-light, .btn-outline-dark {
  border-top-left-radius: 15px !important;
  border-top-right-radius: 2px !important;
  border-bottom-right-radius: 15px !important;
  border-bottom-left-radius: 2px !important;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.badge {
  border-top-left-radius: 15px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 0px;
}

/* =========================
   SCROLL PERSONALIZADO
========================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-primary, #00ff87);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--bs-primary, #00ff87) transparent;
}

/* =========================
   FIX MODAL BOOTSTRAP
   (evita movimiento de layout)
========================= */

html {
  overflow-y: scroll;
}

body {
  padding-right: 0 !important;
}

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* terminal */

#terminal-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#terminal-body::-webkit-scrollbar {
  display: none;
}

.custom-pills {
  gap: .75rem;
}

.custom-pills .nav-link {
  color: rgba(255,255,255,.8);
  border-top-left-radius: 15px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 2px;
  background-image: var(--bs-gradient)!important;
  border-color: var(--bs-primary);
}

.custom-pills .nav-link:hover {
  color: #fff;
}

.custom-pills .nav-link.active {
  background: var(--bs-primary);
  color: var(--bs-light);
  border: none;
}

/* Sidebar scrollbar - visible on hover with fade */
/* Sidebar scrollbar - visible on hover with fade */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
  border-right: 1px solid rgb(57,57,57);
}
.sidebar:hover {
  scrollbar-color: var(--bs-primary, #00ff87) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 20px;
  transition: background 0.3s ease;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: var(--bs-primary, #00ff87);
}

.sidebar .nav-link {
  border-top-left-radius: 15px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 0px;
}

.cal-today {
  background: var(--bs-primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border-top-left-radius: 15px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 0px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.show {
  background: rgba(85, 85, 85, 0.06);
  border-color: rgba(131, 131, 131, 0.18);
}

.card-icon-wrap {
  position: relative;
}
.card-default-icon {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.card-link-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-link-wrap:hover .card-default-icon {
  opacity: 0;
}
.card-link-wrap:hover .card-link-icon {
  opacity: 0.75;
}

.pag-link {
  border: 0 !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 15px !important;
  border-bottom-left-radius: 0 !important;
  background: var(--bs-dark) !important;
  color: rgba(255,255,255,0.75) !important;
  font-weight: 600;
}
.pag-link.pag-active {
  background: var(--bs-primary) !important;
  color: #fff !important;
}
.page-item.disabled .pag-link {
  opacity: 0.4;
  pointer-events: none;
}

