/* Global dark theme fixes */
body { 
    background: #1a1a2e !important; 
    color: #ffffff !important; 
}

/* All text elements */
h1, h2, h3, h4, h5, h6, p, span, div, label, a { 
    color: #ffffff !important; 
}

/* Sidebar */
.sidebar { background: #16213e !important; }
.sidebar a { color: #cccccc !important; }
.sidebar a:hover, .sidebar a.active { 
    background: #1a1a2e !important; 
    color: #ffffff !important; 
}

/* Forms */
.form-label, label { color: #ffffff !important; }
.form-control, .form-select, input, select, textarea { 
    background: #1a1a2e !important; 
    border-color: #3a3a5a !important; 
    color: #ffffff !important; 
}
input::placeholder, textarea::placeholder { color: #888888 !important; }
option { background: #1a1a2e !important; color: #ffffff !important; }

/* Tables */
.table, .table th, .table td, table, th, td { color: #ffffff !important; }
.table-dark { background: #16213e !important; }

/* Cards */
.card, .card-body, .card-header { 
    background: #16213e !important; 
    color: #ffffff !important; 
    border-color: #2a2a4a !important;
}

/* Buttons */
.btn-primary { background: #4a4ae0 !important; border-color: #4a4ae0 !important; }
.btn-secondary { background: #3a3a5a !important; border-color: #3a3a5a !important; }

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

/* Code blocks */
code { color: #ff79c6 !important; background: #2a2a4a !important; }

/* Links */
a:not(.btn):not(.sidebar a) { color: #79b8ff !important; }

/* Bootstrap overrides */
.text-muted { color: #aaaaaa !important; }
.text-dark { color: #ffffff !important; }
small { color: #cccccc !important; }
