/* 每周回顾模态框增强样式 */

/* 每周回顾模态框整体样式优化 */
#weekly-review-modal {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#weekly-review-modal .modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  background: #fff;
  border: none;
}

/* 模态框标题栏优化 */
#weekly-review-modal .modal-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#weekly-review-modal .modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

/* 顶部关闭按钮样式优化 - 使用与其他模态框一致的样式 */
#weekly-review-modal .modal-header .close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0;
  position: relative;
}

#weekly-review-modal .modal-header .close::before,
#weekly-review-modal .modal-header .close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: #666;
  border-radius: 1px;
  transition: background 0.2s;
}

#weekly-review-modal .modal-header .close::before {
  transform: rotate(45deg);
}

#weekly-review-modal .modal-header .close::after {
  transform: rotate(-45deg);
}

#weekly-review-modal .modal-header .close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

#weekly-review-modal .modal-header .close:hover::before,
#weekly-review-modal .modal-header .close:hover::after {
  background: #333;
}

/* 周导航美化 */
.week-navigation {
  padding: 12px 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to right, rgba(245, 247, 250, 0.5), transparent);
}

.current-week-display {
  font-weight: 600;
  color: #333;
  position: relative;
}

.week-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(76, 201, 240, 0.1);
  color: #4361ee;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
}

.week-nav-btn:hover {
  background: rgba(76, 201, 240, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(76, 201, 240, 0.2);
}

/* 内容区卡片美化 */
.review-section {
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.3, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.3, 0, 0.2, 1);
}

.review-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4361ee, #4cc9f0);
}

/* 按钮区域和按钮样式优化 */
.review-actions {
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.action-btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 16px;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white;
}

.action-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.action-btn.share {
  background: linear-gradient(135deg, #f472b6, #db2777);
  color: white;
}

.action-btn.share:hover {
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

.action-btn.print {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: white;
}

.action-btn.print:hover {
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

/* 自定义滚动条 */
#weekly-review-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#weekly-review-modal .modal-body::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 4px;
}

#weekly-review-modal .modal-body::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

#weekly-review-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* 习惯和目标项美化 */
.habit-item, .goal-item {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
  position: relative;
}

.habit-item:hover, .goal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.habit-header {
  background: linear-gradient(to right, rgba(76, 201, 240, 0.08), rgba(76, 201, 240, 0.03));
}

/* 高优先级目标视觉强化 */
.goal-item[data-priority="high"] {
  border-left: 3px solid #ef476f;
}

.goal-item[data-priority="medium"] {
  border-left: 3px solid #ffd166;
}

.goal-item[data-priority="low"] {
  border-left: 3px solid #06d6a0;
}

/* 改进列表项样式及删除按钮 */
.reflection-list-item {
  border-left: 3px solid transparent;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reflection-list-item:hover {
  border-left-color: #4cc9f0;
  background: white;
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 移除任何多余的关闭按钮 */
.reflection-list-item .close,
.reflection-list-item span.close,
.reflection-list-item div.close {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* 确保删除按钮样式一致 */
.delete-item-btn {
  width: 28px !important;
  height: 28px !important;
  background-color: rgba(255, 95, 87, 0.15) !important;
  color: #ff5f57 !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  transition: all 0.2s ease !important;
  font-family: 'Arial', sans-serif !important;
  font-weight: bold !important;
  line-height: 0.8 !important;
  position: relative !important;
  z-index: 100 !important;
}

.delete-item-btn:hover {
  background-color: rgba(255, 95, 87, 0.25) !important;
  transform: rotate(90deg) !important;
}

/* 改进和挑战项的文本样式 */
.item-text {
  font-size: 0.95rem;
  color: #444;
  flex: 1;
  margin-right: 10px;
  line-height: 1.4;
}

/* Optimize goal item styles for better spacing */
.goal-item {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
  margin-bottom: 18px;
  background-color: white;
}

.goal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Adjust goal content layout */
.goal-content {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
}

/* Adjust goal text style */
.goal-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  line-height: 1.4;
}

/* Style goal actions area */
.goal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 5px;
}

/* Style completion label */
.completion-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.completion-label:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.goal-completion-checkbox {
  margin: 0;
}

.completion-text {
  color: #666;
}

/* Style completed task text */
.goal-completion-checkbox:checked ~ .completion-text {
  color: #06d6a0;
  font-weight: 500;
}

/* Style priority label */
.priority-label {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

/* Style priority selector */
.priority-select {
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: white;
  cursor: pointer;
}

/* Style delete button */
.delete-goal-btn {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 95, 87, 0.1);
  color: #ff5f57;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.delete-goal-btn:hover {
  background-color: rgba(255, 95, 87, 0.2);
  transform: rotate(90deg);
}

/* 移除双X按钮样式，确保只显示单个X */
.habit-item::after, .goal-item::after {
  content: none !important;
}

/* 习惯和目标项右上角X删除按钮，修改为单X样式 */
.habit-item .close, .goal-item .close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 95, 87, 0.1);
  color: #ff5f57;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 5;
  transition: all 0.2s ease;
}

.habit-item .close:hover, .goal-item .close:hover {
  background-color: rgba(255, 95, 87, 0.2);
  transform: rotate(90deg);
}

.habit-item .close::before, .goal-item .close::before {
  content: '×';
  font-size: 16px;
  line-height: 1;
}

/* 确保其他关闭按钮样式不受影响 */
.delete-habit-btn, .delete-goal-btn {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 95, 87, 0.1);
  color: #ff5f57;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.delete-habit-btn:hover, .delete-goal-btn:hover {
  background-color: rgba(255, 95, 87, 0.2);
  transform: rotate(90deg);
}

.delete-habit-btn::after, .delete-goal-btn::after {
  content: none;
}

/* 完全移除所有可能导致额外X按钮的元素 */
.habit-item::before, 
.habit-item::after,
.goal-item::before,
.goal-item::after,
.habit-item > .close,
.goal-item > .close,
.habit-item > span.close,
.goal-item > span.close,
div.habit-item div.close,
div.goal-item div.close {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* 确保删除按钮清晰可见且样式统一 */
.delete-habit-btn,
.delete-goal-btn {
  width: 28px !important;
  height: 28px !important;
  background-color: rgba(255, 95, 87, 0.15) !important;
  color: #ff5f57 !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  transition: all 0.2s ease !important;
  margin-left: auto !important;
  font-family: 'Arial', sans-serif !important;
  font-weight: bold !important;
  line-height: 0.8 !important;
  position: relative !important;
  z-index: 100 !important; /* 确保在最上层 */
}

.delete-habit-btn:hover,
.delete-goal-btn:hover {
  background-color: rgba(255, 95, 87, 0.25) !important;
  transform: rotate(90deg) !important;
}

/* 确保只有一个X符号 */
.delete-habit-btn::before,
.delete-goal-btn::before,
.delete-habit-btn::after,
.delete-goal-btn::after {
  content: none !important;
  display: none !important;
}

/* 设置habit-header正确的布局，防止额外元素出现 */
.habit-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
}

/* 目标项布局修复 */
.goal-content {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: 100% !important;
}

/* 确保所有按钮的伪元素不会生成额外内容 */
.delete-habit-btn::before,
.delete-goal-btn::before,
.delete-item-btn::before,
.delete-habit-btn::after,
.delete-goal-btn::after,
.delete-item-btn::after,
.delete-habit-btn > *::before,
.delete-goal-btn > *::before,
.delete-item-btn > *::before,
.delete-habit-btn > *::after,
.delete-goal-btn > *::after,
.delete-item-btn > *::after {
  content: none !important;
  display: none !important;
} 