/* Tech Theme - Reusable Styles for All Tool Pages */

/* Base Dark Theme - Must override styles.css */
body.dark-tech-theme {
  background: radial-gradient(
      900px 600px at 15% 10%,
      rgba(138, 125, 255, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 80% 0%,
      rgba(48, 215, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      1000px 700px at 50% 95%,
      rgba(0, 245, 212, 0.12),
      transparent 55%
    ),
    #070a12 !important;
  min-height: 100vh;
  color: rgba(255, 255, 255, 0.92);
}

/* Grid glow effect */
body.dark-tech-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
      90deg,
      rgba(138, 125, 255, 0.03) 0px,
      transparent 1px,
      transparent 80px,
      rgba(138, 125, 255, 0.03) 81px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(138, 125, 255, 0.03) 0px,
      transparent 1px,
      transparent 80px,
      rgba(138, 125, 255, 0.03) 81px
    );
  pointer-events: none;
  z-index: 1;
}

/* Compact Header with AdSense Space */
.header.compact {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(138, 125, 255, 0.15);
  padding: 0.35rem 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.compact .header-content {
  height: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Compact Logo */
.header.compact .logo {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header.compact .logo-image {
  height: auto !important;
  width: auto !important;
  max-height: 60px !important;
  transition: all 0.3s;
}

.header.compact .logo-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Navigation for Compact Header */
.header.compact .navbar {
  margin-left: auto;
}

.header.compact .nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header.compact .nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 4px;
  white-space: nowrap;
}

.header.compact .nav-link:hover {
  background: rgba(138, 125, 255, 0.2);
  color: #fff;
}

/* Hamburger for Compact Header */
.header.compact .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.header.compact .hamburger .bar {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s;
  border-radius: 2px;
}

/* Dark Theme for All Tool Elements */

/* Hero Sections */
body.dark-tech-theme .ssl-hero,
body.dark-tech-theme .tool-hero,
body.dark-tech-theme .hero-section {
  background: transparent !important;
}

/* Breadcrumbs */
body.dark-tech-theme .breadcrumbs {
  color: rgba(255, 255, 255, 0.66) !important;
}

body.dark-tech-theme .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-tech-theme .breadcrumbs a:hover {
  color: #fff !important;
}

/* Tool layout container (styles.css forces a light panel) */
body.dark-tech-theme .tool-container {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

/* Headings */
body.dark-tech-theme h1,
body.dark-tech-theme h2,
body.dark-tech-theme h3,
body.dark-tech-theme h4,
body.dark-tech-theme .ssl-hero h1,
body.dark-tech-theme .tool-hero h1 {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-tech-theme .hero-subtitle,
body.dark-tech-theme .ssl-hero-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Content Panels and Cards */
body.dark-tech-theme .ssl-lookup-panel,
body.dark-tech-theme .ssl-results-panel,
body.dark-tech-theme .tool-card,
body.dark-tech-theme .content-card,
body.dark-tech-theme .faq-section,
body.dark-tech-theme .related-tool-card,
body.dark-tech-theme .hero-shell {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

body.dark-tech-theme .ssl-lookup-panel h3,
body.dark-tech-theme .results-header h3,
body.dark-tech-theme .section-title,
body.dark-tech-theme .content-card h2,
body.dark-tech-theme .faq-section h2 {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Form Elements */
body.dark-tech-theme .ssl-input-group label,
body.dark-tech-theme label {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-tech-theme .ssl-input-group input,
body.dark-tech-theme input[type="text"],
body.dark-tech-theme input[type="email"],
body.dark-tech-theme textarea,
body.dark-tech-theme select {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-tech-theme .ssl-input-group input::placeholder,
body.dark-tech-theme input::placeholder,
body.dark-tech-theme textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-tech-theme .ssl-input-group input:focus,
body.dark-tech-theme input:focus,
body.dark-tech-theme textarea:focus,
body.dark-tech-theme select:focus {
  border-color: #8a7dff !important;
  box-shadow: 0 0 0 3px rgba(138, 125, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Info Items */
body.dark-tech-theme .info-item,
body.dark-tech-theme .result-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-tech-theme .info-item:hover {
  border-color: #8a7dff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-tech-theme .info-label,
body.dark-tech-theme .result-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-tech-theme .info-value,
body.dark-tech-theme .result-value {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Info Box / Tips */
body.dark-tech-theme .ssl-info-box,
body.dark-tech-theme .tool-help {
  background: rgba(138, 125, 255, 0.15) !important;
  border-left: 3px solid #8a7dff !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Export Buttons */
body.dark-tech-theme .export-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Tool-specific light CSS overrides (some tools define light colors in inline <style> blocks) */
body.dark-tech-theme .risk-indicator,
body.dark-tech-theme .detail-item,
body.dark-tech-theme .indicator-list li,
body.dark-tech-theme .result-note {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-tech-theme .detail-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-tech-theme .result-note p,
body.dark-tech-theme .risk-indicator p,
body.dark-tech-theme .indicator-list,
body.dark-tech-theme .indicator-list li {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.dark-tech-theme .spinner {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-top-color: rgba(138, 125, 255, 0.9) !important;
}

body.dark-tech-theme .export-btn:hover {
  background: #8a7dff !important;
  border-color: #8a7dff !important;
  color: #fff !important;
}

/* Text and Paragraphs */
body.dark-tech-theme p,
body.dark-tech-theme .content-card p,
body.dark-tech-theme .faq-answer,
body.dark-tech-theme .related-tool-info p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Links */
body.dark-tech-theme a,
body.dark-tech-theme .content-card a {
  color: #8a7dff !important;
}

body.dark-tech-theme a:hover {
  color: #30d7ff !important;
}

/* FAQ Items */
body.dark-tech-theme .faq-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-tech-theme .faq-question {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Error Messages */
body.dark-tech-theme .error-message {
  background: rgba(220, 38, 38, 0.2) !important;
  border-left: 4px solid #dc2626 !important;
  color: #fecaca !important;
}

/* Tool Wrapper */
body.dark-tech-theme .tool-wrapper,
body.dark-tech-theme .tool-container,
body.dark-tech-theme .ssl-content-section {
  position: relative;
  z-index: 2;
}

/* Mobile Nav for Compact Header */
@media (max-width: 968px) {
  .header.compact .hamburger {
    display: flex;
  }

  .header.compact .nav-menu {
    position: fixed;
    left: -100%;
    top: 50px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    padding: 1rem 0;
    gap: 0;
    border-bottom: 1px solid rgba(138, 125, 255, 0.18);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 9998;
  }

  .header.compact .nav-menu.active {
    left: 0;
  }

  .header.compact .nav-link {
    padding: 0.75rem 1.5rem;
    width: 100%;
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  .header.compact .nav-link:hover {
    background: rgba(138, 125, 255, 0.2);
    color: #fff;
  }

  .header.compact .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    pointer-events: auto;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent touch :hover from forcing floating dropdowns that get cut off */
  .header.compact .dropdown:hover .dropdown-menu {
    display: none !important;
  }

  .header.compact .dropdown.active:hover .dropdown-menu {
    display: block !important;
  }

  .header.compact .dropdown-link {
    text-align: center;
    padding: 0.65rem 1.5rem;
    color: rgba(255, 255, 255, 0.82);
  }

  .header.compact .dropdown-link:hover {
    background: rgba(138, 125, 255, 0.18);
    color: #fff;
  }

  .header.compact .dropdown.active .dropdown-menu {
    display: block !important;
  }
}

/* Dropdown Menus */
.header.compact .dropdown {
  position: relative;
}

.header.compact .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  z-index: 10000;
}

.header.compact .dropdown:hover .dropdown-menu {
  display: block;
}

.header.compact .dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.header.compact .dropdown-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

/* Dark Theme Dropdown Menus */
body.dark-tech-theme .header.compact .dropdown-menu,
body.dark-tech-theme .header.compact .dropdown:hover .dropdown-menu {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(138, 125, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 125, 255, 0.15) !important;
}

/* Fallback: some pages inject a non-compact header; keep dropdowns dark anyway */
body.dark-tech-theme .header .dropdown-menu,
body.dark-tech-theme .header .dropdown:hover .dropdown-menu {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(138, 125, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 125, 255, 0.15) !important;
}

body.dark-tech-theme .header.compact .dropdown-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-tech-theme .header .dropdown-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-tech-theme .header.compact .dropdown-link:hover {
  background: rgba(138, 125, 255, 0.2) !important;
  color: #fff !important;
}

body.dark-tech-theme .header .dropdown-link:hover {
  background: rgba(138, 125, 255, 0.2) !important;
  color: #fff !important;
}

/* Mobile dropdown overrides for dark theme */
@media (max-width: 768px) {
  body.dark-tech-theme .header.compact .dropdown-menu {
    background: rgba(15, 23, 42, 0.8) !important;
  }
}

.header.compact .dropdown-toggle::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 0.35rem;
  opacity: 0.7;
}

/* Tool Container - Dark Tech */
.tool-container.dark-tech {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* Compact Hero Section */
.tool-header.dark-tech {
  text-align: center;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.tool-header.dark-tech h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1e293b;
  line-height: 1.2;
}

.tool-header.dark-tech p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* Content Wrapper */
.content-wrapper.dark-tech {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  margin-bottom: 2rem;
}

/* Info Grid */
.info-grid.dark-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

/* Info Cards */
.info-card.dark-tech {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 6px;
  padding: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.2s;
}

.info-card.dark-tech:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.card-title.dark-tech {
  font-size: 0.7rem;
  color: #475569;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-icon {
  width: 14px;
  height: 14px;
  fill: #8b5cf6;
}

.info-row.dark-tech {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  align-items: center;
  gap: 0.75rem;
}

.info-row.dark-tech:last-child {
  border-bottom: none;
}

.info-label.dark-tech {
  font-weight: 500;
  color: #64748b;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.info-value.dark-tech {
  color: #1e293b;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  word-break: break-word;
  font-family: "Courier New", monospace;
}

/* Status Colors */
.status-good {
  color: #10b981 !important;
}
.status-warn {
  color: #f59e0b !important;
}
.status-bad {
  color: #ef4444 !important;
}
.status-info {
  color: #3b82f6 !important;
}

/* Buttons */
.btn-dark-tech {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-dark-tech:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

/* Tab Navigation */
.tab-nav.dark-tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 0.5rem;
}

.tab-btn.dark-tech {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #64748b;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.tab-btn.dark-tech:hover {
  background: rgba(226, 232, 240, 0.5);
  border-color: rgba(99, 102, 241, 0.3);
  color: #475569;
}

.tab-btn.dark-tech.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #6366f1;
  color: #fff;
}

/* Code Box */
.code-box.dark-tech {
  background: rgba(241, 245, 249, 0.5);
  padding: 0.65rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  word-break: break-all;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
  line-height: 1.4;
}

/* Privacy Score Banner */
.privacy-score {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.privacy-score-label {
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.privacy-score-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.privacy-meter {
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.privacy-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.5s ease;
  border-radius: 3px;
}

/* Tab content visibility */
.tab-content {
  display: none;
}

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

/* User Agent Card */
.ua-card {
  grid-column: 1 / -1;
}

.ua-box {
  background: rgba(241, 245, 249, 0.8);
  padding: 0.65rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  word-break: break-all;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.copy-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  transition: all 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 100%;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Educational Section */
.education-section {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 6px;
  padding: 1rem;
}

.education-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.edu-card {
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 4px;
  padding: 0.75rem;
}

.edu-card h4 {
  font-size: 0.75rem;
  color: #8b5cf6;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.edu-card p {
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.edu-link {
  font-size: 0.7rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

.edu-link:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

/* Related Tools */
.related-tools {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.related-tool-link {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #64748b;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s;
}

.related-tool-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  color: #6366f1;
}

/* Footer Dark Tech */
.footer.dark-tech {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  width: 100%;
  border-top: 2px solid #4f46e5;
}

.footer.dark-tech a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer.dark-tech a:hover {
  color: #8b5cf6;
}

.footer.dark-tech .footer-brand-title {
  color: #fff;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .header.compact {
    height: 50px;
    padding: 0.3rem 0;
  }

  .header.compact .header-content {
    padding: 0 0.75rem;
    height: 50px;
  }

  .header.compact .logo-image {
    height: 50px !important;
    max-height: 50px !important;
  }

  .tool-header.dark-tech h1 {
    font-size: 1.2rem;
    padding: 0 0.5rem;
  }

  .tool-header.dark-tech p {
    font-size: 0.75rem;
  }

  .tool-header.dark-tech {
    padding: 0.75rem 0 0.5rem;
  }

  .content-wrapper.dark-tech {
    padding: 0.75rem;
  }

  .info-grid.dark-tech {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header.compact {
    height: 48px;
  }

  .header.compact .header-content {
    padding: 0 0.5rem;
    height: 48px;
  }

  .header.compact .logo-image {
    height: 45px !important;
    max-height: 45px !important;
  }

  .tool-container.dark-tech {
    padding: 0 0.5rem;
  }

  .tool-header.dark-tech h1 {
    font-size: 1.1rem;
  }

  .content-wrapper.dark-tech {
    padding: 0.65rem;
    border-radius: 6px;
  }

  .info-card.dark-tech {
    padding: 0.6rem;
  }

  .card-title.dark-tech {
    font-size: 0.65rem;
  }
}

/* AdSense Placeholder Spacing (for future use) */
.ad-space-top {
  min-height: 90px;
  max-height: 90px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .ad-space-top {
    min-height: 50px;
    max-height: 50px;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   COMPREHENSIVE INLINE STYLE OVERRIDES
   Target all inline-styled white sections
   ============================================ */

/* All gradient backgrounds to dark transparent */
body.dark-tech-theme [style*="background: linear-gradient(135deg, #4c1d95"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #0f766e"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #7c2d12"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #eff6ff"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #f0fdf4"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #fef3c7"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #fffbeb"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #faf5ff"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #fae8ff"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #ecfccb"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #fee2e2"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #e0e7ff"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #fce7f3"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #f8f9fa"],
body.dark-tech-theme [style*="background: linear-gradient(135deg, #f0f9ff"] {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Light solid backgrounds to dark transparent */
body.dark-tech-theme [style*="background: #eff6ff"],
body.dark-tech-theme [style*="background: #dbeafe"],
body.dark-tech-theme [style*="background: #f0fdf4"],
body.dark-tech-theme [style*="background: #dcfce7"],
body.dark-tech-theme [style*="background: #fffbeb"],
body.dark-tech-theme [style*="background: #fef3c7"],
body.dark-tech-theme [style*="background: #fde68a"],
body.dark-tech-theme [style*="background: #faf5ff"],
body.dark-tech-theme [style*="background: #fae8ff"],
body.dark-tech-theme [style*="background: #f3e8ff"],
body.dark-tech-theme [style*="background: #ecfccb"],
body.dark-tech-theme [style*="background: #d9f99d"],
body.dark-tech-theme [style*="background: #fee2e2"],
body.dark-tech-theme [style*="background: #fecaca"],
body.dark-tech-theme [style*="background: #e0e7ff"],
body.dark-tech-theme [style*="background: #c7d2fe"],
body.dark-tech-theme [style*="background: #fce7f3"],
body.dark-tech-theme [style*="background: #fbcfe8"],
body.dark-tech-theme [style*="background: #f1f5f9"],
body.dark-tech-theme [style*="background: #f8fafc"],
body.dark-tech-theme [style*="background: #ffffff"],
body.dark-tech-theme [style*="background: white"] {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Semi-transparent white backgrounds */
body.dark-tech-theme [style*="background: rgba(255,255,255,0.98)"],
body.dark-tech-theme [style*="background: rgba(255,255,255,0.95)"],
body.dark-tech-theme [style*="background: rgba(255,255,255,0.25)"] {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* All dark text to light */
body.dark-tech-theme h2[style*="color: #0f172a"],
body.dark-tech-theme h2[style*="color: #1e293b"],
body.dark-tech-theme h2[style*="color: #ffffff"],
body.dark-tech-theme h3[style*="color: #0f172a"],
body.dark-tech-theme h3[style*="color: #78350f"],
body.dark-tech-theme h3[style*="color: #92400e"],
body.dark-tech-theme h3[style*="color: #1e40af"],
body.dark-tech-theme h3[style*="color: #166534"],
body.dark-tech-theme h3[style*="color: #065f46"],
body.dark-tech-theme h3[style*="color: #6b21a8"],
body.dark-tech-theme h3[style*="color: #3f6212"],
body.dark-tech-theme h3[style*="color: #991b1b"],
body.dark-tech-theme h3[style*="color: #3730a3"],
body.dark-tech-theme h3[style*="color: #831843"],
body.dark-tech-theme h3[style*="color: #ffffff"],
body.dark-tech-theme h3[style*="color: #0c4a6e"],
body.dark-tech-theme h4[style*="color: #0f172a"],
body.dark-tech-theme h4[style*="color: #ffffff"],
body.dark-tech-theme summary[style*="color: #334155"] {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* All body text to light */
body.dark-tech-theme p[style*="color: #334155"],
body.dark-tech-theme p[style*="color: #475569"],
body.dark-tech-theme p[style*="color: #451a03"],
body.dark-tech-theme p[style*="color: #1e40af"],
body.dark-tech-theme p[style*="color: #1e3a8a"],
body.dark-tech-theme p[style*="color: #15803d"],
body.dark-tech-theme p[style*="color: #047857"],
body.dark-tech-theme p[style*="color: #581c87"],
body.dark-tech-theme p[style*="color: #365314"],
body.dark-tech-theme p[style*="color: #7f1d1d"],
body.dark-tech-theme p[style*="color: #312e81"],
body.dark-tech-theme p[style*="color: #701a75"],
body.dark-tech-theme p[style*="color: #f3f4f6"],
body.dark-tech-theme p[style*="color: #f0fdfa"],
body.dark-tech-theme p[style*="color: #075985"],
body.dark-tech-theme p[style*="color: #1e293b"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* List items */
body.dark-tech-theme ul[style*="color: #451a03"] li,
body.dark-tech-theme [style*="color: #451a03"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Strong/bold text */
body.dark-tech-theme strong[style*="color: #78350f"],
body.dark-tech-theme strong[style*="color: #0f172a"],
body.dark-tech-theme strong[style*="color: #ffffff"] {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* All links to purple */
body.dark-tech-theme a[style*="color: #ea580c"],
body.dark-tech-theme a[style*="color: #0e7490"],
body.dark-tech-theme a[style*="color: #4f46e5"],
body.dark-tech-theme a[style*="color: #0c4a6e"],
body.dark-tech-theme a[style*="color: #1e40af"],
body.dark-tech-theme a[style*="color: #065f46"],
body.dark-tech-theme a[style*="color: #92400e"],
body.dark-tech-theme a[style*="color: #6b21a8"],
body.dark-tech-theme a[style*="color: #6366f1"] {
  color: #8a7dff !important;
}

/* Link backgrounds (buttons) */
body.dark-tech-theme a[style*="background: #ffffff"],
body.dark-tech-theme a[style*="background: white"],
body.dark-tech-theme a[style*="background: #f8fafc"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.dark-tech-theme a[style*="background: #ffffff"]:hover,
body.dark-tech-theme a[style*="background: white"]:hover,
body.dark-tech-theme a[style*="background: #f8fafc"]:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(138, 125, 255, 0.5) !important;
}

/* Details/FAQ elements */
body.dark-tech-theme details[style*="background: #f8fafc"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-tech-theme details p[style*="color: #475569"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Div backgrounds for cards */
body.dark-tech-theme div[style*="background: #f8fafc"],
body.dark-tech-theme div[style*="background: #ffffff"],
body.dark-tech-theme div[style*="background: white"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Border overrides */
body.dark-tech-theme [style*="border: 2px solid #e2e8f0"],
body.dark-tech-theme [style*="border: 1px solid #e2e8f0"],
body.dark-tech-theme [style*="border: 2px solid #cbd5e1"],
body.dark-tech-theme [style*="border: 1px solid #93c5fd"],
body.dark-tech-theme [style*="border: 1px solid #86efac"],
body.dark-tech-theme [style*="border: 1px solid #bef264"],
body.dark-tech-theme [style*="border: 1px solid #fca5a5"],
body.dark-tech-theme [style*="border: 1px solid #a5b4fc"],
body.dark-tech-theme [style*="border: 1px solid #d8b4fe"],
body.dark-tech-theme [style*="border: 1px solid #f9a8d4"],
body.dark-tech-theme [style*="border-left: 4px solid #4f46e5"],
body.dark-tech-theme [style*="border-left: 4px solid #3b82f6"],
body.dark-tech-theme [style*="border-left: 4px solid #10b981"],
body.dark-tech-theme [style*="border-left: 4px solid #f59e0b"],
body.dark-tech-theme [style*="border-left: 4px solid #8b5cf6"],
body.dark-tech-theme [style*="border-left: 5px solid #f59e0b"],
body.dark-tech-theme [style*="border: 2px solid #fbbf24"],
body.dark-tech-theme [style*="border: 2px solid #7c3aed"],
body.dark-tech-theme [style*="border: 2px solid #14b8a6"],
body.dark-tech-theme [style*="border: 2px solid #dc2626"] {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Ensure left-border highlight stays visible but on-brand */
body.dark-tech-theme [style*="border-left: 4px solid #3b82f6"],
body.dark-tech-theme [style*="border-left: 4px solid #10b981"],
body.dark-tech-theme [style*="border-left: 4px solid #f59e0b"],
body.dark-tech-theme [style*="border-left: 4px solid #8b5cf6"],
body.dark-tech-theme [style*="border-left: 4px solid #4f46e5"],
body.dark-tech-theme [style*="border-left: 5px solid #f59e0b"] {
  border-left-color: rgba(138, 125, 255, 0.55) !important;
}

/* Span text colors */
body.dark-tech-theme span[style*="color: #cbd5e1"],
body.dark-tech-theme span[style*="color: #1e293b"],
body.dark-tech-theme span[style*="color: #0f172a"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Input fields if any */
body.dark-tech-theme input[style*="border: 1px solid #e2e8f0"],
body.dark-tech-theme input[style*="border: 2px solid #e2e8f0"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Breadcrumbs */
body.dark-tech-theme nav[style*="color: #e2e8f0"] a,
body.dark-tech-theme nav[style*="color: #e2e8f0"] span {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.dark-tech-theme [style*="color: #e2e8f0"] {
  color: rgba(255, 255, 255, 0.75) !important;
}
