/* ==========================================================================
   Pure Black & #FD8F11 Orange Developer Studio Design System
   ========================================================================== */

:root {
  /* Specific Orange #FD8F11 Palette */
  --primary: #FD8F11;
  --primary-hover: #e57e00;
  --primary-light: #ffa133;
  --primary-dark: #cc7000;
  --primary-glow: rgba(253, 143, 17, 0.3);
  --primary-glow-subtle: rgba(253, 143, 17, 0.12);
  --primary-fg: #ffffff;

  /* Pure Pitch-Black Surfaces */
  --bg-body: #000000;
  --bg-panel: #0a0a0a;
  --bg-panel-elevated: #111111;
  --bg-surface-elevated: #161616;
  --bg-input: #040404;
  --bg-code: #040404;
  --bg-hover: #1c1c1c;

  --border-color: #222222;
  --border-subtle: #181818;
  --border-focus: #FD8F11;
  --border-glow: rgba(253, 143, 17, 0.4);

  /* Typography: #FD8F11 Headings, White Body */
  --text-heading: #FD8F11;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-link: #38bdf8;
  --text-link-hover: #60a5fa;

  --btn-bg: #141414;
  --btn-border: #282828;
  --btn-text: #ffffff;
  --btn-hover: #222222;
  --btn-hover-text: #FD8F11;

  --accent-orange: #FD8F11;
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --status-ready: #10b981;
  --status-rendering: #FD8F11;
  --status-error: #f43f5e;

  --danger-text: #fb7185;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(244, 63, 94, 0.3);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 700;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

a {
  color: #38bdf8;
  text-decoration: underline dotted rgba(56, 189, 248, 0.6);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #60a5fa;
  text-decoration: underline solid #60a5fa;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
}

@media (min-width: 1440px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-code);
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Application Header
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a1a1a;
  background: #000000;
  padding: 0.75rem 0;
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none !important;
}

.brand-logo:hover {
  text-decoration: none !important;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #FD8F11;
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.brand-logo:hover .logo-badge {
  transform: translateY(-1px) scale(1.04);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-title .brand-accent {
  color: #FD8F11;
}

.brand-subline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* Header Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none !important;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-item:hover {
  color: #FD8F11;
  background: rgba(255, 255, 255, 0.05);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: #111111;
  border: 1px solid #282828;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: #FD8F11;
  background: #181818;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease;
}

/* Active Hamburger Animation */
.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background-color: #FD8F11;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background-color: #FD8F11;
}

/* Mobile Dropdown Navigation Drawer */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid #1a1a1a;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  z-index: 99;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  transition: all 0.15s ease;
}

.mobile-nav-item svg {
  color: #FD8F11;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: #FD8F11;
  background: #161616;
  border-color: #FD8F11;
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section with #FD8F11 Highlights
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 4.25rem 0 3.5rem;
  background: #000000;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  text-align: center;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: 1px solid rgba(253, 143, 17, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FD8F11;
  box-shadow: 0 0 6px #FD8F11;
}

.hero-badge-sep {
  opacity: 0.4;
  font-size: 0.7rem;
}

.hero-badge-accent {
  color: #FD8F11;
}

/* Balanced Hero Title: White Headline with #FD8F11 Accent */
.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-gradient-text {
  color: #FD8F11;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
  background: #111111;
  border: 1px solid #282828;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.hero-feature-chip:hover {
  border-color: #FD8F11;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-feature-chip svg {
  color: #FD8F11;
}

/* ==========================================================================
   Main Converter Workspace
   ========================================================================== */

.main-content {
  flex: 1;
}

.converter-workspace {
  padding: 2rem 0 2.75rem;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
}

/* Options Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
}

.toolbar-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.toolbar-item label {
  color: #ffffff;
  font-weight: 500;
  user-select: none;
}

.toolbar-item select {
  background: var(--bg-input);
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.toolbar-item select:focus {
  border-color: var(--border-focus);
}

.checkbox-item {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checkbox-item input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  border-radius: 4px;
}

/* Dual Editor Grid */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.15rem;
}

@media (max-width: 1024px) {
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.panel:focus-within {
  border-color: rgba(253, 143, 17, 0.6);
}

.panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--bg-panel-elevated);
  border-bottom: 1px solid var(--border-color);
}

.panel-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FD8F11 !important;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-heading::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FD8F11;
}

.panel-btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Flat Button System (No Shadows) */
.btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
  user-select: none;
  box-shadow: none !important;
}

.btn:hover {
  background: var(--btn-hover);
  color: var(--btn-hover-text);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

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

.btn-sm {
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: #FD8F11;
  border-color: #FD8F11;
  color: #ffffff;
}

.btn-primary:hover {
  background: #e57e00;
  border-color: #e57e00;
  color: #ffffff;
}

/* Center Convert Divider & Button */
.convert-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.btn-convert {
  background: #FD8F11;
  border: 1px solid #FD8F11;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: none !important;
}

.btn-convert:hover {
  background: #e57e00;
  border-color: #e57e00;
  transform: translateY(-2px) scale(1.02);
}

.btn-convert:active {
  transform: translateY(0) scale(0.99);
}

/* Editor Textareas */
.editor-area {
  flex: 1;
  display: flex;
  background: var(--bg-code);
  position: relative;
}

textarea {
  flex: 1;
  width: 100%;
  min-height: 440px;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  background: transparent;
  color: #ffffff;
  border: none;
  resize: none;
  outline: none;
  white-space: pre;
  tab-size: 2;
  -moz-tab-size: 2;
}

textarea::placeholder {
  color: #71717a;
}

/* Tabs */
.tab-group {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tab {
  background: transparent;
  border: none;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a1a1aa;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: #ffffff;
}

.tab.active {
  background: #FD8F11;
  color: #ffffff;
  box-shadow: none !important;
}

/* Output Container */
.output-container {
  display: none;
  flex: 1;
  flex-direction: column;
  background: var(--bg-code);
}

.output-container.active {
  display: flex;
}

/* Table View */
.table-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-panel-elevated);
}

.table-search-bar input {
  background: var(--bg-input);
  border: 1px solid #282828;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
  width: 240px;
  transition: border-color 0.15s ease;
}

.table-search-bar input:focus {
  border-color: var(--border-focus);
}

.table-search-bar span {
  font-size: 0.76rem;
  color: #a1a1aa;
  font-family: var(--font-mono);
}

.table-scroll {
  flex: 1;
  overflow: auto;
  max-height: 440px;
}

#preview-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

#preview-data-table th,
#preview-data-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}

#preview-data-table th {
  background: var(--bg-surface-elevated);
  color: #FD8F11;
  font-family: var(--font-mono);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 2px solid #282828;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

#preview-data-table th:hover {
  background: var(--bg-hover);
}

#preview-data-table tr:hover td {
  background: rgba(253, 143, 17, 0.08);
}

.empty-msg {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-dim);
  border: none !important;
}

/* Error message bar */
.error-msg {
  padding: 0.75rem 1.15rem;
  background: var(--danger-bg);
  border-top: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 0.84rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

/* Metrics Bar */
.metrics {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: #a1a1aa;
  flex-wrap: wrap;
  align-items: center;
}

.metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.metrics strong {
  color: #FD8F11;
  font-family: var(--font-mono);
  font-weight: 700;
}

#metric-status {
  color: #22c55e;
}

/* ==========================================================================
   Article & Guide Section (Matching User Reference: #FD8F11 Headings)
   ========================================================================== */

.article-text-wrapper {
  padding: 4.5rem 0 6.5rem;
  background: var(--bg-body);
}

.container-article {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1440px) {
  .container-article {
    max-width: 1380px;
    padding: 0 2.5rem;
  }
}

/* Solid #FD8F11 Article Headings */
.article-text-wrapper h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FD8F11 !important;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-text-wrapper h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #FD8F11 !important;
  margin-top: 3.25rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.35rem;
  letter-spacing: -0.015em;
}

.article-text-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FD8F11 !important;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

/* Crisp Solid White Paragraph & List Typography */
.article-text-wrapper p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff !important;
  margin-bottom: 1.35rem;
}

.article-text-wrapper ul,
.article-text-wrapper ol {
  margin-left: 2rem;
  margin-bottom: 1.75rem;
}

.article-text-wrapper li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffffff !important;
}

.article-text-wrapper pre {
  background: #080808;
  border: 1px solid #222222;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #ffffff;
}

.article-text-wrapper code {
  font-family: var(--font-mono);
}

.article-text-wrapper p code,
.article-text-wrapper li code {
  background: #141414;
  border: 1px solid #282828;
  color: #FD8F11;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ==========================================================================
   Developer Footer
   ========================================================================== */

.app-footer {
  border-top: 1px solid #1a1a1a;
  background: #000000;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
}

@media (min-width: 1440px) {
  .footer-container {
    padding: 0 2.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.88rem;
  color: #a1a1aa;
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 1.25rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #22c55e;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FD8F11 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #FD8F11;
  text-decoration: underline dotted #FD8F11;
}

.footer-links span {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-sep {
  opacity: 0.5;
}

.footer-bottom-right kbd {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #111111;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  animation: slide-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid var(--primary);
  box-shadow: none !important;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Engineering Blog Section Styles
   ========================================================================== */

.blog-section {
  padding: 4.5rem 0 5.5rem;
  background: #000000;
  border-bottom: 1px solid #1a1a1a;
}

.blog-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: 1px solid rgba(253, 143, 17, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.blog-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FD8F11;
  box-shadow: 0 0 6px #FD8F11;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.article-card {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #FD8F11;
}

.article-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #141414;
  overflow: hidden;
}

.article-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image {
  transform: scale(1.04);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
}

.article-tag {
  background: #1a1a1a;
  border: 1px solid #282828;
  color: #FD8F11;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FD8F11;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.15s ease;
}

.article-card:hover .article-card-title {
  color: #ffa133;
}

.article-card-excerpt {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #a1a1aa;
  border-top: 1px solid #1a1a1a;
  padding-top: 0.85rem;
}

.read-more-link {
  color: #FD8F11;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness
   ========================================================================== */

@media (max-width: 768px) {

  /* Global Layout */
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .logo-badge {
    width: 30px;
    height: 30px;
  }

  .logo-badge svg {
    width: 17px;
    height: 17px;
  }

  .app-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .status-indicator {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.75rem 0 2.25rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
    padding: 0 0.5rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .hero-features {
    gap: 0.5rem;
  }

  .hero-feature-chip {
    font-size: 0.76rem;
    padding: 0.35rem 0.7rem;
  }

  /* Toolbar */
  .toolbar {
    padding: 0.75rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-item {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-item select {
    width: 160px;
  }

  .checkbox-item {
    padding: 0.2rem 0;
  }

  /* Workspace & Panels */
  .converter-workspace {
    padding: 1.25rem 0 2rem;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .panel {
    min-height: 360px;
    border-radius: var(--radius-sm);
  }

  .panel-bar {
    padding: 0.55rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .panel-heading {
    font-size: 0.82rem;
  }

  .panel-btns {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .btn-sm {
    padding: 0.32rem 0.55rem;
    font-size: 0.74rem;
  }

  textarea {
    min-height: 280px;
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }

  .convert-divider {
    padding: 0.4rem 0;
    width: 100%;
  }

  .btn-convert {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Output Table */
  .table-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
  }

  .table-search-bar input {
    width: 100%;
    font-size: 0.82rem;
  }

  .table-scroll {
    max-height: 350px;
    -webkit-overflow-scrolling: touch;
  }

  #preview-data-table th,
  #preview-data-table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.76rem;
  }

  /* Metrics Bar */
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    padding: 0.75rem 1rem;
  }

  /* Article Section */
  .article-text-wrapper {
    padding: 3rem 0 4rem;
  }

  .container-article {
    padding: 0 1rem;
  }

  .article-text-wrapper h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .article-text-wrapper h2 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
  }

  .article-text-wrapper h3 {
    font-size: 1.12rem;
    margin-top: 1.6rem;
    margin-bottom: 0.55rem;
  }

  .article-text-wrapper p,
  .article-text-wrapper li {
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .article-text-wrapper ul,
  .article-text-wrapper ol {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .article-text-wrapper pre {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    margin: 1rem 0 1.5rem;
    max-width: 100%;
  }

  /* Footer */
  .app-footer {
    padding: 2.75rem 0 1.5rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-top: 1.25rem;
  }

  /* Toast Notification */
  .toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .toast {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand-subline {
    display: none;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-badge-sep {
    display: none;
  }

  .hero-badge {
    gap: 0.35rem;
    font-size: 0.68rem;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .toolbar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .toolbar-item select {
    width: 100%;
  }
}