body {
    margin: 0;
    font-family: sans-serif;
}

.navbar {
    background-color: white;
    padding: 15px;
    color: black;
    font-size: 18px;
    align-items: center;
    display: flex;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.page-container {
    padding: 20px 15px;
}

.record-date {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin: 25px 0 10px;
    border-left: 3px solid #ffa500;
    padding-left: 10px;
}

.record-thumb {
    width: 120px;
    height: 166px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.record-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333333;
}

.record-time {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* 限制最多三行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-delete {
    color: #ff6600;
    font-size: 18px;
    padding-left: 10px;
}

.clear-btn {
    width: 90%;
    margin: 30px auto 10px;
    display: block;
    background-color: #ff8000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}


.back-button {
    margin-right: 10px;
    cursor: pointer;
    color: #555;
}
.clear-btn {
    display: block;
    width: 90%;
    margin: 30px auto;
    padding: 12px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.clear-btn:hover {
    background-color: #ff2c2f;
}

.edit-button{
    cursor: pointer; 
    padding-right: 16px;
    color: #666666;
}

.record-item {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0px 10px;
    padding: 10px;
    border-radius: 8px;
    /* margin-bottom: 2px; */

}

.record-select {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    display: none;
}

.editing .record-select {
    display: flex;
}

/* 選中狀態 */
.record-select.selected {
    background-color: orange;
    border-color: orange;
}

/* 勾勾圖示 */
.record-select.selected::after {
    content: '✔';
    color: white;
    font-size: 14px;
    line-height: 1;
}

.action-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    background-color: white;
}

/* 左側 group（勾選框 + 全選） */
.action-left {
    display: flex;
    align-items: center;
}
    

.action-bar button {
    background-color: transparent;
    color: black;
    padding: 10px 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

.action-bar span {
    font-size: 16px;
}

.action-bar .delete-btn {
    color: red;
}

.history-day-title {
    font-weight: bolder;
    font-size: 16px;
}

/* 確認刪除框 */
.custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog-content {
  background: white;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dialog-message {
  color: black;
  font-size: 16px;
  padding: 24px;
}

.dialog-actions {
  display: flex;
  border-top: 1px solid #ccc;
}

.dialog-actions button {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  font-size: 16px;
  color: #FF8C00;
  cursor: pointer;
  border-right: 1px solid #E1E1E1;
}

.dialog-actions button:last-child {
  border-right: none;
}