/* Style général de la page Admin */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

header {
    background-color: #333;
    color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

header nav a:hover,
header nav a.active {
    color: #4CAF50;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard {
    width: 90%;
    max-width: 800px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.dashboard h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.dashboard p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.messages-container {
    margin-top: 20px;
}

.messages-container h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.messages-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    background-color: #f7f7f7;
}

.messages-box p {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
    word-wrap: break-word;
}

.message-input {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.message-input input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.message-input input:focus {
    border-color: #4CAF50;
}

.message-input button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-input button:hover {
    background-color: #45a049;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-top: auto;
}

