body {
      background-color: #fff;
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      padding-top: 80px; /* space for navbar */
    }

    .navbar {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
  }

    .navbar-brand {
      font-size: 1.1rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      color: #000 !important;
    }

    .nav-link {
      color: #333 !important;
      margin-left: 18px;
      transition: color 0.2s ease;
    }

    .nav-link:hover, .nav-link.active {
      color: #007bff !important;
    }

    .content-container {
      animation: fadeIn 0.6s ease-in-out;
    }

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

    .dropzone {
      border: 2px dashed #007bff;
      padding: 30px;
      text-align: center;
      border-radius: 10px;
      background-color: #f8f9fa;
      color: #007bff;
      transition: background-color 0.3s ease;
    }

    .dropzone.dragover {
      background-color: #e3f2fd;
    }

    .dropdown:hover .dropdown-menu {
      display: block;
      margin-top: 0;
    }

    :root{
    --bg: #0f172a;         /* slate-900 */
    --card: #0b1223;       /* slightly lighter than bg */
    --ink: #e5e7eb;        /* gray-200 */
    --muted: #9ca3af;      /* gray-400 */
    --brand: #2563eb;      /* blue-600 */
    --ok: #059669;         /* emerald-600 */
    --warn: #f59e0b;       /* amber-500 */
    --danger: #ef4444;     /* red-500 */
    --ring: rgba(37, 99, 235, .25);
  }

  /* Page backdrop */
  .hero{
    position:relative;
    padding: 68px 16px 36px;
    text-align:center;
    background:
      radial-gradient(1200px 600px at 50% -200px, rgba(37,99,235,.15), transparent),
      linear-gradient(180deg, #0f172a 0%, #0b1223 100%);
    color: var(--ink);
    overflow:hidden;
  }
  .hero h1{ font-weight:800; letter-spacing:.3px; }
  .hero p.lead{ color: var(--muted); max-width: 900px; margin: 10px auto 0; }

  /* Quick actions */
  .actions{
    display:grid; gap:16px;
    grid-template-columns: repeat(3, minmax(220px,1fr));
    max-width:1100px; margin: 26px auto 0; padding: 0 16px;
  }
  .action{
    background:#ffffff; color:#0f172a;
    border-radius:14px; padding:18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease;
    text-align:left;
  }
  .action:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
  .action .title{ font-weight:700; margin:0 0 6px; display:flex; align-items:center; gap:8px; }
  .action .desc{ color:#4b5563; font-size:14px; margin:0 0 12px; }
  .pill{ display:inline-block; font-size:11px; padding:4px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; font-weight:700; letter-spacing:.2px; }
  .cta{ display:inline-block; margin-top:4px; padding:10px 14px; border-radius:10px; font-weight:700; text-decoration:none; }
  .cta-embed{ background:#1f2937; color:#fff; }
  .cta-embed:hover{ background:#111827; }
  .cta-detect{ background:var(--brand); color:#fff; }
  .cta-detect:hover{ background:#1d4ed8; }
  .cta-cleanse{ background:var(--ok); color:#fff; }
  .cta-cleanse:hover{ background:#047857; }

  /* Details / Methods */
  .section{
    max-width:1100px; margin: 34px auto 0; padding: 0 16px 60px;
  }
  .panel{
    background: #ffffff; color:#0f172a;
    border-radius:14px; padding: 18px 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
  }
  .panel + .panel{ margin-top:14px; }

  .grid-2{ display:grid; gap:16px; grid-template-columns: repeat(2, minmax(280px,1fr)); }
  .k{
    background:#f8fafc; border:1px solid #e5e7eb;
    border-radius:12px; padding:14px 16px;
  }
  .k h4{ margin:0 0 6px; font-size:15px; font-weight:800; color:#111827; }
  .k p, .k li{ font-size:14px; color:#374151; margin:0; }
  .k ul{ margin: 6px 0 0 18px; }

  /* Disclosures (pure CSS, no JS) */
  details{
    border:1px solid #e5e7eb; border-radius:12px; padding:12px 14px; background:#ffffff;
    transition: box-shadow .15s ease;
  }
  details:hover{ box-shadow: 0 8px 18px rgba(0,0,0,.06); }
  summary{
    cursor:pointer; list-style:none; user-select:none; font-weight:800;
    display:flex; align-items:center; gap:10px; color:#111827;
  }
  summary::marker, summary::-webkit-details-marker{ display:none; }
  .badge{ display:inline-block; font-size:11px; padding:3px 8px; border-radius:999px; background:#ecfeff; color:#0e7490; font-weight:700; }
  .muted{ color:#6b7280; font-size:13px; }
  .callout{ background:#fff7ed; border:1px solid #fed7aa; color:#92400e; padding:10px 12px; border-radius:10px; }

  @media (max-width: 980px){
    .actions{ grid-template-columns:1fr; }
    .grid-2{ grid-template-columns:1fr; }
  }

  /*login*/
  .wrap{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:24px}
  .card{max-width:420px;width:100%;background:#fff;border-radius:14px;padding:26px;box-shadow:0 12px 32px rgba(0,0,0,.10)}
  .title{font-weight:800;font-size:22px;margin-bottom:12px}
  .form-control{margin-top:8px}
  .btn{margin-top:14px;background:#2563eb;color:#fff;border:none;border-radius:10px;padding:12px 18px;font-weight:700}
  .btn:hover{background:#1d4ed8}

  /*register*/
  .wrap{min-height:80vh;display:flex;align-items:center;justify-content:center;padding:24px}
  .card{max-width:520px;width:100%;background:#fff;border-radius:14px;padding:26px;box-shadow:0 12px 32px rgba(0,0,0,.10)}
  .title{font-weight:800;font-size:22px;margin-bottom:12px}
  .btn{margin-top:14px;background:#059669;color:#fff;border:none;border-radius:10px;padding:12px 18px;font-weight:700}
  .btn:hover{background:#047857}

  /*embed*/
  .embed-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    z-index: 10;
    position: relative;
    text-align: center;
  }

  .click-zone {
    border: 2px dashed hsl(0, 100%, 80%);
    background: #f9fbff;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }

  .click-zone:hover {
    background-color: #eef4ff;
    border-color: hsl(0, 100%, 70%);
  }

  .upload-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 10px;
  }

  .upload-instruction {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
  }

  .upload-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
  }

  .highlight-drop {
    outline: none !important;
    background-color: transparent !important;
  }

  #file-name {
    font-size: 0.95rem;
    color: #333;
    margin-top: 10px;
  }

  .embed-link {
    display: inline-block;
    margin-top: 25px;
    color: black;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .embed-link:hover {
    background: hsl(0, 100%, 70%);
  }

  .right-file-input {
    display: block;
    margin-left: 25%;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .result-container {
    animation: fadeInUp 0.6s ease;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
  }
  .result-heading {
    font-size: 28px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 20px;
  }
  .result-message {
    font-size: 18px;
    margin-bottom: 24px;
    color: #333;
  }
  .preview {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    margin: 0 auto 22px auto;
    display: block;
  }
  .download-btn {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
  }
  .download-btn:hover { background-color: #1d4ed8; }
  .home-link {
    display: block;
    margin-top: 18px;
    color: #6b7280;
    text-decoration: none;
  }
  .home-link:hover { text-decoration: underline; }

  @media (max-width: 768px) {
    .result-container { margin: 20px 15px; padding: 20px; }
    .result-heading { font-size: 24px; }
    .result-message { font-size: 16px; }
    .download-btn { padding: 10px 20px; font-size: 16px; }
  }
  /*admin dashboard*/
  .wrap{padding:28px}
  .title{text-align:center;font-weight:800;margin-bottom:6px}
  .who{text-align:center;color:#6b7280;margin-bottom:16px}
  .toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}
  .btn-danger{background:#ef4444;color:#fff;border:none;border-radius:10px;padding:10px 14px;font-weight:700}
  .btn-danger:hover{background:#dc2626}
  table.table{background:transparent}
  thead{background:#111827;color:#fff}
  tbody{background:#fff}
  .badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}
  .b-ok{background:#dcfce7;color:#166534}
  .muted{color:#6b7280}

  /*detect*/
  .tool-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    z-index: 10;
    position: relative;
    text-align: center;
  }

  .click-zone {
    background: linear-gradient(to right, #dbeafe, #eff6ff);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 0 0 3px #3b82f6, 0 0 20px #3b82f6aa;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
  }

  .click-zone:hover {
    background: linear-gradient(to right, #dbeafe, #e0f2fe);
    box-shadow: 0 0 0 3px #2563eb, 0 0 25px #3b82f6cc;
  }

  .click-note {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
  }

  .highlight-drop {
    outline: none !important;
    background-color: transparent !important;
  }

  #file-name {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
  }

  .detect-link {
    display: inline-block;
    margin-top: 25px;
    color: black;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .detect-link:hover {
    background: hsl(224, 100%, 63%);
  }

  /*detect_result*/
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .full-page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
  }

  .result-container {
    animation: fadeInUp 0.6s ease;
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
  }

  .result-heading {
    font-size: 28px;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 25px;
  }

  .result-section {
    text-align: left;
    margin-bottom: 25px;
  }

  .result-label {
    font-weight: bold;
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
  }

  .result-block {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
    font-size: 15px;
    color: #111827;
  }

  .icon {
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
    color: #2563eb;
  }

  .error {
    background-color: #ffe5e5;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .back-link {
    display: inline-block;
    margin-top: 25px;
    color: black;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .back-link:hover {
    background: hsl(224, 100%, 63%);
  }

  .btn-download {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;

    
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
  }

  .btn-download:hover {
    background-color: #eeeeee;
  }

  @media (max-width: 768px) {
    .result-container { margin: 20px 15px; padding: 20px; }
    .result-heading { font-size: 24px; }
    .result-label { font-size: 16px; }
  }

  /*cleanse*/
   .tool-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    z-index: 10;
    position: relative;
    text-align: center;
  }

  .click-zone {
    background: linear-gradient(to right, #dbeafe, #eff6ff);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 0 0 3px #19916f, 0 0 20px #13a57c;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
  }

  .click-zone:hover {
    background: linear-gradient(to right, #dbeafe, #e0f2fe);
    box-shadow: 0 0 0 3px #0f9771, 0 0 25px #0f9771;
  }

  .click-note {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
  }

  .highlight-drop {
    outline: none !important;
    background-color: transparent !important;
  }

  #file-name {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
  }

  .cleanse-link {
    display: inline-block;
    margin-top: 25px;
    color: black;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .cleanse-link:hover {
    background: #0f9771;
  }

  /*cleanse_result*/
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .full-page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
  }

  .result-container {
    animation: fadeInUp 0.6s ease;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
  }

  .result-heading {
    font-size: 28px;
    font-weight: bold;
    color: #047857; /* Emerald green */
    margin-bottom: 20px;
  }

  .result-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
  }

  .download-btn {
    background-color: #10b981;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 10px;
  }

  .download-btn:hover {
    background-color: #059669;
  }

  .home-link {
    display: block;
    margin-top: 25px;
    color: #6b7280;
    text-decoration: none;
  }

  .home-link:hover {
    text-decoration: underline;
  }