body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f7;
    margin: 0;
    padding: 0;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FF7C24;
    padding: 15px 30px;
    color: #fff;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

.navbar .menu {
    flex-grow: 1;
    margin-left: 20px;
}

.navbar .menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar .menu ul li {
    margin-right: 20px;
}

.navbar .menu ul li a {
    color: rgb(255, 255, 255);
    text-decoration: gold;
    padding: 8px 16px;
    background-color:#FF7C24;
    border: 1px solid #ffffff;
    border-radius: 6px;
    transition: background-color 0.3s;
}


.navbar .menu ul li a:hover {
    background-color: #cf590a;
    border-radius: 4px;
}

.navbar .title {
    text-align: left;
    flex-grow: 2;
}

.navbar .title h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.navbar .user-info {
    display: flex;
    align-items: center;
}

.navbar .user-info span {
    margin-right: 15px;
    font-weight: bold;
}

.container {
    max-width: 500px;
    margin: 80px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #17b84c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button:hover {
    background-color: #337738;
}

.message {
    display: none;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    margin-top: 20px;
    display: none;
    text-align: center;
    font-size: 16px;
    color: #FF7C24;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre le spinner et le texte */
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #a1653d;
    border-radius: 50%;
    border-top-color: #FF7C24;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    box-sizing: border-box;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace de 10px entre les éléments */
}

.btn {
    padding: 10px 15px; /* Espacement intérieur des boutons */
    text-decoration: none; /* Supprimer la décoration de lien */
    border: 1px solid #ccc; /* Bordure légère pour les boutons */
    border-radius: 5px; /* Coins arrondis */
    background-color: #ff0000; /* Couleur de fond par défaut */
    color: #ffffff; /* Couleur du texte par défaut */
}

.btn:hover {
    background-color: #a11d1d; /* Changement de couleur au survol */
}

.btn-logs {
    background-color: green; /* Couleur de fond verte pour le bouton "Logs" */
    color: white; /* Couleur du texte en blanc */
}

.btn-logs:hover {
    background-color: #317034; /* Changement de couleur au survol */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

input[type="text"],
input[type="field"] {
    width: 100%;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}
.field
 {
    width: 100%;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.input-field {
    width: 100%;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #007bff;
    outline: none;
}

.navbar .menu ul li a.active {
    background-color: #fff;
    color: #FF7C24;
    border-radius: 4px;
}
/* Styles pour améliorer le visuel des logs */
.log-item {
    background-color: #f9f9f9;
    border-left: 5px solid #36e413;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.log-item:nth-child(even) {
    background-color: #e9e9e9;
}

.log-item:hover {
    background-color: #e1f5e1;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    background-color: #FF7c24;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.search-button:hover {
    background-color: #b35100;
}
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white; /* Fond blanc */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    display: none;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.product-item {
    margin-bottom: 10px;
}

.product-item label {
    margin-left: 10px;
}

.confirmation {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.btn-confirm {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-confirm:hover, .btn-cancel:hover {
    opacity: 0.8;
}
.flashes {
    list-style-type: none;
    padding: 0;
}

.flashes li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.file-list {
    list-style-type: none;
    padding: 0;
}

.file-list li {
    margin-bottom: 10px;
}

.file-list a {
    color: #007bff;
    text-decoration: none;
}

.file-list a:hover {
    text-decoration: underline;
}

.flashes {
    list-style-type: none;
    padding: 0;
}

.flashes li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Style for the superuser mode alert bar */
.superuser-mode-alert {
    background-color: #F04D4D; /* Red background for warning */
    color: #FFF; /* White text for contrast */
    padding: 10px 20px; /* Padding around the text */
    text-align: center; /* Center the text */
    font-weight: bold; /* Bold text to emphasize the message */
    position: absolute; /* Position the element absolutely */
    top: 0; /* Top position to make it the topmost element */
    left: 0; /* Left position to span the entire width */
    width: 100%; /* Full width */
    z-index: 1010; /* Ensure it appears on top of other elements */
  }
  
  .superuser-mode-alert span {
    display: inline-block; /* Make the span an inline block for better positioning */
    max-width: 800px; /* Limit the width to prevent it from stretching too far */
    margin: 0 auto; /* Center the span horizontally */
  }
  .superuser-mode-alert {
    /* ... existing styles ... */
    transition: all 0.5s ease; /* Add transition for smooth animation */
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.file-list {
    list-style-type: none;
    padding: 0;
}

.file-list li {
    margin-bottom: 10px;
}

.file-list a {
    color: #007bff;
    text-decoration: none;
}

.file-list a:hover {
    text-decoration: underline;
}

.flashes {
    list-style-type: none;
    padding: 0;
}

.flashes li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.BETA {

    color: #ffffff;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.superuser_mode
{
    
    color: #ffffff;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none; /* Initialement caché */
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Styles pour l'indicateur de chargement */

.loading-container {
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* Ajout d'un léger fond blanc transparent */
    z-index: 9999;
}

.loading {
    text-align: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #15ff00;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    background: none; /* Enlever le fond */
}

.product-info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Centre l'image horizontalement */
}