/* Styles globaux */
.navbar { 
    background-color: rgb(50, 52, 65);
    font-size: 12px;
    font-family: Verdana,sans-serif;
}
.navbar a {
  color: white !important; /* Force la couleur blanche */
  text-decoration: none !important; /* Supprime le soulignement */
}

/*.container-fluid {
    margin-bottom: 10px;
    color: #5b6d82;
}*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 60px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
}

/* Conteneurs principaux */
.container {
    overflow-y: visible;
    border-radius: 20px;
    padding-bottom: 50px;
    margin-bottom: 40px;
    margin-top: auto;
    
}

/* Chat */
#chatContainer {
    height:90%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
    border-radius: 20px;
    scroll-behavior: smooth;
    margin-bottom: 25px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
/*#chatContainer::-webkit-scrollbar {
    width: 8px;
}

#chatContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#chatContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Messages utilisateur */
.user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 10px 0;
    max-width: 80%;
    margin-left: auto;
}

.user-message .message-content {
    background-color: #4d6897;
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
    word-break: break-word;
}

.user-message img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 5px;
    z-index: 1;
    border: 1px solid #454b5b;
    padding: 2px;
}

/* Messages du chatbot */
.message {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.message img {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 10px;
    border: 1px solid #454b5b;
    padding: 2px;
}

.message .text {
    margin-bottom: 10px;
    margin-top: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-break: break-word;
}


/* Boutons */
.btn.chat-button {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    margin: 5px;
    background-color: #374444;
    color: rgb(232, 235, 238);
    border: none;
    box-sizing: border-box;
}

/* Tableaux */
.table {
    border-color: #000;
    border: 2px;
}

.tableau-poubelles {
    overflow-x: auto;
}

.tableau-poubelles table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tableau-poubelles th,
.tableau-poubelles td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.tableau-poubelles th:not(:last-child),
.tableau-poubelles td:not(:last-child) {
    border-right: 2px solid #474040;
}

.table {
    border-color: #000;
    border: 1px;
    padding: 8px;
    text-align: left;
}

#incidentsTable {
    font-size: 14px;
    width: 100%;
    border: 1px;
}

#incidentsTable th,
#incidentsTable td {
    border: 1px solid rgb(17, 84, 135);
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

#incidentsTable th {
    background-color: #f2f2f2;
}

#incidentsTable tr:nth-child(even) {
    background-color: #5b6d82;
}

#incidentsTable tr:nth-child(odd) {
    background-color: #ffffff;
}

#incidentsTable tr.greyed-out:nth-child(even) {
    background-color: #b0aeae;
}

.tr-validated {
    background-color: #99b7ce;
    color: #999;
}

/* Pied de page */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background-color: black;
    color: white;
    font-family: Verdana,sans-serif;
    text-align: right;
}

/* Formulaires */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
input::placeholder,
textarea::placeholder {
    color: #b8c5d6 !important; /* Force la couleur */
    font-size: 11px !important; /* Force la taille */
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    font-weight: normal;
    display: inline;
    color: #363d47;
}

button {
    background-color: #363d47;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

.btn.chat-button:hover {
    background-color: #4d6897;
    color: white;
}

/* Responsive */
@media (max-width: 800px) {

    body {
        padding-bottom: 30px;
        font-size: 10px;
    }

    .table-responsive {
        overflow-x: auto;
        width: 95%;
    }

    table {
        width: 100%;
        table-layout: auto;
        border-collapse: collapse;
    }

    .navbar {
        padding: 0.5rem;
    }


    .footer {
        padding: 0.7rem;
        font-size: 0.6rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .btn.chat-button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .chatContainer .container .content {
        width: 90%;
        margin: 0;
        padding-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }

    .user-message {
        max-width: 80%;
    }

    #incidentsTable th,
    #incidentsTable td {
        padding: 4px;
        font-size: 0.7rem;
        white-space: normal;
        word-break: break-word;
        min-width: 60px;
    }

    @media (max-width: 600px) {
        #incidentsTable th,
        #incidentsTable td {
            font-size: 0.6rem;
        }
    }
}
