/* ═══════════════════════════════════════════════
   Dev Section Styles
   /dev namespace pages
   ═══════════════════════════════════════════════ */

/* ─── Tab Navigation ──────────────────────────── */
.dev-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
}

.dev-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-tab-btn:hover {
  color: #64748b;
}

.dev-tab-btn.active {
  color: #4f46e5;
  font-weight: 600;
  border-bottom-color: #6366f1;
}

.dev-tab-btn .tab-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ─── Drop Zone ───────────────────────────────── */
.dev-drop-zone {
  border: 2px dashed #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dev-drop-zone:hover {
  border-color: #a5b4fc;
  background-color: rgba(238, 242, 255, 0.3);
}

.dev-drop-zone:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.5);
}

.dev-drop-zone.dragover {
  border-color: #818cf8;
  background-color: rgba(238, 242, 255, 0.5);
  transform: scale(1.01);
}

.dev-drop-zone.has-file {
  border-color: #a5b4fc;
  border-style: solid;
  background-color: rgba(238, 242, 255, 0.15);
}

.dev-drop-zone__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.dev-drop-zone__icon--clipboard {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.dev-drop-zone__icon--file {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.dev-drop-zone__icon--ready {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.dev-drop-zone__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.dev-drop-zone__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.25rem;
}

.dev-drop-zone__hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.dev-drop-zone__hint kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: #f1f5f9;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
}

.dev-drop-zone__preview {
  max-width: 100%;
  max-height: 12rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ─── Upload Button ───────────────────────────── */
.dev-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-upload-btn--primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.25);
}

.dev-upload-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
}

.dev-upload-btn--dark {
  background: #1e293b;
  box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.15);
}

.dev-upload-btn--dark:hover:not(:disabled) {
  background: #334155;
}

.dev-upload-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.dev-upload-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Spinner inside button */
.dev-upload-btn .spinner {
  animation: dev-spin 0.8s linear infinite;
}

@keyframes dev-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Result Card ─────────────────────────────── */
.dev-result {
  margin-top: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0;
  border-radius: 0.75rem;
}

.dev-result__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dev-result__header svg {
  width: 1rem;
  height: 1rem;
  color: #10b981;
}

.dev-result__header span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
}

.dev-result__label {
  font-size: 0.625rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.dev-result__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-result__input {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: #475569;
}

.dev-result__input:focus {
  outline: none;
}

/* ─── Copy Button ─────────────────────────────── */
.dev-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dev-copy-btn:hover {
  background: #059669;
}

.dev-copy-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.dev-copy-btn.copied {
  background: #047857;
}

/* ─── Toast ───────────────────────────────────── */
.dev-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 50;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease;
}

.dev-toast--success {
  background: #1e293b;
}

.dev-toast--error {
  background: #e11d48;
}

.dev-toast.is-hidden {
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
}

.dev-toast__icon {
  width: 1rem;
  height: 1rem;
  color: #34d399;
}

.dev-toast--error .dev-toast__icon {
  color: #fda4af;
}

/* ─── File Info (selected state) ──────────────── */
.dev-file-info__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.dev-file-info__size {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.125rem;
}

/* ─── Page Container ──────────────────────────── */
.dev-page-header {
  margin-bottom: 2rem;
}

.dev-page-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.025em;
}

.dev-page-header__desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.dev-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.dev-card__body {
  padding: 1.5rem;
}

.dev-card__body--centered {
  max-width: 36rem;
  margin: 0 auto;
}
