/* Premium Solid Theme - Global Gradient Remover */
/* This file removes all gradients and applies solid colors consistently */

/* Remove all background gradients and replace with solid colors */
[class*="bg-gradient"],
[style*="linear-gradient"],
[style*="gradient"] {
  background-image: none !important;
}

/* Primary color gradient replacements - Dark Blue */
[class*="from-blue"][class*="to-purple"],
[class*="from-blue-6"][class*="to-blue-7"],
[class*="from-indigo"][class*="to-purple"],
[class*="from-blue"][class*="to-blue"] {
  background: #1e40af !important;
  background-image: none !important;
}

/* Table header gradients to solid - Dark Blue */
.table-header,
[class*="from-slate"][class*="to-slate"],
[class*="from-gray-8"][class*="to-gray-9"] {
  background: #1e40af !important;
  background-image: none !important;
}

/* Success button gradients */
[class*="from-green"][class*="to-green"],
[class*="from-emerald"][class*="to-emerald"] {
  background: #10b981 !important;
  background-image: none !important;
}

/* Warning button gradients */
[class*="from-yellow"][class*="to-yellow"],
[class*="from-amber"][class*="to-amber"],
[class*="from-orange"][class*="to-orange"] {
  background: #f59e0b !important;
  background-image: none !important;
}

/* Danger button gradients */
[class*="from-red"][class*="to-red"] {
  background: #ef4444 !important;
  background-image: none !important;
}

/* Purple/violet gradients */
[class*="from-purple"][class*="to-purple"],
[class*="from-violet"][class*="to-violet"] {
  background: #8b5cf6 !important;
  background-image: none !important;
}

/* Gray background gradients */
[class*="from-gray-5"][class*="to-gray-1"],
[class*="from-gray-100"][class*="to-white"],
[class*="from-slate-5"][class*="to-slate-1"] {
  background: #f9fafb !important;
  background-image: none !important;
}

/* Light background gradients */
[class*="from-white"][class*="to-gray"],
[class*="from-white"][class*="to-blue-50"] {
  background: #ffffff !important;
  background-image: none !important;
}

/* Ranking card solid colors */
.bg-gradient-to-br {
  background-image: none !important;
}

.from-purple-50.to-purple-100 {
  background: #f5f3ff !important;
}

.from-gray-50.to-gray-100 {
  background: #f9fafb !important;
}

.from-yellow-50.to-yellow-100 {
  background: #fffbeb !important;
}

.from-blue-50.to-blue-100 {
  background: #eff6ff !important;
}

.from-orange-50.to-orange-100 {
  background: #fff7ed !important;
}

/* Button specific overrides */
button[class*="from-"],
.btn[class*="from-"],
a[class*="from-"] {
  background-image: none !important;
}

/* Primary buttons - Dark Blue */
button[class*="from-blue"][class*="to-blue"],
.btn-primary[class*="gradient"],
button[name="add_user"] {
  background: #1e40af !important;
  background-image: none !important;
}

button[class*="from-blue"][class*="to-blue"]:hover,
button[name="add_user"]:hover {
  background: #1e3a8a !important;
}

/* Success buttons */
button[class*="from-green"][class*="to-green"],
.btn-success[class*="gradient"] {
  background: #10b981 !important;
  background-image: none !important;
}

button[class*="from-green"][class*="to-green"]:hover {
  background: #059669 !important;
}

/* Danger/Delete buttons */
button[class*="from-red"][class*="to-red"],
.btn-delete[class*="gradient"],
.btn-danger[class*="gradient"] {
  background: #ef4444 !important;
  background-image: none !important;
}

button[class*="from-red"][class*="to-red"]:hover,
.btn-delete:hover {
  background: #dc2626 !important;
}

/* Gray/Cancel buttons */
button[class*="from-gray"][class*="to-gray"],
button[data-fc-dismiss] {
  background: #6b7280 !important;
  background-image: none !important;
}

button[class*="from-gray"][class*="to-gray"]:hover,
button[data-fc-dismiss]:hover {
  background: #4b5563 !important;
}

/* Access badges */
.access-badge.full-access {
  background: #ef4444 !important;
  background-image: none !important;
}

.access-badge.edit-access {
  background: #f59e0b !important;
  background-image: none !important;
}

.access-badge.create-access {
  background: #1e40af !important;
  background-image: none !important;
}

.access-badge.view-access {
  background: #10b981 !important;
  background-image: none !important;
}

.access-badge.no-access {
  background: #f3f4f6 !important;
  background-image: none !important;
}

/* Module and permission cards */
.module-count,
.action-buttons-section,
.permissions-section {
  background: #f9fafb !important;
  background-image: none !important;
}

.module-card,
.permission-group {
  background: #ffffff !important;
  background-image: none !important;
}

/* Permission checkboxes */
.permission-checkbox:hover {
  background: #e0e7ff !important;
  background-image: none !important;
}

.permission-checkbox input[type="checkbox"]:checked {
  background: #1e40af !important;
  background-image: none !important;
}

.view-permission {
  background: #fef3c7 !important;
  background-image: none !important;
}

.view-permission input[type="checkbox"]:checked {
  background: #f59e0b !important;
  background-image: none !important;
}

/* Scrollbar styles - Dark Blue */
.permissions-section::-webkit-scrollbar-thumb,
.permissions-container::-webkit-scrollbar-thumb {
  background: #1e40af !important;
  background-image: none !important;
}

.permissions-section::-webkit-scrollbar-thumb:hover,
.permissions-container::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a !important;
  background-image: none !important;
}

/* Inline style overrides for dynamic content */
[style*="background: linear-gradient"],
[style*="background:linear-gradient"] {
  background-image: none !important;
}

/* Specific pattern overrides - Dark Blue */
.page-header {
  background: #1e40af !important;
  background-image: none !important;
}

.card-header {
  background: #1e40af !important;
  background-image: none !important;
}

.modal-header {
  background: #1e40af !important;
  background-image: none !important;
}

.table thead th,
.table-header th {
  background: #1e40af !important;
  background-image: none !important;
}

/* Dark mode adjustments - Lighter Blue */
[data-mode="dark"] .page-header,
[data-mode="dark"] .card-header,
[data-mode="dark"] .modal-header,
[data-mode="dark"] .table thead th {
  background: #3b82f6 !important;
}

[data-mode="dark"] .module-card,
[data-mode="dark"] .permission-group,
[data-mode="dark"] .permission-checkbox {
  background: #1f2937 !important;
}

[data-mode="dark"] .module-count,
[data-mode="dark"] .action-buttons-section {
  background: #111827 !important;
}
