/* CSS Variables for Dark Minimalist Theme */
:root {
  --primary-bg: #0d0d0d;
  --text-primary: #eae7dc;
  --text-secondary: rgba(234, 231, 220, 0.7);
  --accent-primary: #9baf87;
  --accent-secondary: #6f8a6d;
  --card-bg: rgba(234, 231, 220, 0.03);
  --border-color: rgba(234, 231, 220, 0.1);
  --hover-bg: rgba(234, 231, 220, 0.08);
  --glow-color: rgba(155, 175, 135, 0.3);
  --newspaper-light: #eae7dc;
  --newspaper-dark: #0d0d0d;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 500;
  position: relative;
  min-height: 100vh;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(
      circle at 25% 25%,
      rgba(155, 175, 135, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(111, 138, 109, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(155, 175, 135, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 10% 60%,
      rgba(155, 175, 135, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(111, 138, 109, 0.04) 0%,
      transparent 45%
    );
  animation: backgroundDrift 30s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  20% {
    transform: translate(15px, -20px) scale(1.02);
    opacity: 0.9;
  }
  40% {
    transform: translate(-10px, -35px) scale(1.05);
    opacity: 0.8;
  }
  60% {
    transform: translate(25px, -15px) scale(0.98);
    opacity: 0.9;
  }
  80% {
    transform: translate(-20px, -25px) scale(1.03);
    opacity: 0.85;
  }
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo a:hover {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Main Content */
.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Header Section */
.header-section {
    text-align: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 3px solid var(--border-color);
  background: linear-gradient(
    135deg,
    rgba(155, 175, 135, 0.03),
    rgba(111, 138, 109, 0.02)
  );
  position: relative;
  overflow: hidden;
}

/* Header Particles */
.header-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.header-particle {
  position: absolute;
  background: rgba(155, 175, 135, 0.6);
  border-radius: 50%;
  animation: floatHeaderParticle 15s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(155, 175, 135, 0.8);
}

.header-particle-1 {
  width: 12px;
  height: 12px;
  top: 15%;
  left: 8%;
  animation-duration: 18s;
  animation-delay: -2s;
}
.header-particle-2 {
  width: 8px;
  height: 8px;
  top: 25%;
  left: 85%;
  animation-duration: 22s;
  animation-delay: -6s;
}
.header-particle-3 {
  width: 10px;
  height: 10px;
  top: 45%;
  left: 12%;
  animation-duration: 20s;
  animation-delay: -10s;
}
.header-particle-4 {
  width: 14px;
  height: 14px;
  top: 65%;
  left: 88%;
  animation-duration: 16s;
  animation-delay: -4s;
}
.header-particle-5 {
  width: 9px;
  height: 9px;
  top: 35%;
  left: 92%;
  animation-duration: 24s;
  animation-delay: -12s;
}
.header-particle-6 {
  width: 11px;
  height: 11px;
  top: 75%;
  left: 15%;
  animation-duration: 19s;
  animation-delay: -8s;
}
.header-particle-7 {
  width: 7px;
  height: 7px;
  top: 55%;
  left: 5%;
  animation-duration: 21s;
  animation-delay: -14s;
}
.header-particle-8 {
  width: 13px;
  height: 13px;
  top: 20%;
  left: 75%;
  animation-duration: 17s;
  animation-delay: -3s;
}
.header-particle-9 {
  width: 10px;
  height: 10px;
  top: 80%;
  left: 65%;
  animation-duration: 23s;
  animation-delay: -9s;
}
.header-particle-10 {
  width: 8px;
  height: 8px;
  top: 10%;
  left: 45%;
  animation-duration: 25s;
  animation-delay: -15s;
}
.header-particle-11 {
  width: 12px;
  height: 12px;
  top: 60%;
  left: 25%;
  animation-duration: 18s;
  animation-delay: -5s;
}
.header-particle-12 {
  width: 9px;
  height: 9px;
  top: 40%;
  left: 55%;
  animation-duration: 20s;
  animation-delay: -11s;
}
.header-particle-13 {
  width: 11px;
  height: 11px;
  top: 85%;
  left: 35%;
  animation-duration: 22s;
  animation-delay: -7s;
}
.header-particle-14 {
  width: 8px;
  height: 8px;
  top: 30%;
  left: 18%;
  animation-duration: 19s;
  animation-delay: -13s;
}
.header-particle-15 {
  width: 10px;
  height: 10px;
  top: 70%;
  left: 78%;
  animation-duration: 21s;
  animation-delay: -1s;
}

@keyframes floatHeaderParticle {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(30px, -40px) scale(1.3) rotate(90deg);
    opacity: 0.9;
  }
  50% {
    transform: translate(-20px, -80px) scale(0.8) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    transform: translate(40px, -120px) scale(1.1) rotate(270deg);
    opacity: 1;
  }
}


@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 4.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-style: italic;
  letter-spacing: 0.05em;
  max-width: 600px;
  margin: 1rem auto 0;
  position: relative;
  z-index: 2;
}

/* Detector Section - Newspaper Style */
.detector-section {
  background: var(--newspaper-light);
  color: var(--newspaper-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.detector-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(13, 13, 13, 0.02) 49%, rgba(13, 13, 13, 0.02) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(13, 13, 13, 0.02) 49%, rgba(13, 13, 13, 0.02) 51%, transparent 52%);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.detector-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  border: 3px solid var(--newspaper-dark);
  min-height: 600px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px var(--shadow-medium);
}

/* Main Detector Panel */
.detector-main {
  border-right: 3px solid var(--newspaper-dark);
    padding: 3rem;
  background: var(--newspaper-light);
}

.detector-header {
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.detector-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--newspaper-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detector-description {
  font-size: 1.2rem;
  color: var(--newspaper-dark);
  opacity: 0.8;
  font-weight: 500;
  line-height: 1.4;
}

/* Input Section */
.input-area {
  margin-bottom: 2rem;
}

.url-input-wrapper {
    display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 3px solid var(--newspaper-dark);
}

.url-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  background: var(--newspaper-light);
  color: var(--newspaper-dark);
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.url-input::placeholder {
  color: rgba(13, 13, 13, 0.6);
  font-style: italic;
}

.url-input:focus {
    outline: none;
  background: rgba(155, 175, 135, 0.1);
}

.analyze-button {
  background: var(--newspaper-dark);
  color: var(--newspaper-light);
  border: none;
  padding: 1.2rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.analyze-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.analyze-button:hover::before {
  left: 100%;
}

.analyze-button input[type="checkbox"] {
  display: none;
}

.analyze-button:hover {
  background: var(--accent-primary);
}

.analyze-button:disabled {
  opacity: 0.6;
    cursor: not-allowed;
}

/* Analysis Options */
.analysis-options {
    display: flex;
    justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(155, 175, 135, 0.1);
  border: 2px solid var(--newspaper-dark);
  margin-bottom: 1rem;
}

.analysis-options input[type="checkbox"] {
  display: none;
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-info i {
    font-size: 1.2rem;
  color: var(--accent-secondary);
}

.toggle-text {
    display: flex;
    flex-direction: column;
}

.toggle-label {
  font-weight: 700;
  color: var(--newspaper-dark);
    font-size: 1rem;
}

.toggle-description {
    font-size: 0.9rem;
  color: var(--newspaper-dark);
  opacity: 0.7;
  font-style: italic;
}

.toggle-switch {
  width: 60px;
  height: 30px;
  background: var(--newspaper-dark);
  border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: var(--accent-primary);
}

.toggle-slider {
  width: 26px;
  height: 26px;
  background: var(--newspaper-light);
  border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(30px);
}

.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  color: var(--newspaper-dark);
  opacity: 0.7;
  font-size: 0.95rem;
    font-style: italic;
}

.input-help input[type="checkbox"] {
  display: none;
}

/* Results Panel */
.results-panel {
  display: none;
  margin-top: 2rem;
  background: var(--newspaper-light);
  position: relative;
  overflow: hidden;
}

.results-panel.show {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--newspaper-dark);
}

.results-title {
  font-family: "Playfair Display", serif;
    font-size: 1.8rem;
  font-weight: 800;
  color: var(--newspaper-dark);
  text-transform: uppercase;
}

.confidence-indicator {
  font-weight: 700;
  font-size: 1rem;
  color: var(--newspaper-dark);
}

/* Bias Visualization */
.bias-visualization {
    margin-bottom: 2rem;
}

.bias-scale {
  margin-bottom: 1rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scale-bar {
  height: 20px;
  background: linear-gradient(to right, #3498db, #95a5a6, #e74c3c);
  border: 2px solid var(--newspaper-dark);
  position: relative;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px var(--shadow-light);
}

.scale-indicator {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 4px;
  background: var(--newspaper-dark);
  transition: left 0.5s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(13, 13, 13, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.scale-values {
    display: flex;
    justify-content: space-between;
  font-size: 0.9rem;
    font-weight: 600;
  opacity: 0.8;
}

.bias-label {
    text-align: center;
  margin-top: 1rem;
}

.bias-result {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  padding: 1rem;
  border: 2px solid var(--newspaper-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.bias-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* Analysis Summary - Clean Table Format */
.analysis-summary {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--newspaper-light);
  border: 2px solid var(--newspaper-dark);
  border-radius: 8px;
  position: relative;
}

.summary-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--newspaper-dark);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 0.75rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--newspaper-light);
}

.summary-table th,
.summary-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
  font-family: "Inter", sans-serif;
}

.summary-table th {
  background: rgba(155, 175, 135, 0.1);
  font-weight: 700;
  color: var(--newspaper-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.summary-table td {
  font-weight: 600;
  color: var(--newspaper-dark);
  font-size: 1rem;
}

.summary-table .stat-value {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
  border-bottom: 2px solid var(--newspaper-dark);
  background: var(--newspaper-dark);
  color: var(--newspaper-light);
  font-weight: 700;
  text-align: center;
}

.summary-table tr:last-child .stat-value {
  color: var(--newspaper-light);
  font-size: 1.3rem;
  font-family: "Playfair Display", serif;
}

/* Detailed Analysis Section */
.detailed-analysis {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--newspaper-light);
  border: 2px solid var(--newspaper-dark);
  border-radius: 8px;
}

.analysis-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--newspaper-dark);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 0.75rem;
}

.summary-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--newspaper-dark);
  font-weight: 500;
  text-align: left;
}

/* Removed duplicate summary-text definition */

/* Detailed Analysis Styles - Remove white box */
.newspaper-analysis {
  font-family: "Inter", sans-serif;
  color: var(--newspaper-dark);
  line-height: 1.6;
  background: transparent;
  padding: 0;
}

.analysis-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--newspaper-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Removed duplicate analysis-summary definition */

.confidence-highlight {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
}

/* Most Influential Chunks - Clean List Style */
.chunks-section {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--newspaper-light);
  border: 2px solid var(--newspaper-dark);
  border-radius: 8px;
}

.chunks-section h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--newspaper-dark);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 0.75rem;
}

.chunks-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chunk-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
}

.chunk-item:last-child {
  border-bottom: none;
}

.chunk-number {
  background: var(--newspaper-dark);
  color: var(--newspaper-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.chunk-content {
  flex: 1;
}

.chunk-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--newspaper-dark);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.chunk-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.chunk-confidence {
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chunk-bias-indicator {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chunk-bias-indicator.left-leaning {
  color: #3498DB;
}

.chunk-bias-indicator.right-leaning {
  color: #E74C3C;
}

.chunk-bias-indicator.center {
  color: #7F8C8D;
}

/* Additional chunk summary */
.chunk-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(155, 175, 135, 0.05);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--newspaper-dark);
  font-size: 0.95rem;
}

/* Sidebar */
.detector-sidebar {
  padding: 3rem 2rem;
  background: var(--newspaper-light);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 2rem;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--newspaper-dark);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--newspaper-dark);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-content {
  color: var(--newspaper-dark);
  line-height: 1.6;
  font-weight: 500;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(155, 175, 135, 0.1);
  border: 1px solid var(--newspaper-dark);
}

.step-number {
  background: var(--newspaper-dark);
  color: var(--newspaper-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
    font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--newspaper-dark);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--newspaper-dark);
  opacity: 0.9;
}

/* Loading States */
.loading-panel {
  display: none;
  text-align: center;
  padding: 3rem;
  margin-top: 2rem;
  border: 3px solid var(--newspaper-dark);
  background: var(--newspaper-light);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.loading-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(155, 175, 135, 0.08), rgba(111, 138, 109, 0.05));
  pointer-events: none;
  z-index: 1;
}

.loading-panel.show {
    display: block;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(13, 13, 13, 0.1);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(155, 175, 135, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.2rem;
    font-weight: 600;
  color: var(--newspaper-dark);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 1rem;
  color: var(--newspaper-dark);
  opacity: 0.7;
  font-style: italic;
}

/* Error States */
.error-panel {
  display: none;
  text-align: center;
  padding: 3rem;
  margin-top: 2rem;
  border: 3px solid #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.2);
  position: relative;
  overflow: hidden;
}

.error-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.03));
  pointer-events: none;
  z-index: 1;
}

.error-panel.show {
    display: block;
}

.error-icon {
    font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
  color: var(--newspaper-dark);
  margin-bottom: 1.5rem;
}

.retry-button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.retry-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.retry-button:hover::before {
  left: 100%;
}

.retry-button:hover {
  background: #c0392b;
}

/* Floating Particles */
.floating-particles {
  position: fixed;
    top: 0;
  left: 0;
    width: 100%;
    height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(155, 175, 135, 0.5);
  border-radius: 50%;
  animation: floatParticle 20s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(155, 175, 135, 0.6);
}

.particle-1 {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: -5s;
}
.particle-2 {
  width: 10px;
  height: 10px;
  top: 60%;
  left: 80%;
  animation-duration: 30s;
  animation-delay: -10s;
}
.particle-3 {
  width: 6px;
  height: 6px;
  top: 40%;
  left: 60%;
  animation-duration: 35s;
  animation-delay: -15s;
}
.particle-4 {
  width: 9px;
  height: 9px;
  top: 80%;
  left: 30%;
  animation-duration: 28s;
  animation-delay: -8s;
}
.particle-5 {
  width: 8px;
  height: 8px;
  top: 30%;
  left: 90%;
  animation-duration: 32s;
  animation-delay: -12s;
}

.particle-6 {
  width: 7px;
  height: 7px;
  top: 70%;
  left: 15%;
  animation-duration: 28s;
  animation-delay: -18s;
}

.particle-7 {
  width: 9px;
  height: 9px;
  top: 45%;
  left: 70%;
  animation-duration: 26s;
  animation-delay: -7s;
}

.particle-8 {
  width: 6px;
  height: 6px;
  top: 85%;
  left: 55%;
  animation-duration: 34s;
  animation-delay: -22s;
}

.particle-9 {
  width: 10px;
  height: 10px;
  top: 15%;
  left: 40%;
  animation-duration: 29s;
  animation-delay: -14s;
}

.particle-10 {
  width: 8px;
  height: 8px;
  top: 55%;
  left: 5%;
  animation-duration: 31s;
  animation-delay: -9s;
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.5;
  }
  20% {
    transform: translate(15px, -25px) scale(1.1) rotate(72deg);
    opacity: 0.7;
  }
  40% {
    transform: translate(-10px, -45px) scale(0.9) rotate(144deg);
    opacity: 0.6;
  }
  60% {
    transform: translate(25px, -70px) scale(1.05) rotate(216deg);
    opacity: 0.8;
  }
  80% {
    transform: translate(-20px, -85px) scale(0.95) rotate(288deg);
    opacity: 0.7;
  }
}

/* General checkbox hiding */
input[type="checkbox"] {
  display: none !important;
}

/* Hide any ::before or ::after pseudo-elements that might be creating checkboxes */
*::before,
*::after {
  content: none;
}

button::before,
button::after {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 3.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .detector-container {
    grid-template-columns: 1fr;
    margin: 0 1rem;
  }

  .detector-main {
    border-right: none;
    border-bottom: 3px solid var(--newspaper-dark);
    padding: 2rem;
  }

  .detector-sidebar {
    padding: 2rem;
  }
  
  .url-input-wrapper {
    flex-direction: column;
  }
  
  .analyze-button {
    justify-content: center;
    width: 100%;
  }
  
  .analysis-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .detector-title {
    font-size: 2rem;
  }

  .detector-description {
    font-size: 1rem;
  }

  .analysis-summary,
  .detailed-analysis,
  .chunks-section {
    padding: 1.5rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .summary-table th {
    font-size: 0.8rem;
  }

  .bias-result {
    font-size: 1.5rem;
  }

  .scale-labels {
    font-size: 0.8rem;
  }

  .chunk-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .chunk-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2.8rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
  
  .detector-main,
  .detector-sidebar {
    padding: 1.5rem;
  }
  
  .detector-title {
    font-size: 1.8rem;
  }

  .sidebar-title {
    font-size: 1.3rem;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-section {
    padding: 2rem 1rem;
  }

  .detector-container {
    margin: 0 0.5rem;
  }

  .url-input {
    font-size: 1rem;
    padding: 1rem;
  }

  .analyze-button {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .bias-result {
    font-size: 1.3rem;
    padding: 0.8rem;
  }

  .analysis-summary,
  .detailed-analysis,
  .chunks-section {
    padding: 1rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .summary-table th {
    font-size: 0.75rem;
  }

  .summary-table .stat-value {
    font-size: 1rem;
  }

  .summary-table tr:last-child .stat-value {
    font-size: 1.1rem;
  }

  .chunk-item {
    padding: 1rem 0;
  }

  .chunk-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .loading-panel,
  .error-panel {
    padding: 2rem 1rem;
  }
}