/* ==========================================================================
   Unicode To InPage Conversion Studio & Dedicated Tool Workspace Styles
   Seamlessly integrates with File To File Pro design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DEDICATED FULL-PAGE WORKSPACE OVERLAY
   -------------------------------------------------------------------------- */
.u2i-workspace {
  position: fixed;
  inset: 0;
  z-index: 99992;
  background: var(--bg-main, #f8fafc);
  color: var(--text-color, #0f172a);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.u2i-workspace.active {
  opacity: 1;
  visibility: visible;
}

/* Dark Mode Theme */
html[data-theme="dark"] .u2i-workspace,
body.dark .u2i-workspace {
  background: #0b0e17;
  color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   2. TOPBAR HEADER
   -------------------------------------------------------------------------- */
.u2i-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.75rem;
  background: var(--card-bg, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 58px;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .u2i-topbar,
body.dark .u2i-topbar {
  background: #111422;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.u2i-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.u2i-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.u2i-brand-logo .ftfp-logo-svg {
  width: 135px;
  height: 30px;
  display: block;
}

/* Center Tool Badge */
.u2i-topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

.u2i-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.22);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #3b5bdb;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .u2i-brand-badge,
body.dark .u2i-brand-badge {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.u2i-brand-badge svg {
  color: #4361ee;
}

html[data-theme="dark"] .u2i-brand-badge svg,
body.dark .u2i-brand-badge svg {
  color: #818cf8;
}

.u2i-version-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .u2i-version-chip,
body.dark .u2i-version-chip {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

/* Right Exit / Close Button */
.u2i-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.u2i-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
  user-select: none;
}

.u2i-exit-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.u2i-exit-btn:hover {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.38);
}

.u2i-exit-btn:hover svg {
  transform: rotate(90deg);
}

.u2i-exit-btn:active {
  transform: translateY(0);
}

html[data-theme="dark"] .u2i-exit-btn,
body.dark .u2i-exit-btn {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

html[data-theme="dark"] .u2i-exit-btn:hover,
body.dark .u2i-exit-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. WORKSPACE BODY & CONTAINER
   -------------------------------------------------------------------------- */
.u2i-workspace-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 3.5rem 1.25rem;
}

.u2i-container {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. CARD HEADER & TOOLBAR
   -------------------------------------------------------------------------- */
.u2i-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.12);
}

html[data-theme="dark"] .u2i-card-header,
body.dark .u2i-card-header {
  background: #141727;
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5);
}

.u2i-title-meta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.u2i-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
  flex-shrink: 0;
}

.u2i-title-meta h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color, #0f172a);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

html[data-theme="dark"] .u2i-title-meta h2,
body.dark .u2i-title-meta h2 {
  color: #f8fafc;
}

.u2i-title-meta p {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

html[data-theme="dark"] .u2i-title-meta p,
body.dark .u2i-title-meta p {
  color: #94a3b8;
}

.u2i-card-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.u2i-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.u2i-btn-sample {
  background: rgba(67, 97, 238, 0.09);
  color: #3b5bdb;
  border-color: rgba(67, 97, 238, 0.22);
}

.u2i-btn-sample:hover {
  background: rgba(67, 97, 238, 0.16);
  transform: translateY(-1px);
}

html[data-theme="dark"] .u2i-btn-sample,
body.dark .u2i-btn-sample {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.35);
}

.u2i-btn-clear {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.u2i-btn-clear:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-1px);
}

.u2i-btn-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html[data-theme="dark"] .u2i-btn-clear,
body.dark .u2i-btn-clear {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   5. MAIN CONVERSION CARD (Matching Image 2 Reference)
   -------------------------------------------------------------------------- */
.u2i-box-card {
  position: relative;
  background: var(--card-bg, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  padding: 22px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 340px;
}

html[data-theme="dark"] .u2i-box-card,
body.dark .u2i-box-card {
  background: #141829;
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.6);
}

/* Inset Container Box inside the Card */
.u2i-inset-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.u2i-inset-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-theme="dark"] .u2i-inset-box,
body.dark .u2i-inset-box {
  background: #0f1220;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .u2i-inset-box:focus-within,
body.dark .u2i-inset-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

/* Top Toolbar inside Inset Box */
.u2i-inset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px 16px;
  user-select: none;
}

.u2i-inset-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  cursor: text;
}

.u2i-doc-icon {
  color: #64748b;
  flex-shrink: 0;
}

.u2i-doc-icon-success {
  color: #10b981;
}

.u2i-placeholder-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .u2i-placeholder-label,
body.dark .u2i-placeholder-label,
html[data-theme="dark"] .u2i-doc-icon,
body.dark .u2i-doc-icon {
  color: #94a3b8;
}

.u2i-output-label {
  color: #10b981;
  font-weight: 600;
}

/* Paste Button (Top Right of Inset Box) */
.u2i-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #edf2fe;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.u2i-paste-btn svg {
  color: #1d4ed8;
}

.u2i-paste-btn:hover {
  background: #dbeafe;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

.u2i-paste-btn:active {
  transform: translateY(0);
}

html[data-theme="dark"] .u2i-paste-btn,
body.dark .u2i-paste-btn {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

html[data-theme="dark"] .u2i-paste-btn svg,
body.dark .u2i-paste-btn svg {
  color: #93c5fd;
}

html[data-theme="dark"] .u2i-paste-btn:hover,
body.dark .u2i-paste-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
}

/* Textarea inside Inset Box */
.u2i-textarea {
  width: 100%;
  min-height: 220px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  direction: rtl;
  text-align: right;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', Tahoma, Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--text-color, #0f172a);
  padding: 8px 16px 14px 16px;
  box-sizing: border-box;
}

html[data-theme="dark"] .u2i-textarea,
body.dark .u2i-textarea {
  color: #f8fafc;
}

.u2i-output-textarea {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, 'Courier New', monospace;
  font-size: 1.2rem;
  direction: rtl;
  text-align: right;
  color: var(--text-color, #0f172a);
}

html[data-theme="dark"] .u2i-output-textarea,
body.dark .u2i-output-textarea {
  color: #f8fafc;
}

/* Bottom Row inside the Card (direct child of card) */
.u2i-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Counts on Left (0 Characters | 0 Words) */
.u2i-meta-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #475569;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

html[data-theme="dark"] .u2i-meta-counts,
body.dark .u2i-meta-counts {
  color: #94a3b8;
}

.u2i-count-group strong {
  font-weight: 700;
  color: #0f172a;
}

html[data-theme="dark"] .u2i-count-group strong,
body.dark .u2i-count-group strong {
  color: #f8fafc;
}

.u2i-meta-sep {
  color: #cbd5e1;
  margin: 0 2px;
}

html[data-theme="dark"] .u2i-meta-sep,
body.dark .u2i-meta-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Convert to InPage Button on Bottom Right */
.u2i-btn-convert-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #0056e0 0%, #0066ff 100%);
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}

.u2i-btn-convert-modern .u2i-btn-sync-icon {
  transition: transform 0.4s ease;
}

.u2i-btn-convert-modern .u2i-btn-arrow-icon {
  transition: transform 0.2s ease;
}

.u2i-btn-convert-modern:hover:not(:disabled) {
  background: linear-gradient(135deg, #004ecc 0%, #005ce6 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
}

.u2i-btn-convert-modern:hover:not(:disabled) .u2i-btn-sync-icon {
  transform: rotate(180deg);
}

.u2i-btn-convert-modern:hover:not(:disabled) .u2i-btn-arrow-icon {
  transform: translateX(3px);
}

.u2i-btn-convert-modern:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.u2i-btn-convert-modern:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* InPage Ready Badge */
.u2i-inpage-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Subtle Edit Button */
.u2i-btn-pill-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-color, #334155);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', -apple-system, sans-serif;
}

.u2i-btn-pill-subtle:hover {
  background: rgba(67, 97, 238, 0.12);
  color: #4361ee;
  border-color: rgba(67, 97, 238, 0.3);
}

html[data-theme="dark"] .u2i-btn-pill-subtle,
body.dark .u2i-btn-pill-subtle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* Modern Copy Button */
.u2i-btn-copy-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, sans-serif;
}

.u2i-btn-copy-modern:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.u2i-btn-copy-modern:active {
  transform: translateY(0);
}

.u2i-btn-copy-modern.u2i-btn-copied {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4) !important;
}

/* --------------------------------------------------------------------------
   6. PROCESSING OVERLAY & LOGO SPINNER (Active on Convert click)
   -------------------------------------------------------------------------- */
.u2i-processing-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: u2iFadeIn 0.2s ease-out;
}

html[data-theme="dark"] .u2i-processing-overlay,
body.dark .u2i-processing-overlay {
  background: rgba(18, 21, 38, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.u2i-processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 90%;
  gap: 1.15rem;
}

/* Glowing Dual Ring Spinner with Logo Icon */
.u2i-spinner-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.u2i-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(67, 97, 238, 0.15);
  border-top-color: #4361ee;
  border-right-color: #7209b7;
  animation: u2iSpin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.35);
}

.u2i-spinner-ring-inner {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2.5px solid rgba(16, 185, 129, 0.15);
  border-bottom-color: #10b981;
  border-left-color: #00d2ff;
  animation: u2iSpinReverse 0.75s linear infinite;
}

.u2i-spinner-logo {
  position: relative;
  z-index: 2;
  color: #4361ee;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: u2iPulseLogo 1.2s ease-in-out infinite;
}

html[data-theme="dark"] .u2i-spinner-logo,
body.dark .u2i-spinner-logo {
  color: #a5b4fc;
}

@keyframes u2iSpin {
  to { transform: rotate(360deg); }
}

@keyframes u2iSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes u2iPulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.u2i-processing-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-color, #0f172a);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .u2i-processing-title,
body.dark .u2i-processing-title {
  color: #f8fafc;
}

.u2i-processing-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-top: -0.5rem;
}

html[data-theme="dark"] .u2i-processing-subtitle,
body.dark .u2i-processing-subtitle {
  color: #94a3b8;
}

/* Fast 1-Second Progress Bar */
.u2i-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(67, 97, 238, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

html[data-theme="dark"] .u2i-progress-bar,
body.dark .u2i-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.u2i-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4361ee 0%, #7209b7 50%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   8. STATUS TOAST MESSAGE
   -------------------------------------------------------------------------- */
.u2i-status-msg {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  animation: u2iSlideUp 0.25s ease-out;
  direction: ltr;
}

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

.u2i-status-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .u2i-status-success,
body.dark .u2i-status-success {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.u2i-status-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
}

html[data-theme="dark"] .u2i-status-warn,
body.dark .u2i-status-warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .u2i-topbar {
    padding: 0.5rem 1rem;
  }
  .u2i-topbar-center {
    display: none; /* Keep clean on small mobile screens */
  }
  .u2i-workspace-body {
    padding: 1.25rem 0.75rem 2.5rem 0.75rem;
  }
  .u2i-card-header {
    padding: 1rem;
  }
  .u2i-title-meta h2 {
    font-size: 1.15rem;
  }
  .u2i-btn-convert {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
}
