/**
 * Progress Management Styles
 * 
 * Styles für Fortschrittsanzeigen, Tooltips und Benutzerführung
 */

/* =====================================================
   PROGRESS OVERLAY
   ===================================================== */

.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.progress-modal {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  min-width: 400px;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.progress-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.progress-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.progress-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.progress-close svg {
  width: 20px;
  height: 20px;
}

/* =====================================================
   PROGRESS CONTENT
   ===================================================== */

.progress-content {
  color: var(--text-primary);
}

.progress-description {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.progress-bar-container {
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-details {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* =====================================================
   TOOLTIP SYSTEM
   ===================================================== */

.tooltip {
  position: absolute;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  z-index: 1000;
  max-width: 250px;
  word-wrap: break-word;
}

.tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.tooltip-top::before {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--bg-primary);
}

.tooltip-bottom::before {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--bg-primary);
}

.tooltip-left::before {
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: var(--bg-primary);
}

.tooltip-right::before {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: var(--bg-primary);
}

/* =====================================================
   TOUR SYSTEM
   ===================================================== */

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.tour-modal {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  min-width: 350px;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tour-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.tour-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tour-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tour-close svg {
  width: 20px;
  height: 20px;
}

.tour-content {
  margin-bottom: 20px;
}

.tour-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.tour-footer {
  text-align: right;
}

.tour-next {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-next:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
  .progress-modal {
    min-width: 300px;
    margin: 20px;
    padding: 20px;
  }
  
  .tour-modal {
    min-width: 280px;
    margin: 20px;
    padding: 20px;
  }
  
  .progress-header h3,
  .tour-header h3 {
    font-size: 16px;
  }
  
  .progress-description,
  .tour-content p {
    font-size: 13px;
  }
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */

[data-theme="dark"] .progress-modal,
[data-theme="dark"] .tour-modal {
  background: var(--bg-primary-dark);
  border-color: var(--border-color-dark);
}

[data-theme="dark"] .tooltip {
  background: var(--bg-primary-dark);
  border-color: var(--border-color-dark);
}

[data-theme="dark"] .tooltip-top::before {
  border-top-color: var(--bg-primary-dark);
}

[data-theme="dark"] .tooltip-bottom::before {
  border-bottom-color: var(--bg-primary-dark);
}

[data-theme="dark"] .tooltip-left::before {
  border-left-color: var(--bg-primary-dark);
}

[data-theme="dark"] .tooltip-right::before {
  border-right-color: var(--bg-primary-dark);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

.progress-overlay,
.tour-overlay {
  animation: fadeIn 0.3s ease;
}

.progress-modal,
.tour-modal {
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   SUCCESS/ERROR STATES
   ===================================================== */

.progress-fill.success {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.progress-fill.error {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.progress-status.success {
  color: #28a745;
}

.progress-status.error {
  color: #dc3545;
} 