/* Text Visibility Fix for Save Trade Platform */
/* This file ensures all text is visible with proper contrast */

/* Force all text to be visible with high contrast */
* {
    color: #ffffff !important;
}

/* Override any Bootstrap or other framework styles */
.table td, .table th, .table-dark td, .table-dark th {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Ensure table text is always visible */
table * {
    color: #ffffff !important;
}

/* Force visibility for all text elements */
span, div, p, h1, h2, h3, h4, h5, h6, label, a, td, th, li, small, strong, em {
    color: #ffffff !important;
}

/* DataTables specific fixes */
.dataTables_wrapper * {
    color: #ffffff !important;
}

.dataTables_info, .dataTables_paginate, .dataTables_length, .dataTables_filter {
    color: #ffffff !important;
}

.dataTables_paginate .paginate_button {
    color: #ffffff !important;
}

/* Bootstrap table overrides */
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff !important;
}

/* Specific element overrides */
body, html {
    background-color: #191A1F !important;
    color: #ffffff !important;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Text elements */
p, span, div, label, a, li, td, th, small {
    color: #ffffff !important;
}

/* Muted text should be lighter gray but still visible */
.text-muted {
    color: #adb5bd !important;
}

/* Success/accent text */
.text-success, .text-accent {
    color: #3AD783 !important;
}

/* Warning text */
.text-warning {
    color: #ffc107 !important;
}

/* Danger text */
.text-danger {
    color: #dc3545 !important;
}

/* Info text */
.text-info {
    color: #17a2b8 !important;
}

/* Cards */
.card {
    background-color: #222328 !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.card-header {
    background-color: rgba(58, 215, 131, 0.1) !important;
    border-bottom-color: #3AD783 !important;
    color: #ffffff !important;
}

.card-body {
    color: #ffffff !important;
}

.card-title {
    color: #ffffff !important;
}

.card-text {
    color: #ffffff !important;
}

/* Tables */
.table {
    color: #ffffff !important;
    background-color: #222328 !important;
}

.table td, .table th {
    color: #ffffff !important;
    border-color: #444 !important;
    background-color: transparent !important;
}

.table-dark {
    background-color: #222328 !important;
    color: #ffffff !important;
}

.table-dark td, .table-dark th {
    color: #ffffff !important;
    border-color: #444 !important;
    background-color: transparent !important;
}

/* Force table cell content to be visible */
.table tbody tr td,
.table thead tr th,
.table-dark tbody tr td,
.table-dark thead tr th {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Table hover effects */
.table-hover tbody tr:hover td {
    background-color: rgba(58, 215, 131, 0.1) !important;
    color: #ffffff !important;
}

/* Ensure all table content is visible */
.table * {
    color: #ffffff !important;
}

.table-responsive {
    background-color: #222328 !important;
}

/* DataTables specific styling */
.dataTables_wrapper {
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #ffffff !important;
    background: #444 !important;
    border: 1px solid #666 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #ffffff !important;
    background: #3AD783 !important;
    border: 1px solid #3AD783 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #ffffff !important;
    background: #3AD783 !important;
    border: 1px solid #3AD783 !important;
}

/* Forms */
.form-label {
    color: #ffffff !important;
}

.form-control {
    background-color: #222328 !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.form-control:focus {
    background-color: #222328 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(58, 215, 131, 0.25) !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
}

.form-select {
    background-color: #222328 !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.form-select:focus {
    background-color: #222328 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

/* Buttons */
.btn {
    color: #ffffff !important;
}

.btn-primary {
    background-color: #3AD783 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #32c374 !important;
    border-color: #32c374 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: #3AD783 !important;
    border-color: #3AD783 !important;
}

.btn-outline-primary:hover {
    background-color: #3AD783 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

.btn-accent {
    background-color: #3AD783 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

/* Navigation */
.navbar {
    background-color: #222328 !important;
}

.navbar-brand {
    color: #3AD783 !important;
}

.nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: #3AD783 !important;
}

/* Sidebar */
.sidebar {
    background-color: #222328 !important;
    color: #ffffff !important;
}

.sidebar-menu a {
    color: #ffffff !important;
}

.sidebar-menu a:hover {
    color: #3AD783 !important;
    background-color: rgba(58, 215, 131, 0.1) !important;
}

/* Badges */
.badge {
    color: #ffffff !important;
}

.badge-success {
    background-color: #3AD783 !important;
    color: #ffffff !important;
}

/* Alerts */
.alert {
    color: #ffffff !important;
}

.alert-success {
    background-color: rgba(58, 215, 131, 0.2) !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
    color: #ffffff !important;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2) !important;
    border-color: #17a2b8 !important;
    color: #ffffff !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #222328 !important;
    border-color: #444 !important;
}

.dropdown-item {
    color: #ffffff !important;
}

.dropdown-item:hover {
    background-color: rgba(58, 215, 131, 0.1) !important;
    color: #3AD783 !important;
}

/* Modals */
.modal-content {
    background-color: #222328 !important;
    color: #ffffff !important;
}

.modal-header {
    border-bottom-color: #444 !important;
}

.modal-footer {
    border-top-color: #444 !important;
}

/* Pagination */
.page-link {
    background-color: #222328 !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.page-link:hover {
    background-color: #3AD783 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

.page-item.active .page-link {
    background-color: #3AD783 !important;
    border-color: #3AD783 !important;
    color: #ffffff !important;
}

/* Footer */
.footer {
    background-color: #222328 !important;
    color: #ffffff !important;
}

/* Ensure links are visible */
a {
    color: #3AD783 !important;
    text-decoration: none !important;
}

a:hover {
    color: #32c374 !important;
}

/* List groups */
.list-group-item {
    background-color: #222328 !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

/* Progress bars */
.progress {
    background-color: #444 !important;
}

.progress-bar {
    background-color: #3AD783 !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: #222328 !important;
    color: #ffffff !important;
}

/* Popovers */
.popover {
    background-color: #222328 !important;
    border-color: #444 !important;
}

.popover-body {
    color: #ffffff !important;
}

.popover-header {
    background-color: rgba(58, 215, 131, 0.1) !important;
    border-bottom-color: #3AD783 !important;
    color: #ffffff !important;
}
