/* CRM Dark Theme - High Contrast */

body {
    background: #1a1d29 !important;
    color: #ffffff !important;
}

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

.sidebar, .bg-light {
    background: #1e222d !important;
}
.sidebar .nav-link {
    color: #b0b0b0 !important;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.2) !important;
}

/* Cards */
.card {
    background: #252836 !important;
    border: 1px solid #3d4152 !important;
}
.card-header {
    background: #2d3142 !important;
    color: #ffffff !important;
}
.card-body {
    background: #252836 !important;
}

/* TABLE - HIGH CONTRAST */
.table {
    color: #ffffff !important;
    background: #252836 !important;
}
.table thead th {
    background: #343a4d !important;
    color: #ffffff !important;
    border: 1px solid #4a5168 !important;
    padding: 14px 12px !important;
    font-weight: 600 !important;
}
.table tbody tr {
    background: #2a2f3d !important;
    color: #ffffff !important;
}
.table tbody tr:nth-child(even) {
    background: #323847 !important;
}
.table tbody tr:hover {
    background: #3d4557 !important;
}
.table td {
    color: #ffffff !important;
    border: 1px solid #3d4557 !important;
    padding: 12px !important;
    background: inherit !important;
}
.table th {
    color: #ffffff !important;
}
.table-dark th {
    background: #343a4d !important;
}

/* Force white text everywhere in table */
.table td, .table td *, .table th, .table th * {
    color: #ffffff !important;
}
.table a {
    color: #7c9cff !important;
}

/* Forms */
.form-control, .form-select {
    background: #2d3142 !important;
    border: 1px solid #4a5168 !important;
    color: #ffffff !important;
}
.form-control:focus, .form-select:focus {
    border-color: #667eea !important;
    background: #353a4d !important;
}
.form-control::placeholder {
    color: #8a8a9a !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-info {
    background: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-warning {
    background: #f59e0b !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-danger {
    background: #ef4444 !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-outline-primary {
    color: #667eea !important;
    border-color: #667eea !important;
}
.btn-outline-primary:hover {
    background: #667eea !important;
    color: #ffffff !important;
}
.btn-outline-secondary {
    color: #b0b0b0 !important;
    border-color: #4a5168 !important;
}

/* Modal */
.modal-content {
    background: #252836 !important;
    color: #ffffff !important;
    border: 1px solid #4a5168 !important;
}
.modal-header, .modal-footer {
    border-color: #4a5168 !important;
}
.modal-title {
    color: #ffffff !important;
}
.btn-close {
    filter: invert(1) !important;
}

/* Dropdown */
.dropdown-menu {
    background: #252836 !important;
    border: 1px solid #4a5168 !important;
}
.dropdown-item {
    color: #ffffff !important;
}
.dropdown-item:hover {
    background: #3d4557 !important;
}

/* Pagination */
.page-link {
    background: #2d3142 !important;
    border-color: #4a5168 !important;
    color: #ffffff !important;
}
.page-item.active .page-link {
    background: #667eea !important;
    border-color: #667eea !important;
}

/* Text */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}
p, span, div, label {
    color: #e0e0e0;
}
.text-muted {
    color: #9a9cae !important;
}
.text-white {
    color: #ffffff !important;
}

/* Badge */
.badge {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Alerts */
.alert-success { background: rgba(16,185,129,0.3) !important; color: #4ade80 !important; border: none !important; }
.alert-danger { background: rgba(239,68,68,0.3) !important; color: #f87171 !important; border: none !important; }
.alert-warning { background: rgba(245,158,11,0.3) !important; color: #fbbf24 !important; border: none !important; }
.alert-info { background: rgba(59,130,246,0.3) !important; color: #60a5fa !important; border: none !important; }
