:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #1e293b;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.main-content {
  background: transparent !important;
  padding: 2rem;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.header-section {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-section > div {
  width: 100%;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.header-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.header-icon-wrapper i {
  font-size: 1.25rem;
  color: white;
}

.header-section h1 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.stats-container {
  background: transparent;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.stat-card .card-body {
  padding: 1.5rem;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.stat-card:hover .icon-wrapper {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.icon-wrapper i {
  font-size: 1.25rem;
  color: white;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--primary-color);
  color: white;
}

.charts-container {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.charts-container .col {
  margin-bottom: 0;
  flex: 0 0 auto;
  width: calc(50% - 0.5rem);
}

.charts-container .col {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.charts-container .col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.charts-container .col:hover::before {
  transform: scaleX(1);
}

.charts-container .col:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.charts-container h1 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #f8fafc;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
  background: white;
  outline: none;
}

.form-select:hover {
  border-color: var(--primary-color);
}

.charts-container .position-relative {
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.charts-container .position-relative:hover {
  box-shadow: var(--shadow-md);
}

canvas {
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.custom-spinner {
  color: var(--primary-color) !important;
}

.spinner-border {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 768px) {
  .charts-container .col {
    padding: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .charts-container h1 {
    font-size: 1.125rem;
  }

  .form-select {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .stat-card .card-body {
    padding: 1rem;
  }

  .icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .icon-wrapper i {
    font-size: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}

.paymaker-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  max-width: 400px;
  width: 90%;
}

.paymaker-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
}

.notification-content i.fa-exclamation-triangle {
  color: var(--danger-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notification-text strong {
  color: var(--danger-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.notification-text span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--danger-color);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.notification-close:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
  .paymaker-notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}
