/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@400;700&display=swap');

body {
    font-family: 'Signika', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #000;
    color: #fff;
    padding: 20px;
    padding-top: 50px;
    position: fixed;
    height: 100%;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-logo {
    width: 180px;
    margin-bottom: 40px;
    margin-top: 60px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    margin-bottom: 15px;
    text-align: center;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background-color: #F4C340;
}

/* Content Styles */
.content {
    margin-left: 270px;
    padding: 20px 50px;
    flex: 1;
}

.content h1 {
    color: #347758;
    margin-bottom: 20px;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content table th, .content table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.content table th {
    background-color: #347758;
    color: #fff;
}

.content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content table tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.content form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content form input, .content form select, .content form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.content form button {
    padding: 10px;
    background-color: #347758;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.content form button:hover {
    background-color: #2c5f47;
}

.ticket-details {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.ticket-details p {
    margin: 10px 0;
    font-size: 16px;
}

.comments {
    margin-top: 20px;
}

.comment {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment p {
    margin: 0;
    font-size: 16px;
}

.comment small {
    display: block;
    color: #999;
    margin-top: 5px;
    font-size: 14px;
}

/* Footer Styles */
footer {
    color: #333;
    text-align: left;
    padding: 10px;
    margin-left: 310px;
    margin-top: auto;
}

/* Login Container Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #fff;
}

.login-container img {
    width: 150px;
    margin-bottom: 20px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    width: 300px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.login-container input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.login-container button {
    padding: 10px;
    background-color: #347758;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container button:hover {
    background-color: #2c5f47;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 16px;
}

/* Ticket Status Colors */
.status-nouveau {
    color: #fff;
    background-color: #4CAF50;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: auto;
}

.status-encours {
    color: #fff;
    background-color: #347758;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: auto;
}

.status-resolu {
    color: #fff;
    background-color: #F4C340;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: auto;
}

.status-ferme {
    color: #fff;
    background-color: #f44336;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: auto;
}

/* Filters Styles */
.filters {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.filters label {
    margin-right: 10px;
    font-size: 16px;
}

.filters select, .filters input {
    margin-right: 20px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Ticket Header Styles */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ticket-header button {
    padding: 10px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ticket-header button:hover {
    background-color: #d32f2f;
}

/* Logout Button Styles */
.logout-form {
    margin-top: 300px; /* Ajoute un margin-top de 300px au-dessus du bouton de déconnexion */
}

.logout-button {
    padding: 10px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.logout-button:hover {
    background-color: #d32f2f;
}
