/* 
 * 四象限法工作管理系统 - 增强样式表
 * 用于提升界面视觉效果而不影响基本功能
 */

/* 更新颜色变量 */
:root {
  /* 更新颜色方案 - 更现代化的配色 */
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --text-color: #2b2d42;
  --text-light: #6c757d;
  --text-dark: #212529;
  --bg-color: #f8f9fa;
  --bg-light: #ffffff;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.08);
  
  /* 更新象限颜色 - 更鲜明且和谐的色调 */
  --q1-color: #ef476f; /* 重要且紧急 - 鲜艳红色 */
  --q2-color: #4895ef; /* 重要不紧急 - 明亮蓝色 */
  --q3-color: #ffd166; /* 紧急不重要 - 温暖黄色 */
  --q4-color: #06d6a0; /* 不重要不紧急 - 清新绿色 */
  
  /* 添加RGB格式的颜色变量，用于rgba()函数 */
  --q1-color-rgb: 239, 71, 111;
  --q2-color-rgb: 72, 149, 239;
  --q3-color-rgb: 255, 209, 102;
  --q4-color-rgb: 6, 214, 160;
  --primary-color-rgb: 67, 97, 238;
  --secondary-color-rgb: 58, 12, 163;
  --accent-color-rgb: 76, 201, 240;
  
  /* 增强阴影效果 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 20px -5px rgba(0, 0, 0, 0.05), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
  
  /* 新增立体效果变量 */
  --card-border-radius: 12px;
  --card-padding: 16px;
  --card-border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 整体布局优化 */
body {
  background-color: #f5f7fa;
  color: var(--text-color);
}

.main-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 0.8rem 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.main-content {
  padding: 1.2rem;
  gap: 1.5rem;
}

/* 四象限区域优化 */
.quadrants {
  gap: 1.2rem;
}

.quadrant {
  background-color: var(--bg-light);
  border-radius: var(--card-border-radius);
  border: var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  border-top-width: 5px;
}

.quadrant:hover {
  box-shadow: var(--shadow-md);
}

.quadrant h2 {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  margin-bottom: 0.8rem;
  position: relative;
}

/* 任务卡片增强 */
.task-item {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.98));
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  padding: 12px 15px;
  border-left-width: 4px;
  transition: all 0.25s ease;
  position: relative;
}

.task-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.task-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.task-description {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.task-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.07);
}

/* 任务操作按钮组 */
.task-item .task-edit-btn,
.task-item .task-delete-btn,
.task-item .task-history-btn,
.task-item .task-complete-btn {
  position: absolute;
  top: 8px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100;
}

.task-item .task-edit-btn {
  right: 40px;
  border: 1px solid rgba(76, 201, 240, 0.3);
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
}

.task-item .task-delete-btn {
  right: 8px;
}

.task-item .task-history-btn {
  right: 72px;
}

.task-item .task-complete-btn {
  right: 104px;
}

/* 完成任务卡片样式 */
.task-item.completed .task-title,
.task-item.completed .task-description {
  opacity: 0.6;
  text-decoration: line-through;
}

/* 按钮样式增强 */
.btn {
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

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

.add-task-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.add-task-btn:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* 番茄工作法区域增强 */
.sidebar section {
  background-color: var(--bg-light);
  border-radius: var(--card-border-radius);
  border: var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
  padding: var(--card-padding);
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.sidebar section:hover {
  box-shadow: var(--shadow-md);
}

.sidebar section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.timer {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 1rem 0;
  color: var(--primary-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.timer-controls button {
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  border-radius: 20px;
  min-width: 80px;
}

/* 今日概览区域增强 */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.stat:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
} 