/* 自定义样式补充Tailwind CSS */

/* 导航链接样式 */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #4f46e5;
}

.nav-link.active {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-weight: 600;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a5b4fc;
}

/* 任务卡片悬停效果 */
.task-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 进度条样式 */
.progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 按钮悬停动画 */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 日历日期样式 */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-day:hover {
    background-color: #e0e7ff;
}

.calendar-day.today {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
}

.calendar-day.has-tasks {
    position: relative;
}

.calendar-day.has-tasks::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #4f46e5;
}

/* 任务跟踪系统 样式文件 */

:root {
  /* 主色调 - 更明亮活泼的颜色 */
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  
  /* 辅助色 */
  --accent-color: #f472b6;
  --accent-light: #f9a8d4;
  --accent-dark: #db2777;
  
  /* 状态颜色 - 更加饱和鲜艳 */
  --pending-color: #60a5fa;
  --inprogress-color: #fbbf24;
  --review-color: #c084fc;
  --completed-color: #34d399;
  
  /* 中性色 */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

/* 全局样式 */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7ff; /* 淡蓝色背景 */
  color: var(--neutral-700);
  transition: all 0.3s ease;
}

/* 卡片样式增强 */
.card, .bg-white {
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .task-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -5px rgba(99, 102, 241, 0.1);
}

/* 按钮样式增强 */
.btn-primary {
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 按钮点击波纹效果 */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-primary:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0) translate(-50%, -50%);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20) translate(-50%, -50%);
    opacity: 0;
  }
}

/* 任务卡片样式 */
.task-item {
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.task-item[data-assigned-to="director"] {
  border-left-color: var(--primary-color);
}

.task-item[data-assigned-to="manager"] {
  border-left-color: var(--accent-color);
}

.task-item[data-assigned-to="specialist"] {
  border-left-color: var(--completed-color);
}

/* 任务状态标签 */
[class*="bg-blue-100"] {
  background-color: rgba(96, 165, 250, 0.2) !important;
  color: #1e40af !important;
}

[class*="bg-yellow-100"] {
  background-color: rgba(251, 191, 36, 0.2) !important;
  color: #92400e !important;
}

[class*="bg-purple-100"] {
  background-color: rgba(192, 132, 252, 0.2) !important;
  color: #6b21a8 !important;
}

[class*="bg-green-100"] {
  background-color: rgba(52, 211, 153, 0.2) !important;
  color: #065f46 !important;
}

[class*="bg-red-100"] {
  background-color: rgba(248, 113, 113, 0.2) !important;
  color: #b91c1c !important;
}

/* 日历单元格样式 */
#calendar-grid > div > div {
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

#calendar-grid > div > div:hover {
  background-color: rgba(99, 102, 241, 0.05);
  transform: scale(1.02);
  z-index: 1;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

/* 日历上的任务标签 */
#calendar-grid [data-task-id] {
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  transform-origin: left center;
}

#calendar-grid [data-task-id]:hover {
  transform: scaleX(1.03);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 复选框样式自定义 */
input[type="checkbox"] {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--primary-color);
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  appearance: none;
  outline: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="checkbox"]::before {
  position: absolute;
  content: '';
  display: block;
  top: 0px;
  left: 5px;
  width: 6px;
  height: 12px;
  border-style: solid;
  border-color: white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

input[type="checkbox"]:checked {
  color: #ffffff;
  border-color: var(--primary-color);
  background: var(--primary-color);
}

input[type="checkbox"]:checked::before {
  opacity: 1;
}

/* 页面过渡动画 */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 波浪装饰 */
.wave-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: -1;
}

.wave-decoration svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 94px;
}

.wave-decoration path {
  fill: rgba(99, 102, 241, 0.07);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .card, .bg-white {
    border-radius: 12px;
  }
  
  #calendar-grid > div > div:hover {
    transform: none;
  }
}

/* 角色选择卡片特效 */
.role-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: -75%;
  left: -75%;
  width: 150%;
  height: 150%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
  transform: rotate(45deg);
  transition: all 0.7s ease;
  opacity: 0;
}

.role-card:hover::before {
  animation: shine 1.5s;
}

@keyframes shine {
  0% {
    opacity: 0;
    left: -75%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    left: 120%;
  }
}

/* 搜索框动画 */
input[type="text"], input[type="search"] {
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="search"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

/* 任务列表动画 */
.task-item {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 为任务项添加序号延迟动画 */
.task-item:nth-child(1) { animation-delay: 0.0s; }
.task-item:nth-child(2) { animation-delay: 0.05s; }
.task-item:nth-child(3) { animation-delay: 0.1s; }
.task-item:nth-child(4) { animation-delay: 0.15s; }
.task-item:nth-child(5) { animation-delay: 0.2s; }
.task-item:nth-child(6) { animation-delay: 0.25s; }
.task-item:nth-child(7) { animation-delay: 0.3s; }
.task-item:nth-child(8) { animation-delay: 0.35s; }
.task-item:nth-child(9) { animation-delay: 0.4s; }
.task-item:nth-child(10) { animation-delay: 0.45s; } 