/* 
 * 四象限法工作管理系统 - 现代元素样式表
 * 提升特定UI组件的现代感和专业度
 */

/* 整体字体优化 */
body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  letter-spacing: -0.011em;
}

/* 主标题现代化 */
.main-header {
  position: relative;
  border-bottom: none;
}

.main-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1), 
    rgba(255,255,255,0.3) 20%, 
    rgba(255,255,255,0.3) 80%, 
    rgba(255,255,255,0.1)
  );
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* 现代按钮设计 */
.btn {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.2rem;
  border: none;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
}

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

/* 现代输入框 */
.form-control {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
  border-color: var(--accent-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.15);
}

#search-task {
  border-radius: 20px;
  padding-left: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#search-task::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

#search-task:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 象限容器优化 */
.quadrant {
  border-radius: 16px;
  box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.04),
              0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border: var(--card-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quadrant h2 {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.7rem 0;
}

/* 番茄钟现代设计 */
.timer {
  font-size: 3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: -1px;
}

.timer-controls button {
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 统计和今日概览卡片设计 */
.sidebar section {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04),
              0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06),
              0 3px 10px rgba(0, 0, 0, 0.03);
}

.stat {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
}

/* 增强空态页提示 */
.empty-list-message {
  background: rgba(245, 247, 250, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.empty-list-message::before {
  content: '📋';
  font-size: 24px;
  margin-bottom: 10px;
}

/* 美化模态框 */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12),
              0 15px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
}

.modal-header h3 {
  font-weight: 600;
  color: var(--text-dark);
}

.close-modal {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

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

/* 任务删除按钮优化 */
.task-delete-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--q1-color-rgb, 239, 71, 111), 0.08);
  color: var(--q1-color, #ef476f);
  border: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
  box-shadow: 0 0 0 rgba(239, 71, 111, 0);
  cursor: pointer;
  transform: scale(0.9);
}

.task-delete-btn:hover {
  background: rgba(var(--q1-color-rgb, 239, 71, 111), 0.15);
  color: var(--q1-color, #ef476f);
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 3px 8px rgba(239, 71, 111, 0.25);
}

.task-delete-btn:active {
  transform: scale(0.9);
  opacity: 0.8;
  box-shadow: 0 1px 3px rgba(239, 71, 111, 0.1);
}

.task-item:hover .task-delete-btn {
  opacity: 0.8;
} 