/**
 * BYOEH Upload Wizard Styles
 */

/* Overlay */
.eh-wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

/* Modal */
.eh-wizard-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.eh-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.eh-wizard-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.eh-wizard-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.eh-wizard-close:hover {
  color: #111827;
}

/* Progress */
.eh-wizard-progress {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.eh-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.eh-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
}

.eh-progress-step.completed:not(:last-child)::after {
  background: #10b981;
}

.eh-progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.eh-progress-step.active .eh-progress-dot {
  background: #3b82f6;
  color: white;
}

.eh-progress-step.completed .eh-progress-dot {
  background: #10b981;
  color: white;
}

.eh-progress-label {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eh-progress-step.active .eh-progress-label {
  color: #3b82f6;
  font-weight: 600;
}

/* Content */
.eh-wizard-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.eh-wizard-step h3 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.eh-wizard-description {
  margin: 0 0 24px 0;
  color: #6b7280;
  line-height: 1.5;
}

/* File Drop */
.eh-file-drop {
  margin-bottom: 16px;
}

.eh-file-drop input[type="file"] {
  display: none;
}

.eh-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.eh-file-label:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.eh-file-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.eh-file-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.eh-file-size {
  font-size: 14px;
  color: #6b7280;
}

/* Form Groups */
.eh-form-group {
  margin-bottom: 16px;
}

.eh-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.eh-form-group input,
.eh-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eh-form-group input:focus,
.eh-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.eh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Password Input */
.eh-password-input {
  position: relative;
}

.eh-password-input input {
  padding-right: 44px;
}

.eh-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
}

.eh-password-strength {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

.eh-strength-weak {
  color: #ef4444;
}

.eh-strength-medium {
  color: #f59e0b;
}

.eh-strength-strong {
  color: #10b981;
}

/* Rights Box */
.eh-rights-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.eh-rights-box pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

/* Checkbox Group */
.eh-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.eh-checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.eh-checkbox-group label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

/* Info & Warning Boxes */
.eh-info-box,
.eh-warning-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.eh-info-box {
  background: #dbeafe;
  color: #1e40af;
}

.eh-warning-box {
  background: #fef3c7;
  color: #92400e;
}

.eh-info-box strong,
.eh-warning-box strong {
  display: block;
  margin-bottom: 4px;
}

/* Summary Table */
.eh-summary-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.eh-summary-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.eh-summary-row:last-child {
  border-bottom: none;
}

.eh-summary-row:nth-child(odd) {
  background: #f9fafb;
}

.eh-summary-label {
  font-weight: 500;
  color: #374151;
  width: 160px;
  flex-shrink: 0;
}

.eh-summary-value {
  color: #111827;
}

/* Upload Progress */
.eh-upload-progress {
  background: #e5e7eb;
  border-radius: 4px;
  height: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.eh-progress-bar {
  background: #3b82f6;
  height: 100%;
  transition: width 0.3s ease;
}

.eh-upload-progress span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

/* Error & Warning Messages */
.eh-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
}

.eh-warning {
  color: #d97706;
  font-size: 14px;
  margin-top: 8px;
}

/* Footer */
.eh-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Buttons */
.eh-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.eh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eh-btn-primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.eh-btn-primary:hover:not(:disabled) {
  background: #2563eb;
}

.eh-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.eh-btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 640px) {
  .eh-wizard-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .eh-form-row {
    grid-template-columns: 1fr;
  }

  .eh-wizard-progress {
    padding: 16px;
  }

  .eh-progress-label {
    display: none;
  }
}
