/* ==========================================================================
   InstallShield AI - Classic Professional Enterprise Security Theme
   Palette: Classic Emerald, Dark Slate & Obsidian (#090D16, #111726, #10B981)
   NO BLUE ACCENTS - Clean, Professional Security Console Style
   ========================================================================== */

:root {
  /* Color Palette - Professional Classic Security Theme */
  --bg-main: #090D16;
  --bg-surface: #111726;
  --bg-surface-hover: #182236;
  --bg-glass: rgba(17, 23, 38, 0.85);
  --bg-card: rgba(20, 28, 45, 0.9);

  /* Primary Accent: Emerald Security Green */
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-soft: rgba(16, 185, 129, 0.12);

  --success: #10B981;
  --success-hover: #059669;
  --success-glow: rgba(16, 185, 129, 0.25);
  --success-soft: rgba(16, 185, 129, 0.12);

  --warning: #F59E0B;
  --warning-hover: #D97706;
  --warning-glow: rgba(245, 158, 11, 0.25);
  --warning-soft: rgba(245, 158, 11, 0.12);

  --danger: #EF4444;
  --danger-hover: #DC2626;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --danger-soft: rgba(239, 68, 68, 0.12);

  --slate-accent: #64748B;
  --slate-soft: rgba(100, 116, 139, 0.15);

  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);

  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.25);
  --shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.25);
  --shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.25);

  /* Layout Constants */
  --sidebar-width: 260px;
  --topbar-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"], body[data-theme="light"] {
  --bg-main: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #E2E8F0;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border-subtle: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(16, 185, 129, 0.6);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sidebar,
body[data-theme="light"] .sidebar {
  background-color: #FFFFFF;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar-header,
body[data-theme="light"] .sidebar-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand-text,
body[data-theme="light"] .brand-text {
  background: linear-gradient(90deg, #0F172A, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

[data-theme="light"] .brand-badge,
body[data-theme="light"] .brand-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .brand-icon,
body[data-theme="light"] .brand-icon {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .topbar,
body[data-theme="light"] .topbar {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .feature-card,
[data-theme="light"] .stat-card,
body[data-theme="light"] .card,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .stat-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hash-box,
[data-theme="light"] .strings-container,
[data-theme="light"] .search-box input,
body[data-theme="light"] .hash-box,
body[data-theme="light"] .strings-container,
body[data-theme="light"] .search-box input {
  background-color: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}

[data-theme="light"] .dropzone,
body[data-theme="light"] .dropzone {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .dropzone:hover,
body[data-theme="light"] .dropzone:hover {
  background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .data-table th,
body[data-theme="light"] .data-table th {
  background-color: #F1F5F9;
  color: #475569;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .data-table td,
body[data-theme="light"] .data-table td {
  color: #1E293B;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .data-table tbody tr:hover,
body[data-theme="light"] .data-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   App Shell Layout
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #047857);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow-emerald);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #FFFFFF, #6EE7B7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-focus);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-item i, .nav-item svg {
  font-size: 18px;
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--success);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

/* Topbar Header */
.topbar {
  height: var(--topbar-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 240px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box i, .search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Page Container & Views */
.content-area {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   Reusable UI Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow-emerald);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger-soft);
  color: var(--danger) !important;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: var(--danger) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Cards & Glass Containers */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Grid Systems */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* Overview Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.emerald::before, .stat-card.green::before { background: var(--success); }
.stat-card.slate::before { background: var(--slate-accent); }
.stat-card.amber::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card.emerald .stat-icon, .stat-card.green .stat-icon { background: var(--success-soft); color: var(--success); }
.stat-card.slate .stat-icon { background: var(--slate-soft); color: var(--text-secondary); }
.stat-card.amber .stat-icon { background: var(--warning-soft); color: var(--warning); }
.stat-card.red .stat-icon { background: var(--danger-soft); color: var(--danger); }

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 10px 0 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Status Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pill-info {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Risk Meter Gauge */
.risk-meter {
  position: relative;
  text-align: center;
  padding: 20px 0;
}

.risk-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--bg-surface);
  position: relative;
  box-shadow: var(--shadow-md);
}

.risk-circle.safe { border-color: var(--success); box-shadow: var(--shadow-glow-emerald); }
.risk-circle.suspicious { border-color: var(--warning); box-shadow: var(--shadow-glow-amber); }
.risk-circle.malicious { border-color: var(--danger); box-shadow: var(--shadow-glow-red); }

.risk-score-num {
  font-size: 2.2rem;
  font-weight: 800;
}

.risk-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   View 1: Landing Page
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--border-focus);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #A7F3D0, var(--primary), #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.features-grid {
  margin-top: 60px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   View 2: Upload Area & Experience
   ========================================================================== */
.dropzone {
  border: 2px dashed rgba(16, 185, 129, 0.4);
  background: rgba(17, 23, 38, 0.5);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: var(--shadow-glow-emerald);
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dropzone-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.supported-formats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.format-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Upload Progress Container */
.upload-progress-card {
  display: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.file-info-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-box {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-main);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #059669);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

/* ==========================================================================
   View 4: Scan Result Page
   ========================================================================== */
.hash-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hash-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 70px;
}

.hash-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  word-break: break-all;
  flex: 1;
}

/* Strings Viewer */
.strings-container {
  max-height: 350px;
  overflow-y: auto;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.string-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.string-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

/* ==========================================================================
   View 5: Data Tables & History
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-wrapper { margin-left: 0; width: 100%; }
  .menu-toggle { display: block; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .topbar { padding: 0 16px; }
  .content-area { padding: 16px; }
}
