/* CSS Variable System */
:root {
  /* Color Palette - HSL Sleek Dark Mode */
  --bg-primary: 220 20% 6%;         /* #080d16 */
  --bg-secondary: 220 20% 8%;       /* #0b111e */
  --bg-card: 220 25% 10%;           /* #0e1625 */
  --bg-card-hover: 220 25% 13%;     /* #141f34 */
  --border-color: 220 15% 18%;      /* #28303e */
  
  --accent: 166 100% 45%;           /* #00e5b0 - Teal Accent */
  --accent-dim: 166 100% 45% / 0.12;
  --accent-border: 166 100% 45% / 0.25;
  --accent-hover: 166 100% 55%;
  
  --text-primary: 210 25% 95%;      /* Near white */
  --text-secondary: 215 15% 65%;    /* Dim gray */
  --text-muted: 215 10% 45%;       /* Dark gray */
  
  /* Status Colors */
  --color-accessible: 142 70% 45%;  /* Green */
  --color-blocked: 347 85% 55%;     /* Red */
  --color-restricted: 38 90% 50%;   /* Amber/Yellow */
  --color-unavailable: 215 15% 50%; /* Gray */
  --color-error: 0 0% 40%;          /* Dark Gray */
  
  /* Fonts */
  --font-display: 'Rajdhani', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  /* Dimensions */
  --container-max: 820px;
  --header-height: 64px;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  background-color: hsl(var(--bg-primary));
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Gradients Glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, hsla(var(--accent), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, hsla(280, 70%, 50%, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, hsla(200, 70%, 50%, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -2;
}

/* Noise texture filter overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* App Header styling */
.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: hsla(var(--bg-primary), 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(var(--border-color), 0.5);
  z-index: 100;
}

.header-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--accent));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-icon {
  width: 28px;
  height: 28px;
  stroke: hsl(var(--accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Buttons basic */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: hsl(var(--text-secondary));
  background-color: hsla(var(--bg-secondary), 0.5);
}

.btn-icon:hover {
  color: hsl(var(--text-primary));
  border-color: hsla(var(--accent), 0.5);
  background-color: hsla(var(--accent-dim));
  box-shadow: 0 0 10px hsla(var(--accent), 0.15);
}

.btn-icon-text {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border-color));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
  background-color: hsla(var(--bg-secondary), 0.5);
}

.btn-icon-text:hover {
  color: hsl(var(--text-primary));
  border-color: hsla(var(--accent), 0.5);
  background-color: hsla(var(--accent-dim));
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-small {
  width: 16px;
  height: 16px;
}

/* Language Switcher Dropdown */
.lang-switcher {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  padding: 8px 0;
  width: 140px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  list-style: none;
  z-index: 110;
}

.lang-menu li {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-menu li:hover {
  color: hsl(var(--accent));
  background-color: hsla(var(--accent-dim));
}

/* Main Content Wrapper */
.app-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 20px 80px;
  min-height: calc(100vh - var(--header-height) - 150px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.results-active) .app-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 160px);
}

/* Hero & Radar Section */
.hero-section {
  position: relative;
  border: 1px solid hsl(var(--border-color));
  border-radius: 16px;
  background-color: hsla(var(--bg-secondary), 0.6);
  padding: 48px 32px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.results-active) .hero-section {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  max-width: 650px;
}

/* Radar Rings Decorator */
.radar-rings-container {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.15;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.results-active) .radar-rings-container {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  opacity: 0.25;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed hsl(var(--accent));
  border-radius: 50%;
}

.radar-ring-1 { width: 100px; height: 100px; }
.radar-ring-2 { width: 200px; height: 200px; }
.radar-ring-3 { width: 300px; height: 300px; }

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg at 50% 50%, hsla(var(--accent), 0.15) 0deg, transparent 90deg, transparent 360deg);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.results-active) .hero-content {
  align-items: center;
}

/* Google-style Dynamic Bouncing Logo */
.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 16px;
  user-select: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.results-active .hero-logo-container {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.hero-logo-letter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.results-active .hero-logo-letter {
  font-size: 2.2rem;
}

/* Glowing Neon Palette */
.letter-1 { color: #00e5b0; text-shadow: 0 0 30px hsla(166, 100%, 45%, 0.4); }
.letter-2 { color: #ff007f; text-shadow: 0 0 30px hsla(327, 100%, 50%, 0.4); }
.letter-3 { color: #ffb703; text-shadow: 0 0 30px hsla(43, 100%, 50%, 0.4); }
.letter-4 { color: #00b4d8; text-shadow: 0 0 30px hsla(190, 100%, 45%, 0.4); }
.letter-5 { color: #9d4edd; text-shadow: 0 0 30px hsla(272, 75%, 58%, 0.4); }
.letter-6 { color: #ff007f; text-shadow: 0 0 30px hsla(327, 100%, 50%, 0.4); }
.letter-7 { color: #00b4d8; text-shadow: 0 0 30px hsla(190, 100%, 45%, 0.4); }
.letter-8 { color: #00e5b0; text-shadow: 0 0 30px hsla(166, 100%, 45%, 0.4); }

.hero-logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: hsl(var(--accent));
  box-shadow: 0 0 16px hsl(var(--accent));
  margin-bottom: 12px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.results-active .hero-logo-dot {
  width: 6px;
  height: 6px;
  margin-bottom: 6px;
  box-shadow: 0 0 8px hsl(var(--accent));
}

.hero-logo-container:hover .hero-logo-letter {
  transform: translateY(-12px);
}

.hero-logo-container .hero-logo-letter:nth-child(1) { transition-delay: 0.0s; }
.hero-logo-container .hero-logo-letter:nth-child(2) { transition-delay: 0.05s; }
.hero-logo-container .hero-logo-letter:nth-child(3) { transition-delay: 0.1s; }
.hero-logo-container .hero-logo-letter:nth-child(4) { transition-delay: 0.15s; }
.hero-logo-container .hero-logo-letter:nth-child(5) { transition-delay: 0.2s; }
.hero-logo-container .hero-logo-letter:nth-child(6) { transition-delay: 0.25s; }
.hero-logo-container .hero-logo-letter:nth-child(7) { transition-delay: 0.3s; }
.hero-logo-container .hero-logo-letter:nth-child(8) { transition-delay: 0.35s; }

.hero-subtitle {
  color: hsl(var(--text-secondary));
  font-size: 1.05rem;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

body:not(.results-active) .hero-subtitle {
  text-align: center;
}

body.results-active .hero-subtitle {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.search-container {
  width: 100%;
  max-width: 650px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.results-active) .search-container {
  margin: 0 auto;
}

/* Tab Mode controls */
.tab-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  width: 100%;
}

.tab-btn {
  padding: 8px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab-btn:hover {
  color: hsl(var(--text-primary));
}

.tab-btn.active {
  background: none;
  color: hsl(var(--accent));
  border-bottom: 2px solid hsl(var(--accent));
  box-shadow: none;
}

/* Input Fields & Panel */
.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-bar-wrapper .search-icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: hsl(var(--text-muted));
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 5;
}

.search-bar-wrapper:focus-within .search-icon {
  color: hsl(var(--accent));
}

.url-input {
  flex: 1;
  background-color: hsl(var(--bg-primary));
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-primary));
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: 26px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.url-input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 4px 12px hsla(var(--accent), 0.15);
  background-color: hsl(var(--bg-secondary));
}

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--bg-primary));
  font-weight: 600;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: hsl(var(--accent-hover));
  box-shadow: 0 0 15px hsla(var(--accent), 0.3);
}

.btn-primary:disabled {
  background-color: hsl(var(--border-color));
  color: hsl(var(--text-muted));
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.input-error {
  color: hsl(var(--color-blocked));
  font-size: 0.85rem;
  padding-left: 4px;
}

/* Batch input dynamic list */
.batch-input-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.batch-row {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.btn-remove-row {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: hsl(var(--text-muted));
  border: 1px solid transparent;
}

.btn-remove-row:hover:not(:disabled) {
  color: hsl(var(--color-blocked));
  background-color: hsla(var(--color-blocked), 0.12);
  border-color: hsla(var(--color-blocked), 0.25);
}

.single-actions {
  display: flex;
  align-items: center;
  margin-top: 20px;
  transition: all 0.4s ease;
}

body:not(.results-active) .single-actions {
  justify-content: center;
}

body.results-active .single-actions {
  justify-content: flex-end;
}

.batch-actions {
  display: flex;
  align-items: center;
  margin-top: 20px;
  transition: all 0.4s ease;
}

body:not(.results-active) .batch-actions {
  justify-content: center;
  gap: 24px;
}

body.results-active .batch-actions {
  justify-content: space-between;
}

.btn-secondary {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px dashed hsl(var(--border-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: hsl(var(--text-secondary));
}

.btn-secondary:hover:not(:disabled) {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
  background-color: hsla(var(--accent-dim));
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Result Area styling */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  gap: 16px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid hsla(var(--accent), 0.15);
  border-top-color: hsl(var(--accent));
  border-radius: 50%;
}

.loading-text {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
}

/* Result Card */
.result-card {
  border: 1px solid hsl(var(--border-color));
  border-radius: 12px;
  background-color: hsl(var(--bg-card));
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: hsla(var(--border-color), 1.5);
}

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

.card-target {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-target-url {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}

.card-target-domain {
  color: hsl(var(--text-secondary));
  font-size: 0.85rem;
}

.card-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Status variants */
.result-card[data-status="accessible"] {
  border-left: 4px solid hsl(var(--color-accessible));
}
.result-card[data-status="accessible"] .card-badge {
  background-color: hsla(var(--color-accessible), 0.12);
  color: hsl(var(--color-accessible));
}

.result-card[data-status="blocked"] {
  border-left: 4px solid hsl(var(--color-blocked));
}
.result-card[data-status="blocked"] .card-badge {
  background-color: hsla(var(--color-blocked), 0.12);
  color: hsl(var(--color-blocked));
}

.result-card[data-status="restricted"] {
  border-left: 4px solid hsl(var(--color-restricted));
}
.result-card[data-status="restricted"] .card-badge {
  background-color: hsla(var(--color-restricted), 0.12);
  color: hsl(var(--color-restricted));
}

.result-card[data-status="unavailable"] {
  border-left: 4px solid hsl(var(--color-unavailable));
}
.result-card[data-status="unavailable"] .card-badge {
  background-color: hsla(var(--color-unavailable), 0.12);
  color: hsl(var(--color-unavailable));
}

.result-card[data-status="error"] {
  border-left: 4px solid hsl(var(--color-error));
}
.result-card[data-status="error"] .card-badge {
  background-color: hsla(var(--color-error), 0.12);
  color: hsl(var(--color-error));
}

/* Confidence Bar */
.confidence-container {
  margin-bottom: 16px;
  background-color: hsla(var(--bg-primary), 0.4);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid hsla(var(--border-color), 0.3);
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: hsl(var(--text-secondary));
}

.confidence-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.confidence-bar {
  height: 6px;
  width: 100%;
  background-color: hsl(var(--border-color));
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Confidence color variants matching status */
.result-card[data-status="accessible"] .confidence-fill { background-color: hsl(var(--color-accessible)); }
.result-card[data-status="blocked"] .confidence-fill { background-color: hsl(var(--color-blocked)); }
.result-card[data-status="restricted"] .confidence-fill { background-color: hsl(var(--color-restricted)); }
.result-card[data-status="unavailable"] .confidence-fill { background-color: hsl(var(--color-unavailable)); }
.result-card[data-status="error"] .confidence-fill { background-color: hsl(var(--color-error)); }

.status-desc {
  font-size: 0.925rem;
  color: hsl(var(--text-secondary));
  margin-bottom: 20px;
}

/* Details Panel toggle */
.card-details-trigger-container {
  border-top: 1px solid hsla(var(--border-color), 0.5);
  padding-top: 16px;
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
}

.btn-text:hover {
  color: hsl(var(--accent));
}

.icon-toggle {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.details-active .icon-toggle {
  transform: rotate(180deg);
}

.card-details {
  margin-top: 16px;
  padding: 16px;
  background-color: hsla(var(--bg-primary), 0.5);
  border: 1px solid hsla(var(--border-color), 0.4);
  border-radius: 8px;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.signal-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signal-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signal-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.signal-ips {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  word-break: break-all;
}

.card-footer-info {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  border-top: 1px dashed hsla(var(--border-color), 0.4);
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

/* History Drawer Side Panel */
.history-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background-color: hsl(var(--bg-card));
  border-left: 1px solid hsl(var(--border-color));
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.25, 1);
  transform: translateX(100%);
}

.history-panel:not([hidden]) {
  transform: translateX(0);
}

.history-header {
  padding: 24px;
  border-bottom: 1px solid hsla(var(--border-color), 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.history-notice {
  padding: 16px 24px;
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  background-color: hsla(var(--bg-primary), 0.3);
  border-bottom: 1px solid hsla(var(--border-color), 0.3);
}

.history-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background-color: hsla(var(--bg-secondary), 0.5);
  border: 1px solid hsla(var(--border-color), 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: hsla(var(--accent-border));
  background-color: hsla(var(--bg-primary), 0.4);
}

.history-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.history-item-url {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-dot-small {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Badge colors for history items */
.history-item[data-status="accessible"] .history-item-badge { color: hsl(var(--color-accessible)); }
.history-item[data-status="blocked"] .history-item-badge { color: hsl(var(--color-blocked)); }
.history-item[data-status="restricted"] .history-item-badge { color: hsl(var(--color-restricted)); }
.history-item[data-status="unavailable"] .history-item-badge { color: hsl(var(--color-unavailable)); }
.history-item[data-status="error"] .history-item-badge { color: hsl(var(--color-error)); }

.history-item-time {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.btn-history-recheck {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: hsl(var(--text-muted));
  border: 1px solid transparent;
}

.btn-history-recheck:hover {
  color: hsl(var(--accent));
  background-color: hsla(var(--accent-dim));
  border-color: hsla(var(--accent-border));
}

.history-empty-text {
  color: hsl(var(--text-muted));
  text-align: center;
  padding: 48px 0;
  font-size: 0.9rem;
}

.history-footer {
  padding: 24px;
  border-top: 1px solid hsla(var(--border-color), 0.5);
}

.btn-danger {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background-color: hsla(var(--color-blocked), 0.12);
  border: 1px solid hsla(var(--color-blocked), 0.25);
  color: hsl(var(--color-blocked));
  font-weight: 600;
}

.btn-danger:hover:not(:disabled) {
  background-color: hsl(var(--color-blocked));
  color: hsl(var(--bg-primary));
  box-shadow: 0 0 15px hsla(var(--color-blocked), 0.25);
}

/* Footer Section */
.app-footer {
  border-top: 1px solid hsla(var(--border-color), 0.5);
  background-color: hsla(var(--bg-secondary), 0.3);
  padding: 40px 20px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  text-align: center;
}

.footer-disclaimer, .footer-privacy {
  line-height: 1.5;
}

.footer-version {
  margin-top: 10px;
  border-top: 1px dashed hsla(var(--border-color), 0.3);
  padding-top: 12px;
  text-align: center;
}

