/*
============================================
CUSTOM THEME ENHANCEMENTS
Enhanced Contrast & Vibrancy
============================================
*/

/* ==========================================
   CORE TEXT & HEADINGS - More Contrast
========================================== */
body {
  color: #2c3e50 !important; /* Darker, more readable text (was #526066) */
  font-weight: 400 !important; /* Slightly heavier */
}

h1, h2, h3, h4, h5, h6 {
  color: #2c3e50 !important; /* Darker headings (was #455a64) */
  font-weight: 500 !important; /* More weight */
}

/* Links */
a {
  color: #0d8abf !important; /* More vibrant blue (was #1586b0) */
}

a:hover, a:focus {
  color: #0ea5e9 !important; /* Brighter hover */
}

a.link {
  color: #2c3e50 !important;
}
a.link:hover, a.link:focus {
  color: #0ea5e9 !important; /* More vibrant (was #20aee3) */
}

/* ==========================================
   PRIMARY THEME COLOR - More Vibrant Blue
========================================== */
.text-themecolor,
.text-info,
.text-primary {
  color: #0ea5e9 !important; /* More vibrant blue (was #20aee3) */
}

.bg-info,
.bg-primary {
  background-color: #0ea5e9 !important; /* More vibrant blue */
}

.btn-info,
.btn-primary {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
}

.btn-info:hover,
.btn-primary:hover {
  background: #0284c7 !important; /* Darker on hover */
  border-color: #0284c7 !important;
}

.label-info,
.badge-info {
  background-color: #0ea5e9 !important;
}

/* ==========================================
   STATUS COLORS - More Vibrant & Contrast
========================================== */

/* Success - More vibrant green */
.text-success,
.text-green {
  color: #10b981 !important; /* More vibrant (was #24d2b5) */
}

.bg-success,
.bg-green {
  background-color: #10b981 !important;
}

.btn-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

.btn-success:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

.label-success,
.badge-success {
  background-color: #10b981 !important;
}

/* Warning - More vibrant orange */
.text-warning,
.text-orange {
  color: #f97316 !important; /* More vibrant (was #ff9041) */
}

.bg-warning,
.bg-orange {
  background-color: #f97316 !important;
}

.btn-warning {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}

.btn-warning:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
}

.label-warning,
.badge-warning {
  background-color: #f97316 !important;
}

/* Danger - More vibrant red */
.text-danger,
.text-red {
  color: #ef4444 !important; /* More vibrant (was #ff5c6c) */
}

.bg-danger,
.bg-red {
  background-color: #ef4444 !important;
}

.btn-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.label-danger,
.badge-danger {
  background-color: #ef4444 !important;
}

/* Purple - More vibrant */
.text-purple {
  color: #8b5cf6 !important; /* More vibrant (was #7460ee) */
}

.bg-purple {
  background-color: #8b5cf6 !important;
}

.label-purple,
.badge-purple {
  background-color: #8b5cf6 !important;
}

/* Cyan/Info - More vibrant */
.text-cyan {
  color: #06b6d4 !important; /* More vibrant (was #56c0d8) */
}

.bg-cyan {
  background-color: #06b6d4 !important;
}

/* ==========================================
   SIDEBAR & NAVIGATION - Better Contrast
========================================== */
.sidebar-nav ul li a {
  color: #cbd5e1 !important; /* Lighter text in dark sidebar */
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  color: #ffffff !important; /* Pure white on active */
  background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-nav ul li a i {
  color: #cbd5e1 !important;
}

.sidebar-nav ul li a:hover i,
.sidebar-nav ul li a.active i {
  color: #0ea5e9 !important; /* Vibrant blue icon */
}

/* ==========================================
   CARDS & PANELS - Better Borders
========================================== */
.card {
  border: 1px solid #e2e8f0 !important; /* More visible border */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   TABLES - Better Contrast
========================================== */
.table thead th {
  color: #1e293b !important; /* Darker header */
  font-weight: 600 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.table tbody td {
  color: #334155 !important; /* Darker text */
  border-bottom: 1px solid #f1f5f9 !important;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc !important; /* Subtle hover */
}

/* ==========================================
   BUTTONS - More Vibrant
========================================== */
.btn {
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.btn-default,
.btn-secondary {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

.btn-default:hover,
.btn-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* ==========================================
   LABELS & BADGES - More Vibrant
========================================== */
.label,
.badge {
  font-weight: 500 !important;
  padding: 0.35em 0.65em !important;
}

.label-default,
.badge-default {
  background-color: #64748b !important; /* More contrast (was lighter gray) */
  color: #ffffff !important;
}

/* ==========================================
   FORMS - Better Visibility
========================================== */
.form-control {
  border: 1px solid #cbd5e1 !important; /* More visible border */
  color: #1e293b !important; /* Darker text */
}

.form-control:focus {
  border-color: #0ea5e9 !important; /* Vibrant blue focus */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.form-control::placeholder {
  color: #94a3b8 !important; /* More visible placeholder */
}

/* Select boxes */
select.form-control {
  color: #1e293b !important;
}

/* ==========================================
   ICONS - More Visible
========================================== */
.mdi,
.ti,
.sl-icon {
  opacity: 1 !important; /* Full opacity */
}

/* Action icons */
.list-table-action i {
  color: #64748b !important; /* More visible (was lighter) */
}

.list-table-action i:hover {
  color: #0ea5e9 !important; /* Vibrant blue on hover */
}

/* ==========================================
   BREADCRUMBS - Better Contrast
========================================== */
.breadcrumb {
  background-color: transparent !important;
}

.breadcrumb-item {
  color: #64748b !important; /* More visible */
}

.breadcrumb-item.active {
  color: #1e293b !important; /* Darker active */
  font-weight: 500 !important;
}

/* ==========================================
   TABS - Better Visibility
========================================== */
.nav-tabs .nav-link {
  color: #64748b !important; /* More visible */
  font-weight: 500 !important;
}

.nav-tabs .nav-link:hover {
  color: #0ea5e9 !important;
}

.nav-tabs .nav-link.active {
  color: #0ea5e9 !important;
  border-bottom-color: #0ea5e9 !important;
  font-weight: 600 !important;
}

/* ==========================================
   STATUS LABELS - More Vibrant
========================================== */
.label-outline-info {
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
}

.label-outline-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.label-outline-warning {
  border-color: #f97316 !important;
  color: #f97316 !important;
}

.label-outline-danger {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* ==========================================
   PROGRESS BARS - More Vibrant
========================================== */
.progress-bar {
  background-color: #0ea5e9 !important;
}

.progress-bar-success {
  background-color: #10b981 !important;
}

.progress-bar-warning {
  background-color: #f97316 !important;
}

.progress-bar-danger {
  background-color: #ef4444 !important;
}

/* ==========================================
   ALERTS - Better Contrast
========================================== */
.alert-info {
  background-color: #e0f2fe !important;
  border-color: #0ea5e9 !important;
  color: #0c4a6e !important;
}

.alert-success {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #064e3b !important;
}

.alert-warning {
  background-color: #ffedd5 !important;
  border-color: #f97316 !important;
  color: #7c2d12 !important;
}

.alert-danger {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #7f1d1d !important;
}

/* ==========================================
   DROPDOWN MENUS - Better Contrast
========================================== */
.dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item {
  color: #334155 !important; /* Darker text */
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8fafc !important;
  color: #0ea5e9 !important;
}

/* ==========================================
   MODALS - Better Visibility
========================================== */
.modal-header {
  background-color: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.modal-title {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.modal-footer {
  border-top: 1px solid #e2e8f0 !important;
}

/* ==========================================
   TOPBAR - Better Contrast
========================================== */
.topbar {
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.topbar .navbar-nav .nav-link {
  color: #64748b !important;
}

.topbar .navbar-nav .nav-link:hover {
  color: #0ea5e9 !important;
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.text-muted {
  color: #64748b !important; /* More visible than original */
}

.text-light {
  color: #94a3b8 !important;
}

.text-dark {
  color: #1e293b !important;
}

.bg-light {
  background-color: #f8fafc !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.border {
  border-color: #e2e8f0 !important;
}

/* ==========================================
   LOADING & SPINNERS
========================================== */
.spinner-border {
  border-color: #e2e8f0 !important;
  border-right-color: #0ea5e9 !important;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
========================================== */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  
  .btn {
    font-size: 13px;
  }
}

