:root {
  --bs-body-bg: #1a1a2e;
  --bs-body-color: #e0e0e0;
  --bs-primary: #6a11cb;
  --bs-primary-rgb: 58, 123, 213;
  --bs-secondary: #2575fc;
  --bs-secondary-rgb: 44, 44, 44;
  --bs-border-color: #444;
  --sky-blue: #87CEEB;
  --bs-navbar-active-color: #3a7bd5;
  --bs-link-color: #3a7bd5;
  --bs-border-color: #e0e0e0;
  --bs-secondary-menu-bg: #6a11cb;
  --bs-active-menu-color: darkblue;
  --bs-active-secondary-menu-bg: #ffc107 ;

  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --background-dark: #1a1a2e;
  --background-light: #16213e;
  --text-color: #e0e0e0;
  --accent-color: #ff9a8b;
}

body {
  background-color: var(--background-dark);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1500px;
}

/* Override Bootstrap default font color when class specified are nav-link and active */
.navbar .nav-link.active {
  color: var(--bs-primary);
}

a {
  color: var(--bs-link-color);
}

/* override Bootstrap default color for mobile menu and border */
.navbar-toggler-icon {
  background-color: var(--bs-primary);
}

.navbar-toggler {
  border-color: var(--bs-primary);
}

/* form-control placeholder font color white */
.form-control::placeholder {
  color: var(--bs-body-color);
  opacity: 0.7;
}

.navbar {
  background: var(--background-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-link {
  color: var(--bs-body-color);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--bs-primary);
}

.secondary-menu {
  background-color: var(--bs-secondary-menu-bg);
  border-radius: 0.5rem;
}

.secondary-menu .nav-link {
  color: white;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.secondary-menu .nav-link:hover,
.secondary-menu .nav-link.active {
  color: var(--bs-active-secondary-menu-bg);
}

.secondary-menu .nav-link i {
  margin-right: 0.5rem;
}

.card {
  background-color: var(--background-light);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-danger {
  background-color: #dc3545;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #b02a37;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-invoice {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 5px;
  padding: 5px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-invoice:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-sandbox {
  background-color: var(--background-light);
  border: 2px solid var(--background-light);
}

.btn-sandbox:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
  border: 2px solid var(--primary-color);
}

.table {
  /* Override Bootstrap table background */
  --bs-table-bg: var(--background-light);
  --bs-table-color: #ffffff;
  --bs-table-border-color: var(--bs-border-color);

  background-color: var(--background-light) !important;
  border-radius: 15px;
  overflow: hidden;
  color: #ffffff !important;
}

.table tbody tr {
  color: #ffffff !important;
}

.table thead {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.table thead th {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.yem-pay-button button {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.yem-pay-button button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 154, 139, 0.4);
}

pre {
  background-color: var(--background-light) !important;
  border-radius: 15px;
  border: 1px solid var(--primary-color);
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

footer {
  background-color: var(--background-light);
  color: var(--text-color);
}

footer h5 {
  color: var(--accent-color);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

hr {
  border-color: var(--primary-color);
  opacity: 0.2;
}

/* Change text-muted color to sky blue */
.text-muted {
  color: var(--sky-blue) !important;
}

/* Change dropdown menu background and text color */
.dropdown-menu {
  background-color: var(--bs-secondary);
}

.dropdown-item {
  color: var(--bs-body-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bs-primary);
  color: var(--bs-body-color);
}

.form-select#buttonType {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    url("data:image/svg+xml;utf8,<svg fill='%23ffc107' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>")
    no-repeat right 0.75rem center/1em;
  padding-right: 2.5em;
}
