
:root {
    --primary-orange: #F7941D;
    --primary-blue: #1B1464;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-blue);
    color: white;
    position: fixed;
    height: 100vh;
    padding: 1rem;
    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;
    height: auto;
}

 .nav-menu {
    margin-top: 2rem;
}

.nav-item {
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.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: 250px;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 12px;
   color: #F7941D;
}

.new-invoice-btn {
    background-color: var(--primary-orange);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.new-invoice-btn:hover {
    background-color: var(--primary-blue);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.table-container {
    width: 100%; /* Prend toute la largeur disponible */
    overflow-x: auto; /* Active le défilement horizontal */
    margin-bottom: 2rem; /* Espacement en bas */
}

.invoices-table {
    min-width: 1200px; /* Largeur minimale pour forcer le défilement */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.invoices-table table {
    width: 100%; /* La table prend toute la largeur du conteneur */
    border-collapse: collapse;
}

.invoices-table th,
.invoices-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
		 
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-paid {
    background-color: #e6ffe6;
    color: #008000;
}

.status-unpaid {
    background-color: #ffe6e6;
    color: #cc0000;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.edit-btn {
    background-color: var(--primary-blue);
    color: white;
}

.print-btn {
    background-color: var(--primary-orange);
    color: white;
}
.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 */
    border: 2px solid #1B1464;
    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 */
}
       /* 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 */
    }
