
: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;
    
}
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1B1464;
    padding: 10px;
    border-radius: 5px;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1; /* Ajoutez cette propriété */
}

.dropdown-menu li {
    list-style: none;
    margin-bottom: 10px;
    padding: 5px;
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}



.dropdown:hover + .dropdown .dropdown-menu {
    top: 150%; /* Déplacez le menu déroulant "Paramètres" vers le bas */
}
    /* Style pour les menus déroulants */
.dropdown-menu {
    display: none;
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-orange);
    position: absolute; /* Position absolue pour éviter les chevauchements */
    background-color: var(--primary-blue); /* Couleur de fond */
    z-index: 1000; /* Assure que le menu est au-dessus des autres éléments */
    min-width: 200px; /* Largeur minimale pour éviter les débordements */
}

.dropdown.active .dropdown-menu {
    display: block;
}


 .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;
    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: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
}

.descriptions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: #F7941D;
}

.add-description-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;
}
.add-entiter-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;
}
.add-description-btn:hover {
    background-color: var(--primary-blue);
}
.add-entiter-btn:hover {
    background-color: var(--primary-blue);
}
/* Categories Section */
.categories-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.categories-list {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-item {
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.category-item:hover {
    background-color: var(--light-gray);
}

.category-item.active {
    background-color: var(--primary-orange);
    color: white;
}

/* Descriptions Table */
.table-container {
    overflow-x: auto; /* Permet le défilement horizontal */
    width: 100%; /* Assure que le conteneur prend toute la largeur disponible */
}

.descriptions-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Définissez une largeur minimale pour la table */
}

.descriptions-table table {
    width: 100%;
    border-collapse: collapse;
}

.descriptions-table th {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem;
    text-align: left;
}

.descriptions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.price-input {
    position: relative;
}

.price-input::before {
    content: "€";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.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;
}

.delete-btn {
    background-color: #dc3545;
    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 */
    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 */
}
        /* Styles pour l'indicateur de chargement */
        #loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .error-message {
            color: red;
            display: none;
            margin-top: 10px;
        }
     
        
                                select option:hover {
                                    background-color: orange; /* Orange */
                                    color: #ffffff; /* Blanc */
                                }
        