/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    text-align: left;
    margin-left: 10px;
}

input[type="text"],
input[type="password"],
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

form.inline {
    display: inline-block;
}

form.inline button {
    padding: 5px 10px;
    margin-right: 5px;
}

#messagesContainer {
    margin-top: 20px;
    text-align: left;
}

.message {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.message strong {
    display: block;
    margin-bottom: 5px;
}

.message p {
    margin: 0;
}

.add-message-button {
    display: block; /* 使其成为块级元素 */
    width: auto;
    padding: 10px 20px; /* 内边距 */
    margin: 10px 0; /* 外边距 */
    background-color: #4CAF50; /* 背景颜色 */
    color: white; /* 文字颜色 */
    text-align: center; /* 文字居中 */
    text-decoration: none; /* 去除下划线 */
    font-size: 16px; /* 字体大小 */
    border-radius: 5px; /* 圆角边框 */
    transition: background-color 0.3s; /* 过渡效果 */
}

.add-message-button:hover {
    background-color: #45a049; /* 鼠标悬浮时的背景颜色 */
}

#messagesContainer {
    margin-top: 20px; /* 与按钮保持一定距离 */
}


