/* styles.css */

/* CHATGPT提供的CSS样式开头 */
/* body { */
/* font-family: Arial, sans-serif; */
/* background-color: #f2f2f2; */
/* } */

body {
  font-family: "Microsoft Yahei", Helvetica, arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #333333;
  padding: 30px;
  color: #bfbfbf;
}

p,
blockquote,
ul,
ol,
dl,
li,
table,
pre {
  margin: 15px 0;
  color: #b3e3ff;
}

h1,
h2 {
  color: #b3e3ff;
  text-align: left;
  margin: 10px;
}

form {
  margin: 0 0;
  background-color: #333333;
  color: #add8e6;
  border-radius: 5px;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  height: 60vh;
}

textarea[name="text"] {
  height: 4em;
  resize: none;
  font-size: 1rem;
  padding: 0.5rem;
}

input[type="submit"] {
  background-color: #00649f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

input[type="submit"]:hover {
  background-color: #b3e3ff;
  color: #000;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 3px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f5;
  align-items: left;
  width: 90%;
  word-wrap: break-word;
}

li input[type="checkbox"] {
  margin-right: 10px;
  text-align: left;
}

li span {
  margin-right: auto;
  color: #bfbfbf;
  font-size: 12px;
}

a {
  display: flex;
  justify-content: start;
  align-items: center;
  color: #bfbfbf;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 10px;
  /* background-color: rgba(0,0,0,0.5); */
  border-radius: 4px;
}

a:hover {
}

.title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin: 0; /* 上下边距为0 */
  background-color: #444444; /* 设置底色为深灰色 */
  padding: 10px;
  border-radius: 5px;
  border-left: none; /* 隐藏左边框 */
  border-right: none; /* 隐藏右边框 */
}

.title-container h3 a {
  color: #bfbfbf; /* 设置链接文字颜色为白色 */
  text-decoration: none;
}

.title-container:nth-child(even) {
  background-color: #555555; /* 偶数行背景色为更深的灰色 */
}

.title-container h1 {
  flex-grow: 1;
}

.title-container {
  margin-left: auto;
}

.title-container .todos {
  text-align: left;
  align-items: left;
  margin-left: 0;
}

.message-container {
  display: flex;
  flex-direction: row;
  margin: 5px 0;
  padding: 10px;
  align-items: center;
  /* justify-content: space-between;  Remove this, we're using flex-grow */
  min-height: 18px;
  height: auto;
  padding: 0 10 5 10px;
  border-radius: 5px;
  border-top: 0.5px solid grey;
  border-left: none;
  border-right: none;
  background-color: #444444;
  transition: background-color 0.5s ease;
}

.message-container:hover {
  background-image: linear-gradient(to right, #666, #000);
}

.id-column,
.icon-column {
  flex-basis: 40px; /* Adjust as needed */
  flex-grow: 0; /* Prevents these columns from growing */
  display: flex; /* align icons consistently */
  align-items: center;
  justify-content: center;
  gap: 8px; /* space between icons */
}

.time-column {
  flex-basis: 120px; /* Adjust as needed */
  flex-grow: 0; /* Prevents these columns from growing */
  text-align: center; /* Center text within narrow columns */
}

.title-column {
  flex-grow: 1; /* Takes up remaining space */
  flex-basis: 0; /* Ensures it only takes up available space */
  word-break: break-word;
}
.icon {
  display: inline-block;
  width: 20px; /* enforce visible size for both <img> and inline <svg> */
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  vertical-align: middle;
  flex: 0 0 20px;
}

/* Ensure svg icons used elsewhere get sensible default sizing */
.svg-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon-button {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: #bfbfbf;
  border-radius: 4px;
}

.icon-button:hover,
.icon-column a:hover {
  background-color: rgba(255, 255, 255, 0.03);
  opacity: 0.95;
}

.icon-column a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
}

.icon-button:focus,
.icon-column a:focus {
  box-shadow: 0 0 0 3px rgba(0, 100, 160, 0.12);
}

.checkbox-text {
  display: inline-block;
  margin: 0px;
  font-size: 16px;
  color: #d9d9d9;
  text-align: left;
  align-items: left;
  white-space: pre-wrap;
}

.texttime {
  display: inline-block;
  margin-left: 15px;
  margin-right: 15px;
  font-size: 12px;
  color: grey;
}

.file-time {
  margin-left: 20px;
}

/* CHATGPT提供的CSS样式结尾 */
.MainPartContainer {
  width: 80%;
  min-width: 600px;
  max-width: 900px;
  margin: 0 auto;
}
.entriesContainer {
  margin-top: 10px;
  padding: 10px;
}
.functionbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  flex-wrap: wrap;
}
.textInputContainer {
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.inputbox {
  padding: 0;
  border: 2px solid #333333;
  border-radius: 2px;
}
.submitTextButton {
  width: 100%;
  height: 30px;
  border: none;
  background-color: #00649f;
  color: #fff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.submitTextButton:hover {
  background-color: #b3e3ff;
  color: #000;
}
.InputTextArea {
  resize: vertical;
  flex-grow: 1;
  border: none;
  border-radius: 0;
  margin: 0;
}
.textInputContainerSub {
  display: flex;
  flex-direction: column;
  padding: 0;
}
