/* ══════════════════════════════════════
   Import/Export CSS — Sprint 5
   ══════════════════════════════════════ */

/* ── Drag & Drop Overlay ── */
#import-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  pointer-events: none;
}

.drop-content {
  text-align: center;
  padding: 40px 60px;
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-lg);
  background: var(--accent-primary-glow);
}

.drop-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}

.drop-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.drop-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── Export Progress Overlay ── */
#export-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

#export-progress-overlay.hidden {
  display: none !important;
}

.export-progress-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  min-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.export-progress-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.export-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.export-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  transition: width 0.15s ease;
}

.export-progress-text {
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ── Notifications ── */
#notification-container {
  position: fixed;
  top: var(--titlebar-height);
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
}

.notification {
  padding: 10px 16px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 360px;
}

.notification.show {
  transform: translateX(0);
}

.notification--success {
  border-color: var(--accent-success);
}
.notification--success .notification-icon {
  color: var(--accent-success);
}

.notification--error {
  border-color: var(--accent-danger);
}
.notification--error .notification-icon {
  color: var(--accent-danger);
}

.notification--warning {
  border-color: var(--accent-warning);
}
.notification--warning .notification-icon {
  color: var(--accent-warning);
}

.notification--info {
  border-color: var(--accent-primary);
}
.notification--info .notification-icon {
  color: var(--accent-primary);
}

.notification-icon {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  word-break: break-word;
}

/* ══════════════════════════════════════
   Safe Area Guide
   ══════════════════════════════════════ */

#safe-area-guide {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

#safe-area-guide.hidden {
  display: none !important;
}

.safe-area-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.safe-area-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  /* Position at top-right corner of frame */
}

/* Dim areas outside the safe frame */
.safe-area-dim-top,
.safe-area-dim-bottom,
.safe-area-dim-left,
.safe-area-dim-right {
  position: absolute;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ══════════════════════════════════════
   Export Dialog
   ══════════════════════════════════════ */

.export-dialog-body {
  padding: 16px;
}

.export-section {
  margin-bottom: 14px;
}

.export-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.export-select {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.export-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary-glow);
}

.export-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.export-row > div {
  flex: 1;
}

.export-x {
  font-size: 16px;
  color: var(--text-muted);
  padding-bottom: 4px;
}

.export-input {
  width: 100%;
  padding: 5px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-align: center;
}

.export-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary-glow);
}

.export-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.export-value {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.export-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.export-actions {
  display: flex;
  flex-direction: column;
}

.export-video-btn {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  font-weight: 600;
}

.export-video-btn:hover {
  background: var(--accent-primary) !important;
  color: white !important;
}

.export-pro-btn {
  background: rgba(78, 205, 196, 0.1) !important;
  border-color: var(--accent-secondary) !important;
  color: var(--accent-secondary) !important;
}

.export-pro-btn:hover {
  background: var(--accent-secondary) !important;
  color: white !important;
}
