* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.page-container {
    background-color: #f2f2f2;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 8%;
    background: linear-gradient(to right, #f2f2f2 60%, #333 40%);
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.cta-button {
    background-color: #009fe3;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.cta-button:hover {
    background-color: #0086c0;
}

.hero-image {
    max-width: 45%;
    order: 1;
    padding: 10px;
    transition: all 0.3s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.hero-image:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.title-with-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-with-logo h1 {
    margin: 0;
    font-size: 3rem;
}

.kyocera-logo,
.prefet-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.title-with-logo h1:nth-child(3) {
    margin: 0 20px;
    align-self: center;
}

.scroll-indicator {
    background-color: #f2f2f2;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.arrow-container {
    background-color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.arrow-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.arrow-down {
    width: 24px;
    height: 24px;
    fill: #000000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.table-section {
    background-color: #fff;
    padding: 2rem 8%;
    min-height: 100vh;
    margin-top: 10vh;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    padding: 0 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    white-space: nowrap;
}

th:last-child {
    text-align: center;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

/* Animation pour le scroll smooth */
html {
    scroll-behavior: smooth;
}

.table-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
}

.table-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
}

.filter-container {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sort-select {
    padding: 8px 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    min-width: 200px;
}

.sort-select:hover {
    border-color: #009fe3;
}

.sort-select:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 5px rgba(0, 159, 227, 0.3);
}

.link-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    fill: currentColor;
    cursor: pointer;
    transition: transform 0.2s;
}

.printer-link:hover .link-icon {
    transform: scale(1.2);
}

.printer-link {
    text-decoration: none;
    color: #0066cc;
}

.ip-button {
    width: 50%;
    padding: 8px 16px;
    background-color: #009fe3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.ip-button:hover {
    background-color: #0086c0;
}

.ip-button:active {
    transform: scale(0.98);
}

.admin-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #333333;
}

.admin-link {
    text-decoration: none;
    display: block;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333333;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand h1 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-item.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: bold;
}

/* Ajustement du contenu principal pour la navbar fixe */
.main-content {
    padding: 2rem;
    margin-top: 80px;
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a237e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #0086c0;
    transform: translateY(-3px);
}

.arrow-up {
    display: inline-block;
    font-style: normal;
}

/***********************************************\
            Thème Sombre
\***********************************************/
body.dark-mode {
    background-color: #333333;
    color: #ffffff;
}

/* Styles pour les tableaux en mode sombre */
body.dark-mode .admin-table,
body.dark-mode .admin-table th,
body.dark-mode .admin-table td {
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .admin-table th {
    background-color: #000000;
    color: #ffffff;
}

body.dark-mode .admin-table tr:nth-child(even) td {
    background-color: #1a1a1a;
}

body.dark-mode .admin-table tr:nth-child(odd) td {
    background-color: #333333;
}

/* Styles pour les formulaires en mode sombre */
body.dark-mode .admin-form {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #333333;
    color: #ffffff;
    border-color: #444;
}

body.dark-mode label {
    color: #ffffff;
}

/* Styles pour les conteneurs en mode sombre */
body.dark-mode .admin-container,
body.dark-mode .login-box,
body.dark-mode .printer-form-section,
body.dark-mode .printers-list-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Styles pour la barre de recherche en mode sombre */
body.dark-mode .search-bar input {
    background-color: #333333;
    color: #ffffff;
    border-color: #444;
}

/* Styles pour les sections en mode sombre */
body.dark-mode section {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Styles pour les cartes et conteneurs en mode sombre */
body.dark-mode .card,
body.dark-mode .container {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #444;
}

/* Styles pour les titres en mode sombre */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

/* Styles pour les liens en mode sombre */
body.dark-mode a {
    color: #009fe3;
}

/* Bouton de thème */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #009fe3;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: #0086c0;
    transform: translateY(-3px);
}

.theme-icon {
    transition: transform 0.5s;
}

body.dark-mode .theme-icon {
    transform: rotate(360deg);
}

/* Modification des boutons IP en mode sombre */
body.dark-mode .ip-button {
    background-color: #FF0000;  /* Rouge Kyocera */
    color: white;
}

body.dark-mode .ip-button:hover {
    background-color: #CC0000;  /* Rouge plus foncé au survol */
}

/* Modification des boutons latéraux en mode sombre */
body.dark-mode .theme-toggle,
body.dark-mode .scroll-to-top {
    background-color: #FF0000;  /* Rouge Kyocera */
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .scroll-to-top:hover {
    background-color: #CC0000;  /* Rouge plus foncé au survol */
}

/* Modification du tableau en mode sombre */
body.dark-mode table {
    background-color: #1a1a1a;
}

body.dark-mode th {
    background-color: #2c2c2c;
    color: white;
}

body.dark-mode td {
    color: white;
}

body.dark-mode tbody tr:nth-child(even) {
    background-color: #2c2c2c;
}

body.dark-mode tbody tr:nth-child(odd) {
    background-color: #1a1a1a;
}

body.dark-mode tbody tr:hover {
    background-color: #333333;
}

/* Modification du hero conteneur en mode sombre */
body.dark-mode .hero-section {
    background: linear-gradient(to right, #1a1a1a 60%, #333 40%);
}

body.dark-mode .page-container {
    background-color: #1a1a1a;
}

body.dark-mode .scroll-indicator {
    background-color: #1a1a1a;
}

body.dark-mode .arrow-container {
    background-color: #2c2c2c;
}

body.dark-mode .arrow-down {
    fill: #ffffff;
}

/* Modification des éléments du hero en mode sombre */
body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: #ffffff;
}

body.dark-mode .admin-button {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode .admin-button:hover {
    background-color: #e6e6e6;
}

body.dark-mode .cta-button {
    background-color: #FF0000;  /* Rouge Kyocera */
    color: white;
}

body.dark-mode .cta-button:hover {
    background-color: #CC0000;  /* Rouge plus foncé au survol */
}

/* Modification des liens de la navbar en mode sombre */
body.dark-mode .nav-item {
    color: #ffffff;
}

body.dark-mode .nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark-mode .nav-item.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* Ajustement de la largeur du conteneur admin */
.admin-container {
    width: 95%; /* Au lieu de la valeur par défaut */
    max-width: 1400px; /* Augmentation de la largeur maximale */
    margin: 0 auto;
    padding: 20px;
}

/* Style du bouton retour en mode sombre */
body.dark-mode .return-btn {
    background-color: #FF0000; /* Rouge Kyocera */
    color: #ffffff;
}

body.dark-mode .return-btn:hover {
    background-color: #CC0000; /* Rouge plus foncé au survol */
}

/* Ajustement de la largeur du tableau pour éviter le débordement */
.printers-table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 1000px; /* Assure une largeur minimale pour le contenu */
}

/* Ajustement de la dernière colonne (Actions) */
.admin-table td:last-child {
    white-space: nowrap;
    min-width: 160px; /* Assure un espace suffisant pour les boutons */
}

/* Styles pour les formulaires en mode sombre */
body.dark-mode .admin-form {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #333333;
    color: #ffffff;
    border-color: #444;
}

body.dark-mode label {
    color: #ffffff;
}

/* Styles pour les boutons en mode sombre */
body.dark-mode .admin-btn {
    background-color: #FF0000; /* Rouge Kyocera */
    color: #ffffff;
}

body.dark-mode .admin-btn:hover {
    background-color: #CC0000;
}

body.dark-mode .admin-btn.save-btn {
    background-color: #4CAF50; /* Vert */
    color: #ffffff;
}

body.dark-mode .admin-btn.save-btn:hover {
    background-color: #45a049; /* Vert plus foncé au survol */
}

body.dark-mode .action-btn.edit-btn {
    background-color: #009fe3; /* Bleu */
    color: #ffffff;
}

body.dark-mode .action-btn.edit-btn:hover {
    background-color: #0086c0; /* Bleu plus foncé au survol */
}

body.dark-mode .action-btn.delete-btn {
    background-color: #FF0000; /* Rouge Kyocera */
    color: #ffffff;
}

body.dark-mode .action-btn.delete-btn:hover {
    background-color: #CC0000; /* Rouge plus foncé au survol */
}

/* Styles pour le tableau en mode sombre */
body.dark-mode .admin-table {
    background-color: #1a1a1a;
    border-color: #444;
}

body.dark-mode .admin-table th {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode .admin-table td {
    color: #ffffff;
    border-color: #444;
}

body.dark-mode .admin-table tr:nth-child(even) {
    background-color: #2c2c2c;
}

body.dark-mode .admin-table tr:nth-child(odd) {
    background-color: #1a1a1a;
}

body.dark-mode .admin-table tr:hover {
    background-color: #333333;
}

/* Style du bouton réinitialiser en mode sombre */
body.dark-mode .admin-btn.reset-btn {
    background-color: #4a4a4a;
    color: white;
}

body.dark-mode .admin-btn.reset-btn:hover {
    background-color: #333333;
}