body {
    font-family: "Noto Sans SC";
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container {
    margin-bottom: 30px;
}

#message-input {
    font-family: "Noto Sans SC";
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    font-size: 16px;
}

#submit-button, #attach-file-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

#submit-button:hover, #attach-file-button:hover {
    background-color: #0056b3;
}

#attach-file-button {
    background-color: #6c757d;
}

#attach-file-button:hover {
    background-color: #5a6268;
}

.message-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative; /* Required for absolute positioning of the copy button */
    padding-bottom: 40px; /* Add padding to the bottom to avoid overlapping with the copy button */
}

.markdown-body code {
    font-family: "Fira Code", "Noto Sans SC" !important;
}

.message-meta {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

.attachment-container {
    margin-bottom: 8px; /* Space between attachment and timestamp */
}

.attachment-link {
    color: #0366d6;
    text-decoration: none;
    margin-right: 8px;
}

.attachment-link:hover {
    text-decoration: underline;
}

.attachment-expiry {
    font-size: 11px;
    color: #d9534f; /* A slightly more prominent color */
    font-weight: 500;
}

.timestamp {
    display: block; /* Ensure timestamp is on its own line */
}

.copy-button {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #5a6268;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.attachment-area {
    margin-top: 10px;
    margin-bottom: 10px;
}

.attachment-info {
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attachment-info button {
    margin-left: 10px;
    font-size: 0.8em;
    padding: 3px 8px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.attachment-info button:hover {
    background-color: #c82333;
}

h1, h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.2em;
    color: #555;
}
