/* ============================================
   MODAL - Style cho modal hướng dẫn
   Chức năng: Style cho help modal
   ============================================ */

.help-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.help-modal.show {
  display: flex;
}

.help-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.help-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  animation: slideUp 0.3s;
}

.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 2px solid #f0f6ff;
}

.help-modal-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #0b2540;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0;
}

.help-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-modal-close:hover {
  background: #f0f6ff;
  color: var(--danger);
}

.help-modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  flex: 1;
}

.help-section {
  margin-bottom: var(--spacing-lg);
}

.help-section-highlight {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 100%);
  border: 1px solid #c5ddf5;
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.help-section-highlight h3 {
  color: #0b6ed7;
  margin-top: 0;
}

.help-value-lead {
  font-size: var(--font-size-base);
  line-height: 1.55;
  color: #1e3a5f;
  margin: 0 0 var(--spacing-sm);
}

.help-value-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: #334155;
}

.help-value-list li {
  margin-bottom: 0.5rem;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.help-section ul,
.help-section ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.help-section li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
  color: #0b2540;
}

.help-section p {
  line-height: 1.8;
  color: #0b2540;
  margin-bottom: var(--spacing-md);
}

.help-section strong {
  color: var(--accent);
  font-weight: 600;
}

.help-step {
  background: #fafbff;
  border-left: 4px solid var(--accent);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-sm);
}

.help-step h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: #0b2540;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0 10px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-right: var(--spacing-xs);
  line-height: 1;
  white-space: nowrap;
}

.help-subsection {
  background: white;
  border: 1px solid #e6eef8;
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.help-subsection h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.help-subsection code {
  background: #f0f6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  color: var(--accent);
}

.help-subsection ul ul {
  margin-top: var(--spacing-xs);
  margin-left: var(--spacing-md);
}

.help-modal-footer {
  padding: var(--spacing-lg);
  border-top: 2px solid #f0f6ff;
  display: flex;
  justify-content: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .help-modal {
    padding: 10px;
  }
  
  .help-modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 90vh;
    margin: 20px auto;
    padding: 0;
  }
  
  .help-modal-header,
  .help-modal-body,
  .help-modal-footer {
    padding: 16px;
  }
  
  .help-modal-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .help-modal-header h2 {
    font-size: 18px;
    flex: 1;
    min-width: 0;
  }
  
  .help-modal-close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .help-modal-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .help-modal-footer .btn {
    width: 100%;
    min-height: 44px;
  }
  
  @media (max-width: 480px) {
    .help-modal-content {
      width: 100%;
      max-width: 100%;
      max-height: 100vh;
      border-radius: 0;
      margin: 0;
    }
    
    .help-modal-header h2 {
      font-size: 16px;
    }
  }
}

