body {
  background: #f6f7fb
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  margin-top: 1rem
}

.docs-content li {
  margin-left: 1.25rem
}

/* Professional Navbar Enhancements */
.navbar-brand {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0 2px;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #ffc107;
  border-radius: 50%;
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  margin: 0 0.25rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

.dropdown-item i {
  width: 1.2rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.dropdown-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  font-weight: 600;
}

/* Notification Badge */
.navbar .badge {
  position: absolute;
  top: -2px;
  right: -6px;
  font-size: 0.65rem;
  padding: 0.2em 0.4em;
}

/* Professional Button Group for Commission */
.btn-group .btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-group .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* DataTables Customizations */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_info {
  color: #6c757d;
  font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.375rem;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd;
  border-color: #0d6efd;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

/* Enhanced Card Styling */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Commission Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.75rem 0.75rem 0 0;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Image hover effects */
.table img {
  transition: transform 0.2s ease;
}

.table img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* Status badges */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.4em 0.6em;
}

/* Professional Input Groups */
.input-group .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  font-weight: 500;
}

/* Alert Styling */
.alert {
  border: none;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length {
    text-align: center;
    margin-bottom: 1rem;
  }

  .btn-group .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .navbar-nav .nav-link {
    margin: 2px 0;
  }

  .dropdown-menu {
    margin-top: 0.25rem;
  }
}

/* Spinning animation for loading buttons */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Professional color scheme for earnings cards */
.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-success {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
}

.bg-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}