/* dark_theme.css */
.dark-theme body {
    background-color: #121212;
    color: #e0e0e0; /* Slightly off-white for better readability */
}

/* General Typography */
.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4, .dark-theme h5, .dark-theme h6, .dark-theme p, .dark-theme span, .dark-theme label, .dark-theme li, .dark-theme div {
    color: #e0e0e0;
}

.dark-theme a {
    color: #6cb2eb; /* A pleasant blue for links */
}

.dark-theme a:hover {
    color: #8ec9f5;
}

.dark-theme hr {
    border-top: 1px solid #444444;
}

.dark-theme .navbar {
    background-color: #353535 !important;
}


.dark-theme .bg-light {
    background-color: #1f1f1f !important;
}

.dark-theme .text-muted {
    color: #adb5bd !important;
}

.dark-theme .form-control {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444444;
}

.dark-theme .form-control:focus {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #888888;
    box-shadow: none;
}

.dark-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important; /* Makes the calendar icon white */
}

.dark-theme .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}


/* Components */
.dark-theme .card {
    background-color: #1e1e1e;
    border-color: #444444;
}

.dark-theme .card-header, .dark-theme .card-footer {
    background-color: #2a2a2a;
    border-bottom: 1px solid #444444;
}

.dark-theme .list-group-item {
    background-color: #1e1e1e;
    border-color: #444444;
    color: #e0e0e0;
}

.dark-theme .dropdown-menu {
    background-color: #2d2d2d;
}

.dark-theme .dropdown-item {
    color: #ffffff;
}

.dark-theme .dropdown-item:hover {
    background-color: #3d3d3d;
}

.dark-theme .dropdown-toggle.show {
    background-color: #3d3d3d !important; /* A slightly lighter dark to indicate active state, or the same as hover */
    color: #ffffff !important;
}

.dark-theme .modal-content {
    background-color: #1e1e1e;
    border-color: #444444;
}

.dark-theme .modal-header {
    border-bottom: 1px solid #444444;
}

.dark-theme .modal-footer {
    border-top: 1px solid #444444;
}

.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-theme .form-control::placeholder {
    color: #a0a0a0; /* Lighter grey for placeholder text */
    opacity: 1; /* Ensure full opacity */
}

.dark-theme .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}
.dark-theme .order-info-container {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
}

.dark-theme .order-info-container p strong,
.dark-theme .order-info-container p span {
    color: #e0e0e0 !important;
}

.dark-theme .category-card {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

.dark-theme .category-card:hover {
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}
.dark-theme .orders-container {
    border-color: #444444;
}

.dark-theme .orders-container::-webkit-scrollbar {
    width: 8px;
}

.dark-theme .orders-container::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.dark-theme .orders-container::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #2d2d2d;
}

.dark-theme .order-card {
    background-color: #1e1e1e;
    border-color: #444444;
}

.dark-theme .order-card:hover {
    transform: translateY(0px);
}

.dark-theme .pagination .page-link {
    background-color: #2d2d2d;
    border-color: #444444;
    color: #e0e0e0;
}

.dark-theme .pagination .page-link:hover {
    background-color: #3d3d3d;
}

.dark-theme .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.dark-theme .pagination .page-item.disabled .page-link {
    background-color: #2d2d2d;
    border-color: #444444;
    color: #6c757d;
}

.dark-theme .bordered-container {
    border-color: #444444;
}

.dark-theme .form-control:-webkit-autofill,
.dark-theme .form-control:-webkit-autofill:hover,
.dark-theme .form-control:-webkit-autofill:focus,
.dark-theme .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #2c3747 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #2c3747 !important; /* Ensure caret color is also white */
    transition: background-color 5000s ease-in-out 0s;
}

.dark-theme .invalid-feedback {
    color: #dc3545 !important; /* Bootstrap's default danger color */
}

.dark-theme .form-control.is-invalid {
    border-color: #dc3545 !important;
}

.dark-theme .form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.dark-theme .order-status-badge {
    color: #e0e0e0;
    border: 2px solid;
    background-color: transparent;
}

.dark-theme .order-status-badge.status-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.dark-theme .order-status-badge.status-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.dark-theme .order-status-badge.status-success {
    color: #198754;
    border-color: #198754;
}

.dark-theme .order-status-badge.status-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.dark-theme .alert {
    background-color: #2d2d2d;
    border-color: #444444;
    color: #e0e0e0;
}

.dark-theme .alert-danger {
    background-color: #4a272a;
    border-color: #dc3545;
    color: #f8d7da;
}

.dark-theme .btn-primary {
    color: #ffffff;
}

.dark-theme .success-container {
    background-color: #1e1e1e !important;
    border-color: #28a745 !important; /* Keep the original success green */
}

.dark-theme .error-container {
    background-color: #1e1e1e !important;
    border-color: #dc3545 !important; /* Keep the original error red */
}

/* Fix for order filter styles in dark theme */
.dark-theme .form-select {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444444;
}

.dark-theme input[type="date"] {
    color-scheme: dark !important;
}

.dark-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1) !important;
}

.dark-theme .form-check-input {
    background-color: #2d2d2d;
    border-color: #696969;
}

.dark-theme .form-check-input:checked {
    background-color: #0d6efd; /* Bootstrap primary blue */
    border-color: #0d6efd;
}

.dark-theme .form-check-input:focus {
    border-color: #888888;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap primary blue with transparency */
}

.dark-theme input[type="number"]::-webkit-inner-spin-button,
.dark-theme input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1) grayscale(100%) brightness(100%) !important; /* Made significantly brighter */ /* Adjust these values as needed for optimal visibility */
}

