/* Global Black Text Override - Forces all text to be black */

/* Override all text colors to black */
* {
    color: #000000 !important;
}

/* Specific overrides for common elements */
body, 
h1, h2, h3, h4, h5, h6,
p, span, div, 
a, a:hover, a:focus, a:active, a:visited,
li, ul, ol,
td, th, tr,
label, input, select, textarea,
button, button span,
.text-gray-50, .text-gray-100, .text-gray-200, .text-gray-300, 
.text-gray-400, .text-gray-500, .text-gray-600, .text-gray-700, 
.text-gray-800, .text-gray-900,
.text-white, .text-green-50, .text-green-100, .text-green-200,
.text-green-300, .text-green-400, .text-green-500, .text-green-600,
.text-green-700, .text-green-800, .text-green-900,
.text-blue-50, .text-blue-100, .text-blue-200, .text-blue-300,
.text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700,
.text-blue-800, .text-blue-900,
.text-red-50, .text-red-100, .text-red-200, .text-red-300,
.text-red-400, .text-red-500, .text-red-600, .text-red-700,
.text-red-800, .text-red-900,
.text-yellow-400, .text-yellow-500, .text-yellow-600,
.text-purple-600, .text-purple-700,
.text-transparent {
    color: #000000 !important;
}

/* Override gradient text to be solid black */
.bg-clip-text,
.text-transparent.bg-gradient-to-r,
.gradient-text-animate {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Icons should remain black */
i, i::before,
.fa, .fas, .far, .fab,
.fa::before, .fas::before, .far::before, .fab::before {
    color: #000000 !important;
}

/* Placeholder text in slightly lighter black */
::placeholder,
input::placeholder,
textarea::placeholder {
    color: #333333 !important;
    opacity: 1 !important;
}

/* Make sure links are black */
a, a * {
    color: #000000 !important;
    text-decoration: underline;
}

a:hover, a:hover * {
    color: #000000 !important;
    text-decoration: underline;
}

/* Navigation links */
.nav-link, .nav-link:hover,
.mobile-menu-link, .mobile-menu-link:hover {
    color: #000000 !important;
}

/* Button text */
.btn-modern,
.btn-primary, .btn-secondary, .btn-outline,
.btn-outline-primary,
button, button * {
    color: #000000 !important;
}

/* Override any inline styles */
[style*="color"] {
    color: #000000 !important;
}

/* Cards and content */
.content-card *,
.category-card *,
.feature-card *,
.stat-card * {
    color: #000000 !important;
}

/* Admin panel specific */
.sidebar *, 
.admin-card *,
.dashboard-stat * {
    color: #000000 !important;
}

/* Forms */
input, select, textarea, option {
    color: #000000 !important;
}

/* Tables */
table, thead, tbody, tfoot, tr, th, td {
    color: #000000 !important;
}

/* Badges and labels */
.badge, .label, .tag {
    color: #000000 !important;
}

/* Ensure readability on dark backgrounds by adding white background */
.bg-green-600, .bg-green-700, .bg-green-800, .bg-green-900,
.bg-blue-600, .bg-blue-700, .bg-blue-800, .bg-blue-900,
.bg-gray-800, .bg-gray-900,
.bg-gradient-to-r,
[class*="from-green-"][class*="to-blue-"],
[class*="from-green-"][class*="to-green-"] {
    background: #f0f0f0 !important;
}

/* Newsletter section fix */
.produce-market-bg .absolute.inset-0 {
    background: #f0f0f0 !important;
}

/* Hero section gradient fix */
.hero-agricultural-bg {
    background: white !important;
}

/* Make all overlays light */
.absolute.inset-0[class*="bg-gradient"] {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Fix admin sidebar */
.bg-gray-800.text-white {
    background: #f5f5f5 !important;
}

/* Specific nav fixes */
header, nav, .modern-nav {
    background: white !important;
}

/* Modal and dropdown backgrounds */
.modal, .dropdown, .dropdown-menu {
    background: white !important;
}

/* Make sure everything is readable */
* {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}