/* Centered Modal Styling */

div#sidebar {
    background-color: #061754 !important;
}



nav a {
    color: white;
    text-decoration: none;
    margin: 0 1em;
}

/* Footer Styling */
footer {
    /* background-color: #333; */
    color: black;
    text-align: right;
    padding: 1em;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Container Layout */
.container {
    display: flex;
    width: 100%;
}




.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Button Styling */
.buttons button {
    margin-right: 10px;
    padding: 8px 16px;
    background-color: #173e45;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 20px;
    background-color: #e0e7ff;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
}



/* Login Form Styling */
.login-form {
    width: 100%;
    max-width: 800px;
    padding: 60px;
    margin: auto;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    text-align: center;
}

.login-form h2 {
    margin: 0 0 20px;
    color: #333;
}

.login-form label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}


/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
}
.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.user-profile .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-profile .user-info span {
    font-size: 14px;
}





div#sidebar {
    background-color: #061754 !important;
}


/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background-color: #eeb25a !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}


/* Header */
.header {
    display: flex;
    justify-content: flex-start; /* Aligner les boutons à gauche */
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
   
    
    justify-content: space-between;
    padding: 0 20px;

}


.header button {
    margin-right: 10px;
}

/* Style pour les liens du sidebar */
.sidebar .nav-link {
    transition: background-color 0.3s, transform 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #145a64;
    transform: translateX(5px);
}

.sidebar h2 {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.logo-container img {
    max-width: 100px;
    border-radius: 50%; /* Rendre le logo circulaire si c'est une image carrée */
}

h2, h3 {
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.main-content {
    margin-left: 250px; /* Space for the sidebar */
    padding: 20px;
    width: 1401;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 3rem ;
}
/* Contenu principal */




.container-fluid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;  /* Make sure the container fills the remaining space */
    padding: 20px;
    /* background-color: #f9f9f9; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-y: auto;
}

/* Form Styling */
form {
    /* background-color: #ffffff; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Make sure form inputs take up full width within the container */
.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.button-container {
    text-align: right;
    margin-top: 20px;
}

button{
    background-color: #d3b887;
    border: none;
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;

}
table .btnnn {
    background-color: #d3b887; /* Couleur de fond personnalisée */
    border: none; /* Pas de bordure */
    color: white; /* Texte en blanc */
    border-radius: 50px; /* Coins arrondis */
    padding: 10px 20px; /* Espacement interne du bouton */
    cursor: pointer; /* Curseur en forme de main pour indiquer un bouton cliquable */
}
form .btnnn {
    background-color: #d3b887; /* Couleur de fond personnalisée */
    border: none; /* Pas de bordure */
    color: white; /* Texte en blanc */
    border-radius: 50px; /* Coins arrondis */
    padding: 10px 20px; /* Espacement interne du bouton */
    cursor: pointer; /* Curseur en forme de main pour indiquer un bouton cliquable */
}


/* Amélioration des boutons */
/* More specific selector */
form .btn {
    background-color: #d3b887;
    border: none;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
}

form .btn:hover {
    background-color: #b89560;
}


/* Section produit */
.product-item {
    margin-bottom: 20px; /* Espacement entre les lignes des produits */
}

.product-item input {
    margin-bottom: 10px; /* Ajout de marges entre les champs de produits */
}

/* Section des totaux et taxes */
.totals p {
    font-size: 16px;
    margin: 0;
}

.text-end {
    text-align: right;
}




.header .btn {
    background-color: #d3b887;  /* Exemple de couleur de fond */
    color: white;  /* Texte blanc */
    border: none;  /* Supprimer la bordure */
    border-radius: 4px;  /* Bords arrondis */
    padding: 10px 20px;  /* Espacement intérieur */
    cursor: pointer;  /* Curseur de main pour indiquer qu'il est cliquable */
}

.header .btn:hover {
    background-color: #b89560;  /* Couleur de survol */
}






/* Empêcher le défilement horizontal */
html, body {
    overflow-x: hidden;
   
}

/* Pour rendre la grille de stats plus flexible sur les petits écrans */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Pour ajuster les cartes de stats */
.stat-card {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
   
    margin: 0 auto;
}


/* Autres styles pour les cartes et éléments */
.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
}


/* Pagination Button Styles */
.pagination .page-link {
    background-color: #d3b887;
    color: #173e45; /* Dark text for better contrast */
    border: none; /* Remove default borders */
}

.pagination .page-link:hover {
    background-color: #b39b6e; /* Darker shade on hover */
    color: white; /* White text on hover */
}

.pagination .page-item.active .page-link {
    background-color: #8c6f40; /* Darker background for active page */
    color: white; /* White text for active page */
}
    @media (max-width: 768px) {
    .btnnn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .main-content
        margin-left: 0 !important;
    }
}
.pagination .page-link:focus {
    outline: none; /* Remove outline when focused */
}
