:root {
  --bs-primary: #8729A2;
  --bs-primary-rgb: 135, 41, 162;
}

.btn-primary {
  background-color: #8729A2;
  border-color: #8729A2;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6d2286;
  border-color: #6d2286;
}

.link-primary {
  color: #8729A2;
}

.text-primary {
  color: #8729A2 !important;
}

.bg-primary {
  background-color: #8729A2 !important;
}

.border-primary {
  border-color: #8729A2 !important;
}

html, body, .container {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.hero-section {
    position: relative;
    height: 100vh;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-color: black;
}

.carousel-item {
{
    #height: 100%;
} display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 2rem;
}

.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-md-4 {
    display: flex;
    justify-content: stretch;
    margin-bottom: 1.5rem;
}

.transition-transform {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-transform:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.badge.bg-success {
    background-color: #28a745;
}

.badge.bg-primary {
    background-color: #007bff;
}

.badge.bg-danger {
    background-color: #dc3545;
}

.badge.bg-secondary {
    background-color: #6c757d;
}

.badge.bg-dark {
    background-color: #343a40;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 75vh;
    overflow: hidden;
}

table.dataTable {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

table.dataTable thead {
    background-color: #222;
    color: #fff;
}

table.dataTable tbody tr {
    background-color: #1a1a1a;
}

table.dataTable tbody tr:hover {
    background-color: #333;
}

.dataTables_filter input,
.dataTables_length select {
    background-color: #000;
    color: #fff;
    border: 1px solid #444;
}

.table,
.table-striped,
.table-hover,
table.dataTable {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #333 !important;
}

.table thead,
table.dataTable thead {
    background-color: #111 !important;
    color: #fff !important;
    border-bottom: 1px solid #444 !important;
}

.table tbody tr,
table.dataTable tbody tr {
    background-color: #000 !important;
    color: #fff !important;
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
    background-color: #222 !important;
}

.table td,
.table th,
table.dataTable td,
table.dataTable th {
    border-color: #333 !important;
}

table code {
    color: #fff !important;
}

.table-dark-mode,
.table-dark-mode thead,
.table-dark-mode tbody,
.table-dark-mode tr,
.table-dark-mode th,
.table-dark-mode td {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #333 !important;
}

.table-dark-mode tbody tr:hover {
    background-color: #111 !important;
}

.table-dark-mode code {
    color: #ff2388 !important;
}

.footer {
    margin: 0}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.25);
  }
}

.text-gradient {
  background: linear-gradient(135deg, #0dcaf0, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn:hover {
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.4);
  transition: all 0.25s ease-in-out;
}

.launch-box {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 123, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.08);
  animation: pulse-glow 3s ease-in-out infinite;
  padding: 3rem;
  border-radius: 1rem;
  margin: 3rem auto;
  text-align: center;
}

.launch-box .content {
  position: relative;
  z-index: 1;
}

.launch-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  border: 2px solid rgba(0, 123, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.08);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}

body.fade-in {
  opacity: 0;
}

body.fade-in.show {
  opacity: 1;
  transition: opacity 1s ease;
}

body.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 100%;
  max-width: 100%;
  padding: 20px !important;
  display: block;
}

.badge-dropdown {
  background-color: #222 !important;
  color: white !important;
  border: none;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  border-radius: 0.75rem;
  appearance: none;
  cursor: pointer;
  text-align: center;
  min-width: 100px;
}

.badge-dropdown option {
  padding: 0.5rem;
  font-weight: 500;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

.form-control:focus {
    background-color: black;
    color: white;
}

.modal.modal-drawer .modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  max-width: 85%;
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
}

.modal.modal-drawer.show .modal-dialog {
  transform: translateX(0);
}

.modal-drawer .modal-content {
  height: 100%;
  border-radius: 0;
  background-color: #000;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.modal-drawer .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.modal-drawer .nav-link {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.75rem 0;
  color: white !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
  text-align: center;
}

.modal-drawer .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid #333;
  background-color: #000 !important;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.form-label {
  color: #ccc;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #8729A2;
  box-shadow: 0 0 0 0.15rem rgba(13, 202, 240, 0.25);
}

.form-check-input {
  background-color: #222;
  border-color: #444;
  width: 2.25rem;
  height: 1.25rem;
  transform: scale(1.3);
  margin-right: 0.5rem;
}

.form-check-input:checked {
  background-color: #8729A2;
  border-color: #8729A2;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(135, 41, 162, 0.4);
}

.form-check-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.nav-tabs .nav-link {
  color: #aaa !important;
  border: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
  color: #fff !important;
  border-bottom: 2px solid #8729A2;
  background-color: transparent;
}

@media (max-width: 576px) {

      .modal-narrow {
    max-width: 320px;
  }
  .form-control,
  .form-select {
    font-size: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }
}

.scroll-charts {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  max-width: 100%;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-charts::-webkit-scrollbar {
  display: none;
}

.chart-wrapper {
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 100%;
  max-width: 420px;
}

.donut-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.donut-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  opacity: 0.4;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.donut-indicators .dot.active {
  background-color: #fff;
  opacity: 1;
}

@media (min-width: 768px) {
  .modal-narrow {
    max-width: 320px;
  }
}

@media (min-width: 992px) {

      .modal-narrow {
    max-width: 320px;
  }
  .scroll-charts {
    overflow-x: hidden;
    scroll-snap-type: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .chart-wrapper {
    scroll-snap-align: none;
    flex: 1 1 30%;
    max-width: 33%;
  }

  .donut-indicators {
    display: none;
  }
}

h5.text-light.mb-3.text-start {
  padding: 15px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.table-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
  white-space: nowrap;
}

.dataTables_filter {
  margin-left: auto;
}

.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0;
}

.dataTables_filter label::before {
  content: none;
}

.dataTables_filter input[type="search"] {
  background-color: #000;
  color: #fff;
  padding: 0.25rem 0.5rem;
  max-width: 180px;
  width: 100%;
  border: 1px solid #444;
  border-radius: 0.375rem;
}

div.dataTables_wrapper div.dataTables_paginate {
  font-size: 14px;
  margin-top: 1rem;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 0;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-link {
  background-color: #000;
  color: #aaa;
  border: 1px solid #333;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  outline: none;
  box-shadow: none;
}

.page-link:hover {
  background-color: #111;
  color: #fff;
}

.page-item.active .page-link,
.page-link.active {
  background-color: #000;
  color: #aaa;
  font-weight: bold;
}

.page-item.disabled .page-link {
  background-color: #111;
  color: #555;
  cursor: not-allowed;
  opacity: 0.5;
  border: 1px solid #333;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li {
  margin: 0;
}

.active>.page-link, .page-link.active {
    border: none;
}

.page-item.active .page-link, .page-link.active {
  border: 1px solid #222;
}

.modal-dialog.modal-narrow {
  margin: auto;
}

.table-dark,
.table-dark th,
.table-dark td {
    background-color: #000 !important;
    color: #fff;
    border: none;
}

@keyframes pulseSuccess {
  from {
    box-shadow: 0 0 10px rgba(0,255,100,0.4);
    background-color: rgba(0,255,100,0.05);
  }
  to {
    box-shadow: 0 0 25px rgba(0,255,100,0.7);
    background-color: rgba(0,255,100,0.15);
  }
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}
