/* ==========================================
   DAILY/WEEKLY SLIDER STYLES
   ========================================== */

.daily-weekly-modal-content {
  padding: 30px;
}

.daily-weekly-modal-content h2 {
  margin: 0 0 24px 0;
  text-align: center;
  font-size: 24px;
  color: #1e293b;
}

/* Tabs */
.dw-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.dw-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.dw-tab:hover {
  color: #475569;
  background: #f8fafc;
}

.dw-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* Progress Bar (Weekly) */
.dw-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.dw-progress-track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.dw-progress-meta {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* Slider */
.dw-slider-container {
  margin: 20px 0 0;
}

.dw-slider-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.dw-slider-cards {
  display: flex;
  transition: transform 0.3s ease;
}

.dw-card {
  min-width: 100%;
  padding: 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}

.dw-card-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.dw-card-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.dw-status {
  font-size: 16px;
  color: #64748b;
  margin: 16px 0;
  padding: 10px 18px;
  background: #f1f5f9;
  border-radius: 6px;
  display: inline-block;
}

.dw-status-done {
  background: #10b981;
  color: #fff;
  font-weight: 600;
}

.dw-card-done {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}

.dw-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.dw-action-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dw-action-link {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 116, 139, 0.35);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.dw-action-link:hover {
  color: #667eea;
  border-bottom-color: rgba(102, 126, 234, 0.5);
}

.dw-link-sep {
  color: #cbd5e1;
  font-size: 12px;
  user-select: none;
}

.dw-empty {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

/* Controls row: prev | dots | next */
.dw-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Navigation Buttons */
.dw-nav-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dw-nav-btn:hover:not(:disabled) {
  border-color: #667eea;
  color: #667eea;
  background: #f8fafc;
}

.dw-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dots Indicator */
.dw-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.dw-dot:hover {
  background: #94a3b8;
}

.dw-dot.active {
  background: #667eea;
  width: 24px;
  border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .daily-weekly-modal-content {
    padding: 20px 16px 16px;
  }

  .daily-weekly-modal-content h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .dw-tabs {
    margin-bottom: 16px;
  }

  .dw-tab {
    padding: 10px 12px;
    font-size: 14px;
  }

  #dwProgressContainer {
    margin: 10px 0 !important;
  }

  .dw-progress-header {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .dw-progress-track {
    height: 10px;
  }

  .dw-progress-meta {
    font-size: 12px;
    margin-top: 4px;
  }

  .dw-slider-container {
    margin: 12px 0 0;
  }

  .dw-card {
    padding: 20px 16px;
  }

  .dw-card-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .dw-card-desc {
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dw-status {
    font-size: 15px;
    margin: 12px 0;
    padding: 8px 14px;
  }

  .dw-card-actions {
    gap: 10px;
    margin-top: 14px;
  }

  .dw-card-actions .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Controls row on mobile */
  .dw-controls {
    margin-top: 14px;
    gap: 8px;
  }

  .dw-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .dw-dots {
    gap: 10px;
  }

  .dw-dot {
    width: 10px;
    height: 10px;
  }

  .dw-dot.active {
    width: 28px;
  }

  .dw-empty {
    padding: 36px 16px;
    font-size: 14px;
  }
}