/* Global Font Color Override - Dark Green Theme */

/* Override all black and white text colors to dark green */
* {
    color: #2d4a2d !important;
}

/* Specific element overrides */
body,
html,
p,
span,
div,
h1, h2, h3, h4, h5, h6,
a,
li,
td,
th,
label,
input,
textarea,
select,
button,
.text-primary,
.text-secondary,
.text-muted {
    color: #2d4a2d !important;
}

/* White text overrides */
.text-white,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.badge,
.alert,
.navbar-dark .navbar-nav .nav-link,
.bg-dark,
.bg-primary,
.bg-success,
.bg-info,
.bg-warning,
.bg-danger {
    color: #2d4a2d !important;
}

/* Placeholder text */
::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    color: #4a6b4a !important;
}

/* Links */
a,
a:hover,
a:focus,
a:active,
a:visited {
    color: #2d4a2d !important;
}

/* Form elements */
input,
textarea,
select,
option {
    color: #2d4a2d !important;
}

/* Table elements */
table,
th,
td,
thead,
tbody,
tfoot {
    color: #2d4a2d !important;
}

/* Navigation elements */
.nav,
.navbar,
.nav-link,
.nav-item,
.tab-btn,
.nav-tab {
    color: #2d4a2d !important;
}

/* Card and content elements */
.card,
.card-body,
.card-header,
.card-footer,
.modal,
.modal-body,
.modal-header,
.modal-footer {
    color: #2d4a2d !important;
}

/* Admin specific elements */
.admin-header,
.admin-nav,
.admin-main,
.item-card,
.form-group label,
.section-header h2 {
    color: #2d4a2d !important;
}

/* Profile and content specific */
.profile-info h1,
.profile-info .title,
.profile-info .institution,
.contact-item,
.stat-content h3,
.stat-content p,
.timeline-content h3,
.timeline-content .institution,
.timeline-content .university,
.exp-card h3,
.exp-card .company,
.exp-card .duration,
.pub-item h4,
.pub-item .authors,
.pub-item .journal,
.skill-category h3,
.interest-tag {
    color: #2d4a2d !important;
}

/* Button text overrides */
.btn,
.button,
button {
    color: #2d4a2d !important;
}

/* Ensure readability on light backgrounds */
.bg-light,
.bg-white,
.bg-transparent {
    color: #2d4a2d !important;
}

/* Override any CSS variables that might affect text color */
:root {
    --text-primary: #2d4a2d !important;
    --text-secondary: #2d4a2d !important;
    --text-muted: #4a6b4a !important;
    --text-color: #2d4a2d !important;
    --color: #2d4a2d !important;
}

/* Specific overrides for common classes */
.text-black,
.text-dark,
.text-light,
.text-white,
.color-black,
.color-white,
.color-dark,
.color-light {
    color: #2d4a2d !important;
}

/* Override any inline styles */
[style*="color: black"],
[style*="color: white"],
[style*="color: #000"],
[style*="color: #fff"],
[style*="color: #ffffff"],
[style*="color: #000000"],
[style*="color: rgb(0,0,0)"],
[style*="color: rgb(255,255,255)"] {
    color: #2d4a2d !important;
}

/* Ensure all text elements are dark green */
.text,
.content,
.description,
.title,
.subtitle,
.heading,
.paragraph {
    color: #2d4a2d !important;
}