* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

/* 确保在Vue初始化前，登录和非登录状态的元素都被隐藏 */
#app:not(.logged-in) .main-container {
  display: none;
}

#app.logged-in .auth-container {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f7;
}

/* 登录页面背景 */
#app:not(.logged-in) {
  background-image: url('./resouce/backimg-grey.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

/* 登录后背景 */
#app.logged-in {
  background-image: none;
  background-color: #f5f5f7;
}

.auth-container {
  width: 380px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 11px 6px 13px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 2px solid #fcdd2b;
}

.auth-form h2 {
  margin-bottom: 20px;
  color: #888;
}

.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.login-tabs button {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
}

.login-tabs button.active {
  border-bottom-color: #fcdd2b;
  color: #fcdd2b;
  font-weight: bold;
}

.form-group {
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.code-group {
  display: flex;
  gap: 10px;
}

.code-group .code-input {
  flex: 1;
}

.code-group .btn-code {
  width: auto;
  padding: 0 15px;
  white-space: nowrap;
}

.form-actions {
  margin: 15px 0;
}

.form-actions .btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #fcdd2b;
  color: rgb(75, 74, 74);
  border: none;
  border-radius: 33px;
  cursor: pointer;
  font-size: 16px;
}

.form-actions .btn-primary:hover {
  background-color: rgb(243, 172, 18);
}

.form-links {
  margin-top: 15px;
  font-size: 14px;
}

.form-links a {
  color: #2196F3;
  text-decoration: none;
}

.form-links .divider {
  margin: 0 10px;
  color: #ddd;
}

.btn-secondary {
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background-color: #1976D2;
}

.btn-secondary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.auth-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-form button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #fcdd2b;
  color: rgb(75, 74, 74);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.auth-form button:hover {
  background-color: #f3ac12;
}

.auth-form p {
  margin-top: 15px;
}

.auth-form a {
  color: #888;
  text-decoration: none;
}

.code-input {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.code-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.send-code-btn {
  width: auto;
  padding: 10px 15px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
  background-color: #1976D2;
}

.send-code-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  height: 100%;
  padding: 20px;
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

header h1 {
  color: #919f92;
  font-size: 24px;
}

.header-right {
  position: relative;
}

.settings-btn {
  padding: 8px 16px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 150px;
}

.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.category-settings-modal {
  max-height: 70vh;
  overflow-y: auto;
}

.category-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.category-name-bold {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.btn-delete-category {
  width: 24px;
  height: 24px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-delete-category:hover {
  background-color: #d32f2f;
}

.btn-delete-subcategory {
  width: 20px;
  height: 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-delete-subcategory:hover {
  background-color: #d32f2f;
}

.add-subcategory-inline {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.add-subcategory-inline input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.add-subcategory-inline button {
  padding: 6px 12px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

nav {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

nav button {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-bottom: 3px solid transparent;
}

nav button.active {
  border-bottom-color: #4CAF50;
  color: #4CAF50;
  font-weight: bold;
}

.content {
  flex: 1;
  /* background-color: white; */
  padding: 20px;
  border-radius: 8px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

.empty-state button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.single-child {
  display: flex;
  flex-direction: column;
  /* height: 90%; */
  width: 600px;
  border: 3px solid #fcdd2b;
  border-radius: 22px;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: #f9f8e2;

}

.child-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.child-header h2 {
  margin: 0;
  color: #5f5f5d;
}

.history-btn {
  padding: 6px 16px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.history-btn:hover {
  background-color: #1976D2;
}

.single-child h2 {
  font-size: 32px;
  margin-bottom: 0px;
  color: #393a39;
  text-align: center;
}

.timer-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 27px;
  margin-bottom: 10px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fcdd2b;
}

.new-task-btn {
  padding: 4px 20px;
  background-color: #ffffff;
  color: rgb(57, 58, 57);
  border: 2px solid rgb(161 157 157);
  border-radius: 20px;
  cursor: pointer;
  font-size: 20px;
  /* width: 110px; */
}

.new-task-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}



.timer-display {
  font-size: 64px;
  font-weight: bold;
  margin: 0px 0;
  color: #333;
  text-align: center;
}

.timer-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0px;
}

.timer-buttons button {
  padding: 9px 33px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

.timer-buttons button:nth-child(1) {
  background-color: #17cb60;
  color: white;
}

.timer-buttons button:nth-child(2) {
  background-color: #ef6906;
  color: white;
}

.timer-buttons button:nth-child(3) {
  background-color: #2196F3;
  color: white;
}

.timer-buttons button:nth-child(4) {
  background-color: #f44336;
  color: white;
}

.dual-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dual-child .child-panels {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  justify-content: center;
}

.child-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 0;
  width: 600px;
  border: 3px solid #fcdd2b;
  border-radius: 22px;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: #f9f8e2;
}

.child-panel h2 {
  margin-bottom: 0px;
  color: #474646;
  flex-shrink: 0;
  font-size: 28px;
}

.today-records {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.today-records h3 {
  margin-bottom: 0px;
  color: #262726;
  text-align: left;
}

.records-list {
  margin-top: 10px;
  height: 350px;
  overflow-y: auto;
  border: 1px solid #a5a4a4;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.record-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.record-item:last-child {
  border-bottom: none;
}

.record-item span {
  flex: 1;
  min-width: 100px;
}

.record-child {
  font-weight: bold;
  color: #4CAF50;
}

.record-category {
  background-color: #e9e9e9be;
  padding: 1px 2px;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-time {
  color: #666;
  font-size: 14px;
}

.record-duration {
  font-weight: bold;
  color: #858484;
}

.record-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.edit-btn {
  /* background-color: #eceff0; */
  color: white;
}

.edit-btn:hover {
  background-color: #d2d4d2;
}

.delete-btn {
  /* background-color: #eceff0 !important; */
  color: white !important;
}

.today-total {
  display: flex;
  background-color: #e8f5e8;
  border-radius: 8px;
  margin-top: auto;
  overflow: hidden;
}

.total-left {
  position: relative;
  padding: 15px 20px;
  flex: 1;
  background-color: #fcdd2b;
  display: flex;
  align-items: center;
}

.total-left h3 {
  color: #414141;
  font-size: 18px;
  margin: 0;
}

/* 左侧的斜切伪元素 */
.total-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background-color: #e8f5e8;
  transform: skewX(-15deg);
  transform-origin: top right;
  z-index: 1;
}

.total-right {
  position: relative;
  padding: 14px 13px;
  background-color: #c8cbcd;
  color: rgb(65, 64, 64);
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: -10px;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* 右侧的斜切伪元素 */
.total-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background-color: #c8cbcd;
  transform: skewX(-15deg);
  transform-origin: top left;
}

.total-right:hover {
  background-color: #d8dadb;
}

.total-right:hover::before {
  background-color: #d8dadb;
}

.date-selector {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.date-selector input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.date-selector button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.settings-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.settings-section h3 {
  margin-bottom: 15px;
  color: #4CAF50;
}

.children-list,
.categories-list {
  margin-bottom: 20px;
}

.child-item,
.category-item {
  padding: 10px;
  /* background-color: #f9f9f9; */
  border-radius: 4px;
  margin-bottom: 10px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 16px;
}

.category-info {
  flex: 1;
}

.subcategories {
  margin-top: 10px;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f5f7;
  border-radius: 12px;
  margin-bottom: 0;
  min-width: 120px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subcategory-item button {
  padding: 4px 10px;
  background-color: #ff3b30;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.subcategory-item button:hover {
  background-color: #e0352b;
}

.category-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.category-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.category-actions button:first-child {
  background-color: #2196F3;
  color: white;
}

.category-actions button:last-child {
  background-color: #f44336;
  color: white;
}

.add-child,
.add-category {
  display: flex;
  gap: 10px;
}

.add-child input,
.add-category input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.add-child button,
.add-category button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 弹窗样式 - 苹果风格设计 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
  backdrop-filter: blur(20px);
}

.modal-content h3 {
  margin-bottom: 0;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* 弹窗动画效果 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-categories {
  margin-bottom: 24px;
}

.modal-category {
  margin-bottom: 16px;
  padding: 12px 12px;
  border: 1px solid #a5a4a4;
  border-radius: 8px;
}

.modal-category .category-item {
  padding: 0px 17px 10px 17px;
  /* background-color: #f0f0f0; */
  /* border-radius: 12px; */
  margin-bottom: 8px;
  font-weight: 500;
  color: #666;
  cursor: default;
  border-bottom: 1px solid #e6b517;
  font-size: 16px;
}

/* .modal-category .category-item:hover {
  background-color: #f0f0f0;
} */

.modal-subcategories {
  margin-left: 24px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* background-color: #fff; */
}

.modal-subcategories .subcategory-item {
  padding: 9px 11px;
  background-color: #fcdd2bb0;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  justify-content: center;
}

.modal-subcategories .subcategory-item:hover {
  background-color: #e8e8ed;
}

.modal-close {
  padding: 12px 24px;
  background-color: #f5f5f7;
  color: #1d1d1f;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #e8e8ed;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin-bottom: 0;
}

.modal-close-x {
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: #f5f5f7;
  color: #6e6e73;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.modal-close-x:hover {
  background-color: #e8e8ed;
  color: #1d1d1f;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.modal-buttons button:first-child {
  background-color: #007aff;
  color: white;
}

.modal-buttons button:first-child:hover {
  background-color: #0062cc;
}

.modal-buttons button:last-child {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.modal-buttons button:last-child:hover {
  background-color: #e8e8ed;
}

/* 编辑表单样式 */
.edit-form {
  margin-top: 24px;
}

.edit-form .form-group {
  margin-bottom: 24px;
}

.edit-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1d1d1f;
  font-size: 14px;
}

.edit-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  font-size: 16px;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

.edit-form input:focus {
  outline: none;
  border-color: #007aff;
  background-color: white;
}

.duration-input {
  display: flex;
  align-items: center;
  gap: 16px;
}

.duration-input input {
  width: 90px;
  padding: 12px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

.duration-input input:focus {
  outline: none;
  border-color: #007aff;
  background-color: white;
}

.duration-input span {
  font-weight: 500;
  color: #6e6e73;
  font-size: 14px;
}

.edit-form input:disabled {
  background-color: #f5f5f7;
  color: #8e8e93;
  border-color: #e5e5ea;
}

/* 历史记录弹窗样式 */
.history-modal {
  max-width: 640px;
}

.history-content {
  margin-top: 24px;
}

.month-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.month-selector input[type="month"] {
  padding: 12px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  font-size: 16px;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

.month-selector input[type="month"]:focus {
  outline: none;
  border-color: #007aff;
  background-color: white;
}

.month-selector button {
  padding: 12px 24px;
  background-color: #fcdd28;
  color: rgb(78, 77, 77);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.month-selector button:hover {
  background-color: #f7eaa2;
}

.days-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.day-item {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background-color: #f5f5f7;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.day-item:hover {
  background-color: #e8e8ed;
}

.day-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.day-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.day-date {
  font-weight: 500;
  color: #1d1d1f;
  font-size: 16px;
}

.day-duration {
  color: #6e6e73;
  font-size: 14px;
}

.day-arrow {
  color: #8e8e93;
  font-size: 14px;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.day-arrow.expanded {
  transform: rotate(180deg);
}

.day-details {
  margin-top: 12px;
  padding: 16px;
  background-color: #f0f0f0;
  border-radius: 8px;
  border: 1px solid #e5e5ea;
  width: 100%;
}

.day-details h4 {
  margin: 0 0 16px 0;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 600;
}

.day-details .record-item {
  padding: 14px 0;
  border-bottom: 1px solid #e5e5ea;
}

.day-details .record-item:last-child {
  border-bottom: none;
}

/* 确认对话框样式 */
.confirm-modal {
  max-width: 400px;
  text-align: center;
  padding: 32px 24px;
}

.confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-modal h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 24px;
  line-height: 1.4;
}

.confirm-btn {
  background-color: #ff3b30 !important;
  color: white !important;
}

.confirm-btn:hover {
  background-color: #e0352b !important;
}

.cancel-btn {
  background-color: #f5f5f7 !important;
  color: #1d1d1f !important;
}

.cancel-btn:hover {
  background-color: #e8e8ed !important;
}

@media (max-width: 1400px) {
  .dual-child .child-panels {
    flex-direction: column;
  }

  .record-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .record-actions {
    align-self: flex-end;
  }

  .date-selector {
    flex-direction: column;
  }

  .add-child,
  .add-category {
    flex-direction: column;
  }

  .category-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-actions {
    align-self: flex-end;
  }

  .child-header {
    flex-direction: column;
    gap: 5px;
  }

  .today-total {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .total-left {
    padding: 10px 15px;
  }

  .total-left::after {
    display: none;
  }

  .total-right {
    padding: 10px 15px;
    margin-left: 0;
    justify-content: center;
  }

  .total-right::before {
    display: none;
  }

  .history-summary {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .confirm-modal {
    max-width: 90%;
    padding: 24px 20px;
  }

  .confirm-icon {
    font-size: 40px;
  }

  .confirm-modal h3 {
    font-size: 16px;
  }

  .confirm-message {
    font-size: 13px;
  }
}