/* ==========================================================================
   VISIONCHECK - AI Product Quality Inspector Master Theme
   ========================================================================== */

:root {
  /* Modern Dark Slate Palette */
  --bg-primary: #0f141c;
  --bg-secondary: #161d28;
  --bg-card: #1c2433;
  --bg-card-hover: #232d3f;
  --bg-input: #121822;

  /* Crisp Borders */
  --border-color: #273347;
  --border-light: #374660;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* The 3 Simple Verdict Colors */
  --color-good: #10b981;
  --color-good-bg: rgba(16, 185, 129, 0.12);
  --color-good-border: #059669;

  --color-check: #f59e0b;
  --color-check-bg: rgba(245, 158, 11, 0.12);
  --color-check-border: #d97706;

  --color-defect: #ef4444;
  --color-defect-bg: rgba(239, 68, 68, 0.12);
  --color-defect-border: #dc2626;

  /* Accents */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Master Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.logo-text h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
  line-height: 1.1;
}

.logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 700;
  border-left: 3px solid #3b82f6;
}

.nav-icon {
  font-size: 17px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-primary);
}

/* Simple Top Header */
.top-header {
  height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.content-container {
  padding: 24px 28px 40px 28px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease forwards;
}

.tab-pane.active {
  display: block;
}

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