/**
 * Test Modal Component
 * 
 * Purpose: Minimal-CSS modal for debugging modal display issues
 * - Highest z-index to ensure visibility (higher than pause overlay at 1000001)
 * - No dependencies on other CSS classes
 * - Center viewport positioning
 * - Phase flow visualization with arrows
 */

/* Overlay - Full screen, highest z-index */
.test-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10000000;
  display: none;
  justify-content: center;
  align-items: center;
}

.test-modal-overlay.visible {
  display: flex;
}

/* Container - Modal box */
.test-modal-container {
  width: 500px;
  max-width: 90vw;
  max-height: 80vh;
  background-color: white;
  border: 3px solid black;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Header - Black background, yellow text */
.test-modal-header {
  background-color: black;
  padding: 16px 20px;
  border-bottom: 2px solid yellow;
  position: relative;
}

.test-modal-title {
  margin: 0;
  padding: 0;
  font-family: 'Bangers', cursive;
  font-size: 32px;
  color: yellow;
  letter-spacing: 1px;
  text-align: center;
  font-weight: normal;
}

.test-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: none;
  color: yellow;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  font-family: Arial, sans-serif;
  font-weight: normal;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.test-modal-close:hover {
  opacity: 1;
}

/* Body - White background, scrollable */
.test-modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: white;
  color: black;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Phase Flow Visualization */
.test-modal-phase-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.test-modal-phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 300px;
  justify-content: center;
}

/* Previous phases - subtle styling */
.test-modal-phase-item.previous {
  background-color: #f0f0f0;
  color: #666;
  font-style: italic;
}

/* Current phase - bold and highlighted */
.test-modal-phase-item.current {
  background-color: #ffeb3b;
  color: black;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid black;
  padding: 12px 20px;
}

/* Next phases - normal styling */
.test-modal-phase-item.next {
  background-color: #e8f5e9;
  color: #333;
}

/* Arrow between phases */
.test-modal-phase-arrow {
  font-size: 20px;
  color: #666;
}

.test-modal-phase-arrow.down {
  color: #4ade80;
}

/* Footer - Black background */
.test-modal-footer {
  background-color: black;
  padding: 16px 20px;
  border-top: 2px solid yellow;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-modal-current-phase {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  color: yellow;
  letter-spacing: 1px;
  text-align: center;
  font-weight: bold;
}

/* Info sections in body */
.test-modal-info-section {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 4px solid #2196f3;
}

.test-modal-info-label {
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}

.test-modal-info-value {
  font-size: 16px;
  color: black;
}
