﻿
/* Make all standard inputs and textareas dark */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] input[type="file"],
[data-bs-theme="dark"] textarea.form-control

{
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

/* Focus state */
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] input[type="file"]:focus,
[data-bs-theme="dark"] textarea.form-control:focus {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #888;
    box-shadow: 0 0 0 0.2rem rgba(187, 134, 252, 0.25);
}

/* The little “browse” button inside file inputs */
[data-bs-theme="dark"] input[type="file"]::-webkit-file-upload-button {
    background-color: #444;
    color: #e0e0e0;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

[data-bs-theme="dark"] input[type="file"]::-ms-browse {
    background-color: #444;
    color: #e0e0e0;
    border: none;
}

/* Labels too, if you want */
[data-bs-theme="dark"] .form-group label {
    color: #e0e0e0;
}

/* Ensure buttons stay Bootstrap-themed (optional tweak) */
[data-bs-theme="dark"] .btn-primary {
    background-color: #bb86fc;
    border-color: #bb86fc;
}
