body {
    font-family: Arial, sans-serif;
}
.navbar {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background-color: #343a40;
    padding: 5px 20px; /* Reduce padding to decrease height */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    color: #ffffff;
    font-size: 1.5rem; /* Slightly smaller font size */
    font-weight: bold;
    transition: color 0.3s;
}
.navbar-brand:hover {
    color: #ff9900;
}
.nav-link {
    color: #ffffff;
    font-size: 1rem; /* Slightly smaller font size */
    margin-right: 10px; /* Reduce margin */
    transition: color 0.3s;
}
.nav-link:hover {
    color: #ff9900;
}
.btn-outline-success, .btn-outline-light, .dark-mode-toggle button {
    color: #ffffff;
    border-color: #ff9900;
    padding: 5px 10px; /* Reduce padding */
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s;
    font-size: 1rem; /* Ensure same font size */
}
.btn-outline-success:hover, .btn-outline-light:hover, .dark-mode-toggle button:hover {
    background-color: #ff9900;
    border-color: #ff9900;
    color: #343a40;
}
.form-control {
    border-radius: 0;
    width: 100%; /* Make the search bar responsive */
    max-width: 500px; /* Augmenter la longueur maximale */
    transition: width 0.4s;
}
.form-control:focus {
    max-width: 550px; /* Agrandir au focus */
}
.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.navbar-center .nav-item {
    margin-left: 10px; /* Reduce margin */
}
.navbar-center .nav-link {
    padding-top: 5px; /* Align with other elements */
}
.navbar-center .dropdown-menu {
    font-size: 1rem; /* Ensure same font size */
}
.navbar-center .form-control, .navbar-center .btn-outline-success {
    height: 30px; /* Ensure same height */
}
.carousel-item img {
    width: 100%;
    height: 400px; /* Réduire la hauteur des images */
    object-fit: cover; /* Maintenir le ratio d'aspect */
}
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better readability */
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: black;
    border-radius: 50%;
    padding: 10px;
}
.carousel-control-prev-icon::before {
    content: '\f053'; /* FontAwesome left arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 1.75rem;
}
.carousel-control-next-icon::before {
    content: '\f054'; /* FontAwesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 1.75rem;
}
.card {
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s;
    height: 100%; /* Ensure cards have the same height */
    display: flex;
    flex-direction: column;
}
.card-body {
    flex: 1; /* Make card body take up remaining space */
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}
.card-text {
    font-size: 1rem;
    flex: 1; /* Make card text take up remaining space */
}
.card-price, .card-quantity, .btn-primary, .btn-danger {
    margin-top: auto; /* Push these elements to the bottom */
}
.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}
.card-text {
    font-size: 1rem;
}
.card-price {
    font-size: 1.5rem;
    color: #ff9900;
}
.card-price-original {
    font-size: 1.2rem;
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}
.card-price-promo {
    font-size: 1.5rem;
    color: #ff0000;
}
.card-quantity {
    font-size: 1rem;
    color: #555;
    font-weight: bold;
}
.table {
    margin-top: 20px;
}
.btn-primary {
    background-color: #ff9900;
    border-color: #ff9900;
}
.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}
.alert {
    margin-top: 20px;
}
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}
.dark-mode .navbar {
    background-color: #1f1f1f;
}
.dark-mode .table {
    background-color: #1f1f1f;
    color: #ffffff;
}
.dark-mode .card {
    background-color: #1f1f1f;
    color: #ffffff;
}
.dark-mode .card-title,
.dark-mode .card-text,
.dark-mode .card-price,
.dark-mode .card-quantity {
    color: #ffffff;
}
.dark-mode .carousel-caption {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for dark mode */
}
.dark-mode-toggle {
    display: flex;
    align-items: center;
    margin-left: 15px; /* Adjust spacing */
}
.dark-mode-toggle button {
    margin-right: 10px; /* Add spacing between buttons */
}
.low-quantity {
    color: red;
    font-weight: bold;
}
.medium-quantity {
    color: orange;
}
.high-quantity {
    color: green;
}
.very-high-quantity {
    color: black;
}
.dark-mode .low-quantity {
    color: red;
}
.dark-mode .medium-quantity {
    color: orange;
}
.dark-mode .high-quantity {
    color: green;
}
.dark-mode .very-high-quantity {
    color: white;
}
.out-of-stock {
    color: red;
    font-weight: bold;
}
.dark-mode .out-of-stock {
    color: red;
}
.mt-5 {
    margin-top: 3rem !important;
}
.carousel-item {
    transition: transform 0.5s ease-in-out;
}
.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
    margin-left: 0.5em;
}
.badge-danger { background-color: #dc3545; }
.badge-primary { background-color: #007bff; }
.badge-warning { background-color: #ffc107; }
.badge-purple { background-color: #6f42c1; }
.badge-yellow { background-color: #ffc107; }
.badge-success { background-color: #28a745; }
.badge-peach { background-color: #ffcccb; }
.badge-fire { background-color: #fd7e14; }
.badge-pink { background-color: #e83e8c; }
.badge-light-red { background-color: #f8d7da; }
.badge-dark-green { background-color: #155724; }
.badge-sea-water { background-color: #17a2b8; }
.badge-gold { background-color: #ffd700; }
.badge-cyan { background-color: #17a2b8; }
.badge-brown { background-color: #795548; }
.badge-silver { background-color: #c0c0c0; }
.badge-black { background-color: #343a40; }
.dark-mode .badge {
    color: #ffffff;
}
.badge-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 0.5em 0.75em;
}
.out-of-stock {
    color: red;
    font-weight: bold;
}
.modal-content {
    max-height: 80vh; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
}
@media (max-width: 768px) {
    .navbar-center {
        flex-direction: column;
    }
    .navbar-center .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .navbar-center .form-control {
        width: 100%;
        max-width: none;
    }
    .navbar-center .btn-outline-success {
        width: 100%;
        margin-top: 10px;
    }
    .carousel-caption {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
        padding: 10px; /* Adjust padding for smaller screens */
    }
}