
:root {
    --primary-blue:#1B1464; /* Couleur conservée pour le sidebar */
    --light-gray: #f7f7f7;
    --table-header: #e5e5e5;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    padding: 0;
   flex-direction: column;
   min-height: 100vh; /* S'assure que le body occupe toute la hauteur */
}
.total-section label {
    display: inline-block;
    margin-right: 0;
    padding-right: 0;
}

.total-section label input[type="checkbox"] {
    vertical-align: middle;
    margin-left: 0;
    padding-left: 0;
}
.sidebar {
    width: 250px;
    background-color: var(--primary-blue);
    color: white;
    height: 100vh;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
   align-items: center;
   padding: 1rem 0;
  overflow-y: auto; /* Ajout du scroll si contenu trop long */
}

.logo-container {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container img {
    width: 150px;
}

.nav-menu {
    margin-top: 2rem;
}

.nav-item {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #F7941D;
}
  .nav-item.active {
  background-color: #F7941D; /* Orange pour l'élément actif */
 }
.main-content {
    margin-left: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
    flex: 1; 
}

h1 {
    margin-top: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-section .company-info, .header-section .client-info {
    width: 45%;
}
.client-infos {
    width: 50%;
}
.client-infos h2 {
    margin: 0 0 1rem;
}
.company-info h2, .client-info h2 {
    margin: 0 0 1rem;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    overflow-x: auto;
}

.items-table th, .items-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;

}

.items-table th {
    background-color: var(--table-header);
}

.delete-row-btn {
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.delete-row-btn:hover {
    background-color: darkred;
}
.add-row-btn {
    background-color: #F7941D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.add-row-btn:hover {
    background-color: rgb(205, 133, 40);
}

 .form-section {
    margin-top: 2rem;
}

.form-section label {
    display: inline-block;
    margin-right: 1rem;
}

.form-section input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.total-section {
    margin-top: 1rem;
    text-align: right;
}

.total-section p {
    font-size: 1.2rem;
}
.footer {
    text-align: center;
    background: #1B1464;
    color: white;
    padding: 10px;
    position: fixed; /* Position fixe pour rester en bas */
    bottom: 0; /* Alignement en bas de la page */
    width: 100%; /* Largeur totale de la page */
    z-index: 100; /* S'assurer qu'il est au-dessus des autres éléments */
}
.footer a {
color: inherit; /* Utilise la couleur du texte parent */
text-decoration: none; /* Enlève le soulignement */
}
.footer a:hover {
color: orange; /* Change la couleur au survol si tu veux un effet visuel */
}
#facture-header{
    color: #F7941D;
}
/* Style pour le loading circulaire */
.loading-spinner {
    border: 4px solid #f3f3f3; /* Couleur de fond du cercle */
    border-top: 4px solid #007bff; /* Couleur du cercle en rotation */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* S'assurer qu'il est au-dessus de tout */
}

/* Animation pour le spinner */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Style pour le flou de la page */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    backdrop-filter: blur(5px); /* Effet de flou */
    z-index: 1000; /* S'assurer qu'il est au-dessus de tout sauf du spinner */
    display: none; /* Masqué par défaut */
}
select option:hover {
    background-color: orange; /* Orange */
    color: #ffffff; /* Blanc */
}
