/* Modern Theme Override - Replace all old colors with modern purple/blue theme */

/* Override primary colors */
.bg-primary-800,
.bg-primary-900,
.tw-bg-primary-800,
.tw-bg-primary-900,
[class*="primary-800"],
[class*="primary-900"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Override text primary colors */
.text-primary-800,
.text-primary-900,
.tw-text-primary-800,
.tw-text-primary-900 {
    color: #667eea !important;
}

/* Override border primary colors */
.border-primary-800,
.border-primary-900,
.tw-border-primary-800,
.tw-border-primary-900 {
    border-color: #667eea !important;
}

/* Override hover states */
.hover\:tw-bg-primary-800:hover,
.hover\:tw-bg-primary-900:hover,
.hover\:tw-bg-primary-700:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%) !important;
}

/* Override old red color rgb(145 32 24) */
[style*="rgb(145, 32, 24)"],
[style*="rgb(145 32 24)"],
[style*="rgba(145, 32, 24"],
[style*="#912018"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Override bg-light-blue and primary colors */
.bg-light-blue,
.label-primary,
.modal-primary .modal-body,
.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.text-light-blue,
.text-primary {
    color: #667eea !important;
}

/* Override skin-blue colors */
.skin-blue .main-header .logo,
.skin-blue-light .main-header .logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.skin-blue .main-header .navbar,
.skin-blue-light .main-header .navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.skin-blue .main-sidebar .logo,
.skin-blue-light .main-sidebar .logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.skin-blue .content-wrapper .content-header-custom,
.skin-blue-light .content-wrapper .content-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Override any remaining theme color references */
[class*="theme_color"],
[style*="theme_color"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Override buttons with primary colors */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: white !important;
}

/* Override form controls */
.form-control:focus,
.select2-container--default .select2-selection--single:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* Override links */
a.text-primary,
a.text-light-blue {
    color: #667eea !important;
}

a.text-primary:hover,
a.text-light-blue:hover {
    color: #5568d3 !important;
}

/* Override badges and labels */
.badge-primary,
.label-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Override pagination */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
}

/* Override table active rows */
.table > tbody > tr.active > td,
.table > tbody > tr.active > th {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

/* Override sidebar active items */
.sidebar-menu > li.active > a {
    background-color: rgba(102, 126, 234, 0.15) !important;
    border-left-color: #667eea !important;
}

/* Override any inline styles with old colors */
[style*="background-color: rgb(145, 32, 24)"],
[style*="background-color:rgb(145, 32, 24)"],
[style*="background: rgb(145, 32, 24)"],
[style*="background:rgb(145, 32, 24)"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

[style*="color: rgb(145, 32, 24)"],
[style*="color:rgb(145, 32, 24)"] {
    color: #667eea !important;
}
