.designer-calendar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.designer-calendar-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: none;
  position: relative;
  overflow: hidden;

  // 背景装饰
  &::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;

    .designer-avatar {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border: 3px solid rgba(255, 255, 255, 0.3);

      .avatar-icon {
        font-size: 28px;
      }
    }

    .header-info {
      h3 {
        margin: 0 0 4px 0;
        font-size: 22px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      .header-subtitle {
        margin: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
      }
    }
  }

  .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    backdrop-filter: blur(10px);

    .close-icon {
      font-size: 20px;
      color: #ffffff;
      font-weight: 600;
    }

    &:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: rotate(90deg) scale(1.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
  }
}

// 筛选和统计区域
.filter-stats-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 24px 32px;
  border-bottom: 2px solid #e9ecef;
}

.quick-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;

    &.checkbox-group {
      justify-content: flex-end;
      padding-bottom: 4px;
    }

    .filter-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      color: #495057;

      .label-icon {
        font-size: 16px;
      }

      .label-text {
        letter-spacing: 0.3px;
      }
    }

    .filter-select {
      padding: 10px 36px 10px 14px;
      border: 2px solid #dee2e6;
      border-radius: 8px;
      font-size: 14px;
      color: #495057;
      background: white;
      cursor: pointer;
      transition: all 0.3s ease;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      font-weight: 500;

      &:hover {
        border-color: #667eea;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
      }

      &:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
      }
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;

      .modern-checkbox {
        width: 18px;
        height: 18px;
        border: 2px solid #dee2e6;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        appearance: none;
        position: relative;

        &:checked {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          border-color: #667eea;

          &::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
          }
        }

        &:hover {
          border-color: #667eea;
          box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
      }

      .checkbox-text {
        font-size: 13px;
        font-weight: 500;
        color: #495057;
      }
    }
  }
}

@media (max-width: 768px) {
  .quick-filters {
    grid-template-columns: 1fr;
  }
}

.designer-stats {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    .stat-label {
      font-size: 12px;
      color: #6c757d;
      margin-bottom: 4px;
    }

    .stat-value {
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;

      &.warning {
        color: #e74c3c;
      }
    }
  }

  .workload-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    .workload-label {
      font-size: 14px;
      color: #6c757d;
      min-width: 60px;
    }

    .workload-bar {
      flex: 1;
      height: 8px;
      background: #e9ecef;
      border-radius: 4px;
      overflow: hidden;

      .workload-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;

        &.low {
          background: linear-gradient(90deg, #28a745, #20c997);
        }

        &.medium {
          background: linear-gradient(90deg, #ffc107, #fd7e14);
        }

        &.high {
          background: linear-gradient(90deg, #dc3545, #e74c3c);
        }
      }
    }

    .workload-percentage {
      font-size: 14px;
      font-weight: 600;
      color: #495057;
      min-width: 40px;
      text-align: right;
    }
  }
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;

  .nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: #495057;

    &:hover {
      background: #e9ecef;
      border-color: #adb5bd;
    }
  }

  .month-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
  }
}

.designer-calendar-modal {
  // 调整最大宽度，避免内容过窄导致日历看不全
  max-width: 1000px;
  width: 95vw;
}

.designer-stats {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    .stat-label {
      font-size: 12px;
      color: #6c757d;
      margin-bottom: 4px;
    }

    .stat-value {
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;

      &.warning {
        color: #e74c3c;
      }
    }
  }

  .workload-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;

    .workload-label {
      font-size: 14px;
      color: #6c757d;
      min-width: 60px;
    }

    .workload-bar {
      flex: 1;
      height: 8px;
      background: #e9ecef;
      border-radius: 4px;
      overflow: hidden;

      .workload-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;

        &.low {
          background: linear-gradient(90deg, #28a745, #20c997);
        }

        &.medium {
          background: linear-gradient(90deg, #ffc107, #fd7e14);
        }

        &.high {
          background: linear-gradient(90deg, #dc3545, #e74c3c);
        }
      }
    }

    .workload-percentage {
      font-size: 14px;
      font-weight: 600;
      color: #495057;
      min-width: 40px;
      text-align: right;
    }
  }

  .designer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    .status-badge {
      padding: 6px 16px;
      border-radius: 20px;
      color: white;
      font-size: 14px;
      font-weight: 600;
    }

    .last-order {
      font-size: 12px;
      color: #6c757d;
    }
  }
}

.calendar-container {
  // 当屏幕较窄时允许水平滚动，确保完整查看7列
  padding: 0 24px 20px;
  overflow-x: auto;
}

.calendar-header {
  display: grid;
  // 使用 minmax 保证每列有最低宽度，减少像素舍入造成的对不齐
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  margin-bottom: 8px;

  .weekday {
    box-sizing: border-box;
    padding: 12px 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
  }
}

.calendar-grid {
  display: grid;
  // 与 header 保持一致，保证列宽一致
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  background: #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  // 统一行高，避免内容挤压导致错位
  grid-auto-rows: 100px;
}

.calendar-day {
  box-sizing: border-box;
  background: white;
  min-height: 100px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
  border: 2px solid transparent;

  .day-number {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    z-index: 2;
    color: #2c3e50;
  }

  .day-status-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;

    .status-label {
      font-size: 12px;
      font-weight: 500;
      padding: 2px 8px;
      border-radius: 12px;
      color: white;
      gap: 4px;
      padding: 4px;
      border-radius: 6px;
      font-size: 10px;
      font-weight: 500;

      mat-icon {
        font-size: 16px;
        width: 16px;
        height: 16px;
      }

      &.idle {
        background: rgba(76, 175, 80, 0.1);
        color: #2e7d32;
        
        mat-icon {
          color: #4caf50;
        }
      }

      &.busy {
        background: rgba(33, 150, 243, 0.1);
        color: #1565c0;
        
        mat-icon {
          color: #2196f3;
        }
      }

      &.review {
        background: rgba(244, 67, 54, 0.1);
        color: #c62828;
        
        mat-icon {
          color: #f44336;
        }
      }
    }
  }

  .workload-indicator-bar {
    position: absolute;
    bottom: 4px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;

    .workload-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.3s ease;

      &.medium-fill {
        background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
      }

      &.high-fill {
        background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
      }

      &.review-fill {
        background: linear-gradient(90deg, #dc3545 0%, #b02a37 100%);
      }
    }
  }

  // 保留旧样式兼容
  .workload-bar-mini {
    position: absolute;
    bottom: 4px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;

    .workload-fill-mini {
      height: 100%;
      border-radius: 3px;
      transition: width 0.3s ease;

      &.medium {
        background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
      }

      &.high {
        background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
      }

      &.review {
        background: linear-gradient(90deg, #dc3545 0%, #b02a37 100%);
      }
    }
  }

  &.other-month {
    color: #adb5bd;
    background: #f8f9fa;
    opacity: 0.6;

    .day-status {
      opacity: 0.5;
    }
  }

  &.weekend {
    background: #fff5f5;
  }

  &.today {
    border: 3px solid #ff6b35 !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);

    .day-number {
      color: #ff6b35;
      font-weight: 700;
    }
  }

  // 使用 data-status 属性进行样式控制 - 增强版
  &[data-status="idle"] {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    position: relative;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);

    // 空闲状态闪烁动画
    &::after {
      content: '';
      position: absolute;
      top: 4px;
      right: 4px;
      width: 10px;
      height: 10px;
      background: #28a745;
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
      animation: pulse-idle 2s infinite;
    }

    &:hover {
      background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
      transform: scale(1.08) translateY(-2px);
      box-shadow: 0 8px 24px rgba(40, 167, 69, 0.5);
      border-color: #20c997;
    }

    .day-number {
      color: #155724;
      font-weight: 800;
      font-size: 18px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .status-label.idle-label {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      color: white;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 16px;
      box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
      animation: bounce-subtle 2s infinite;
    }
  }

  &[data-status="busy-medium"] {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    border: 3px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
    position: relative;

    // 忙碌状态指示器
    &::before {
      content: '';
      position: absolute;
      top: 4px;
      right: 4px;
      width: 10px;
      height: 10px;
      background: #0d6efd;
      border-radius: 50%;
      animation: pulse-busy 1.5s infinite;
    }

    .day-number {
      color: #084298;
      font-weight: 800;
      font-size: 18px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .status-label.busy-label {
      background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
      color: white;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 16px;
      box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
    }

    &:hover {
      background: linear-gradient(135deg, #b6d4fe 0%, #9ec5fe 100%);
      transform: scale(1.05) translateY(-2px);
      box-shadow: 0 8px 24px rgba(13, 110, 253, 0.4);
    }
  }

  &[data-status="busy-high"] {
    background: linear-gradient(135deg, #9ec5fe 0%, #6ea8fe 100%);
    border: 3px solid #0a58ca;
    box-shadow: 0 3px 12px rgba(10, 88, 202, 0.3);
    position: relative;

    // 高负荷状态双指示器
    &::before {
      content: '';
      position: absolute;
      top: 4px;
      right: 4px;
      width: 10px;
      height: 10px;
      background: #0a58ca;
      border-radius: 50%;
      animation: pulse-busy-high 1s infinite;
    }

    &::after {
      content: '';
      position: absolute;
      top: 4px;
      right: 18px;
      width: 10px;
      height: 10px;
      background: #0a58ca;
      border-radius: 50%;
      animation: pulse-busy-high 1s 0.3s infinite;
    }

    .day-number {
      color: #052c65;
      font-weight: 900;
      font-size: 18px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .status-label.busy-label {
      background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
      color: white;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(10, 88, 202, 0.4);
      animation: pulse-scale 1.5s infinite;
    }

    &:hover {
      background: linear-gradient(135deg, #6ea8fe 0%, #3d8bfd 100%);
      transform: scale(1.05) translateY(-2px);
      box-shadow: 0 10px 28px rgba(10, 88, 202, 0.6);
    }
  }

  &[data-status="review"] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    border: 3px solid #dc3545;
    cursor: not-allowed;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
    position: relative;
    opacity: 0.95;

    // 对图日警告指示
    &::before {
      content: '⚠️';
      position: absolute;
      top: 4px;
      right: 4px;
      font-size: 14px;
      animation: shake 2s infinite;
    }

    .day-number {
      color: #842029;
      font-weight: 900;
      font-size: 18px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .status-label.review-label {
      background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
      color: white;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }

    &:hover {
      transform: none;
      box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
      opacity: 1;
    }
  }

  // 动画定义
  @keyframes pulse-idle {
    0% {
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
  }

  @keyframes pulse-busy {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.3);
      opacity: 0.7;
    }
  }

  @keyframes pulse-busy-high {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.5);
      opacity: 0.5;
    }
  }

  @keyframes pulse-scale {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }

  @keyframes bounce-subtle {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-2px);
    }
  }

  @keyframes shake {
    0%, 100% {
      transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
      transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
      transform: translateX(2px);
    }
  }

  // 保留旧的类名兼容性
  &.idle {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;

    &:hover {
      background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    .day-number {
      color: #155724;
    }
  }

  &.busy {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    border: 2px solid #0d6efd;

    .day-number {
      color: #084298;
    }

    &:hover {
      background: linear-gradient(135deg, #b6d4fe 0%, #9ec5fe 100%);
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }
  }

  &.review {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    border: 2px solid #dc3545;
    cursor: not-allowed;

    .day-number {
      color: #842029;
    }

    &:hover {
      transform: none;
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
  }

  &.stagnant {
    background: #fff3e0;
    border: 1px solid #ff9800;

    .day-number {
      color: #ef6c00;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .designer-calendar-modal {
    width: 95vw;
    margin: 10px;
  }

  .designer-stats {
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .workload-indicator {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;

      .workload-label {
        min-width: auto;
        text-align: center;
      }
    }
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 12px;
  }

  .calendar-day {
    min-height: 70px;
    padding: 6px;

    .day-number {
      font-size: 12px;
    }

    .day-indicators {
      .order-count,
      .review-indicator {
        font-size: 9px;
        padding: 1px 3px;
      }
    }
  }
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;

  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;

    .legend-color {
      width: 20px;
      height: 20px;
      border-radius: 4px;
      border: 1px solid rgba(0, 0, 0, 0.1);

      &.idle-color {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border: 2px solid #28a745;
      }

      &.busy-color {
        background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
        border: 2px solid #0d6efd;
      }

      &.review-color {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
        border: 2px solid #dc3545;
      }

      &.today-color {
        background: white;
        border: 3px solid #ff6b35;
      }

      // 保留旧样式兼容
      &.idle {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border: 2px solid #28a745;
      }

      &.busy {
        background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
        border: 2px solid #0d6efd;
      }

      &.review {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
        border: 2px solid #dc3545;
      }

      &.today {
        background: white;
        border: 3px solid #ff6b35;
      }
    }

    .legend-text {
      font-size: 12px;
      color: #6c757d;
    }
  }
}

.calendar-tips {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;

  p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #495057;
  }

  ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;

    li {
      margin-bottom: 4px;
    }
  }
}