
: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;
    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;
}

.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-description-btn:hover {
    background-color: var(--primary-blue);
}
.status-badge {
    white-space: nowrap;
    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;
}
/* Categories Section */
.categories-section {
    display: grid;
    grid-template-columns: 150px 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 */
.descriptions-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.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 */
    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 */
}
select option:hover {
    background-color: orange; /* Orange */
    color: #ffffff; /* Blanc */
}
