/* ═══════════════════════════════════════════
   WORD TO MARKDOWN — Glassmorphism Design System
   ═══════════════════════════════════════════ */

/* ── Status Strip ── */
.wtm-status-strip { margin-bottom: 1rem; }
.wtm-error-bar, .wtm-processing-bar, .wtm-success-bar {
  display: none; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1.1rem; border-radius: var(--t-radius-sm);
  font-size: 0.85rem; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wtm-error-bar.show, .wtm-processing-bar.show, .wtm-success-bar.show {
  display: flex; animation: wtmSlideIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes wtmSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.wtm-bar-icon { flex-shrink: 0; font-size: 1.15rem; line-height: 1; }
.wtm-bar-dismiss {
  margin-left: auto; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: rgba(0,0,0,0.08);
  color: inherit; font-size: 0.7rem; cursor: pointer; flex-shrink: 0;
  opacity: 0.6; transition: opacity 0.2s, background 0.2s;
}
.wtm-bar-dismiss:hover { opacity: 1; background: rgba(0,0,0,0.14); }
.wtm-error-bar { background: var(--t-red-light); border: 1px solid rgba(239,68,68,0.2); color: var(--t-red); }
.wtm-processing-bar { background: var(--t-accent-light); border: 1px solid rgba(255,107,74,0.15); color: var(--text); }
.wtm-success-bar { background: var(--t-green-light); border: 1px solid rgba(16,185,129,0.2); color: var(--t-green); }
.wtm-spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--t-border);
  border-top-color: var(--t-accent); border-right-color: var(--t-accent);
  border-radius: 50%; animation: wtmSpin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes wtmSpin { to { transform: rotate(360deg); } }

/* ── Workspace ── */
.wtm-workspace {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin-bottom: 1.5rem; align-items: start;
  transition: grid-template-columns 0.4s cubic-bezier(0.16,1,0.3,1);
}
.wtm-workspace.split-mode { grid-template-columns: 1fr 1fr; }
.wtm-upload-col { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── Dropzone ── */
.wtm-dropzone {
  position: relative; border: 2px dashed var(--t-border);
  border-radius: var(--t-radius); padding: 3rem 2rem;
  text-align: center; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  background: var(--t-bg); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); outline: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 260px;
}
.wtm-dropzone:hover, .wtm-dropzone:focus-visible {
  border-color: var(--t-accent); background: var(--t-accent-light);
  box-shadow: 0 0 0 3px var(--t-accent-glow);
}
.wtm-dropzone.dragover {
  border-color: var(--t-accent); background: var(--t-accent-light);
  box-shadow: 0 0 0 4px var(--t-accent-glow); transform: scale(1.015);
}
.wtm-dropzone.has-file {
  border-style: solid; border-color: var(--t-green);
  background: var(--t-green-light); padding: 1.5rem; min-height: auto;
}
.wtm-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; z-index: 1; }
.wtm-drop-icon-wrap { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.wtm-drop-icon { font-size: 3rem; line-height: 1; position: relative; z-index: 1; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.wtm-dropzone:hover .wtm-drop-icon, .wtm-dropzone.dragover .wtm-drop-icon { transform: translateY(-4px); }
.wtm-drop-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--t-accent);
  border-right-color: var(--t-accent); opacity: 0; transition: opacity 0.35s;
}
.wtm-dropzone:hover .wtm-drop-ring { opacity: 0.6; }
.wtm-drop-title { font-weight: 700; font-size: 1.1rem; color: var(--text); margin: 0; }
.wtm-drop-sub { font-size: 0.85rem; color: var(--text-tertiary); margin: 0; }
.wtm-file-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── File Badge ── */
.wtm-file-badge {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; background: var(--t-bg);
  border: 1px solid var(--t-border-glass); border-radius: var(--t-radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: wtmSlideIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
.wtm-file-badge-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.wtm-file-badge-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.wtm-file-badge-info { display: flex; flex-direction: column; min-width: 0; }
.wtm-file-badge-name { font-weight: 600; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtm-file-badge-meta { font-size: 0.72rem; color: var(--text-tertiary); font-family: var(--t-mono); }
.wtm-file-badge-clear {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 50%; background: transparent;
  color: var(--text-tertiary); font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.wtm-file-badge-clear:hover { border-color: var(--t-red); color: var(--t-red); background: var(--t-red-light); }

/* ── Config Col ── */
.wtm-config-col {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.5rem; background: var(--t-bg);
  border: 1px solid var(--t-border-glass); border-radius: var(--t-radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ── Action Button ── */
.wtm-action-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border: 1.5px solid var(--t-border); border-radius: 100px;
  background: var(--t-bg); color: var(--text-secondary);
  font-family: var(--t-font); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); white-space: nowrap;
}
.wtm-action-btn:hover:not(:disabled) {
  border-color: var(--t-accent); color: var(--t-accent);
  background: var(--t-accent-light); transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--t-accent-glow);
}
.wtm-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.wtm-action-btn.primary {
  width: 100%; background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
  color: #fff; border-color: transparent; box-shadow: 0 4px 24px var(--t-accent-glow);
}
.wtm-action-btn.secondary { background: var(--t-bg); border: 1px solid var(--t-border-glass); }
.wtm-action-btn.download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border-color: transparent; box-shadow: 0 4px 24px rgba(16,185,129,0.3);
}
@media (max-width: 768px) {
  .wtm-workspace, .wtm-workspace.split-mode { grid-template-columns: 1fr; gap: 1rem; }
  .wtm-dropzone { padding: 2rem 1rem; min-height: 200px; }
}
@media (max-width: 480px) {
  .wtm-dropzone { padding: 1.5rem 1rem; min-height: 180px; }
  .wtm-action-btn { padding: 0.6rem 1rem; font-size: 0.76rem; }
}

/* ── Input Group ── */
.wtm-input-group { margin-bottom: 0.25rem; }
.wtm-input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════
   RESULTS — FULL WIDTH
   ═══════════════════════════════════════════ */
.wtm-results {
  animation: toolSlideIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
.wtm-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.wtm-results-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.wtm-results-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wtm-stats {
  font-family: var(--t-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--t-accent);
  background: var(--t-accent-light);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.wtm-result-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  border-radius: var(--t-radius-sm);
  background: var(--t-bg);
  border: 1px solid var(--t-border-glass);
  font-family: var(--t-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s;
}
.wtm-result-textarea:focus {
  border-color: var(--t-accent);
  box-shadow: 0 0 0 4px var(--t-accent-glow);
}
