/* assets/css/dark.css - stronger dark theme overrides */

/* === Color Tokens === */
:root {
  --bg: #090c10;
  --surface: #10151a;
  --card: #121a21;
  --muted: #a1abb5;
  --muted-2: #707981;
  --accent: #6b6efb;
  --accent-2: #9f8aff;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --transition: 0.18s ease;
}

/* === Base Page === */
html, body {
    
  
  background-blend-mode: overlay, soft-light, normal;

  transition: background 0.4s ease;

  color: #e8edf4;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Cards === */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

/* === Navbar === */
.navbar-dark {
  background: linear-gradient(90deg, rgba(11,14,18,0.95), rgba(9,10,13,0.95));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}


/* === Form Controls === */
.form-control-dark, .form-select-dark {
  background: rgba(255,255,255,0.04) !important;
  color: #e6eef6 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px;
  transition: border var(--transition), box-shadow var(--transition);
}
.form-control-dark:focus, .form-select-dark:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(107,110,251,0.25);
}
::placeholder { color: #8c96a3 !important; }

/* === Buttons === */
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #5a5cf0);
  border: none;
  border-radius: 8px;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #7b7efd, #5a5cf0);
  transform: translateY(-1px);
}
.btn-outline-light {
  color: #e6eef6;
  border-color: rgba(255,255,255,0.1);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
}



/* Badges */

.badge-tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
  color: #fff;
}

.badge-tag.badge-tag--illegal { background-color: #dc3545 !important; }
.badge-tag.badge-tag--banned { background-color: #6c757d !important; }
.badge-tag.badge-tag--temp_banned { background-color: #fd7e14 !important; }
.badge-tag.badge-tag--suspended { background-color: #343a40 !important; }
.badge-tag.badge-tag--restricted { background-color: #17a2b8 !important; }
.badge-tag.badge-tag--warning { background-color: #ffc107 !important; color: #212529 !important; }
.badge-tag.badge-tag--guild_action { background-color: #007bff !important; }
.badge-tag.badge-tag--unknown { background-color: #6c757d !important; }





.badge.bg-muted {
  background: var(--muted-badge);
  color: #d8e0e8;
  border-radius: 999px;
  padding: 0.35em 0.6em;
  font-size: 0.82rem;
}

/* small muted text */
.small-muted, .text-muted {
  color: black;
  font-size: 0.85rem;
}

.small-muted,
.text-muted {
    color: #9aa4ad !important;
}

/* monospace */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }

/* Table tweaks */
.table td, .table th {
  border-top: none;
  color: #cbd5e1;
}
.table thead th {
  color: #9aa3af;
  font-weight: 600;
}

/* Cards inside results */
.card .card-body { padding: 1rem; }

/* Pre (raw JSON) */
pre.json {
  background: #0b0e10;
  color: #c9d1d9;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  max-height: 420px;
  overflow: auto;
}

/* Scrollbar for dark */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* small responsive tweaks */
@media (max-width: 767px) {
  .card { border-radius: 10px; }
  .navbar-brand img { width: 24px; height: 24px; }
}

/* Utility: subtle shadow for big hero cards */
.shadow-sm {
  box-shadow: 0 6px 20px rgba(2,6,23,0.55);
}

/* Specific: results card (makes each result look like screenshot) */
.result-card {
  background: rgba(7,9,10,0.55);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 16px;
}
.result-card .title { font-weight: 600; font-size: 1.03rem; color: #ffffff; }
.result-card .meta { color: var(--muted); font-size: .86rem; }

/* ensure badges inside result show distinct colors */
.badge.reason { background: #4b5563; color: #fff; }
.badge.category { background: #3b82f6; color: #fff; }

/* make sure links are visible in dark */
a { color: #9fb0ff; }
a:hover { color: #dbe6ff; }


/* === Force all text to white === */
body, html, p, h1, h2, h3, h4, h5, h6,
.navbar, .nav-link, .card, .card-body, .table, .btn, .form-label,
small, .text-muted, .form-control, .form-select, label, a, span, div {
  color: #ffffff !important;
}

/* Keep link hover color distinct */
a:hover {
  color: #9fb0ff !important;
  text-decoration: none;
}

/* Placeholder text in forms */
::placeholder {
  color: #cccccc !important;
  opacity: 1 !important;
}

/* Form controls background stays dark */
.form-control, .form-select {
  background-color: #1a1c1f !important;
  color: #ffffff !important;
  border-color: #2b2d31 !important;
}

/* Table text white */
.table td, .table th {
  color: #ffffff !important;
}

/* Card titles and descriptions */
.card-title, .card-text {
  color: #ffffff !important;
}

.text-muted { color: #cfcfcf !important; }


/* MODAL */

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
  overflow: hidden; /* no outer scrolling */
}
.modal[aria-hidden="false"] {
  display: flex;
}

/* Modal content – fixed height and internal scroll */
.detail-modal-content {
  width: 100%;
  max-width: 960px;
  max-height: 90vh; /* cap to viewport height */
  overflow-y: auto; /* scroll only inside */
  background: #0b0f15;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  animation: modalIn 0.25s ease-out;
}

/* Custom scrollbars for WebKit */
.detail-modal-content::-webkit-scrollbar {
  width: 8px;
}
.detail-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}
.detail-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}


/* Fade + slide-up entrance animation */
@keyframes modalIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover { color: #fff; }


/* Detail modal inner elements */
.detail-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #6b21a8, #9333ea);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.detail-alert {
  background: linear-gradient(90deg, #470505, #dd1709);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #fff;
}

.detail-badges {
  margin: 12px 0 16px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-badges .badge-tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.detail-card,
.detail-card-full {
  background: #0f1720;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.detail-card-full {
  grid-column: 1 / -1;
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}
.card-body {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }

/* clickable result card */
.result-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:focus {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}
.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}



.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  user-select: none;
  transition: all 0.2s ease;
}

.badge-tag i {
  font-size: 13px;
  opacity: 0.85;
}

/* Hover effect for subtle Discord feel */
.badge-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* --- Canonical badges --- */
.badge--user { background-color: #5865f2; }
.badge--auto { background-color: #4752c4; }
.badge--banned { background-color: #992d22; }
.badge--temp-banned { background-color: #e67e22; }
.badge--illegal { background-color: #ed4245; }
.badge--offensive { background-color: #ff4d6d; }
.badge--partial { background-color: #faa61a; color: #1e1e1e; }
.badge--incompatible { background-color: #232428; color: #f0f0f0; border: 1px solid #555; }
.badge--suspended { background-color: #7289da; }
.badge--restricted { background-color: #2b2d31; border: 1px solid #40444b; color: #fff; }
.badge--warning { background-color: #f1c40f; color: #1e1e1e; }
.badge--guild { background-color: #3ba55d; }
.badge--terminated { background-color: #8b0000; box-shadow: 0 0 6px #ff444455; }

/* --- Extended badges --- */
.badge--alt { background-color: #9b59b6; }            /* purple for alt evasion */
.badge--spam { background-color: #e91e63; }           /* pinkish-red for spam */
.badge--hate { background-color: #c0392b; }           /* dark red for hate speech */
.badge--system { background-color: #7f8c8d; }         /* gray for system/test entries */
.badge--policy { background-color: #16a085; }         /* teal for policy violations */

/* --- Additional dataset badges --- */
.badge--other { background-color: #9ca3af; }                  /* gray for Other */
.badge--csam { background-color: #dc2626; }                   /* red for Child Sexual Abuse Material */
.badge--nci { background-color: #f97316; }                    /* orange for Non Consensual Image Sharing */
.badge--phishing { background-color: #f59e0b; }               /* yellow-orange for Phishing */
.badge--age_minor { background-color: #3b82f6; }              /* blue for Age Specific Restrictions Minors */
.badge--incitement { background-color: #ef4444; }             /* red for Incitement Violence Hatred */
.badge--coord_harm { background-color: #ef4444; }             /* red for Coordinated Harm */
.badge--goods { background-color: #f59e0b; }                  /* yellow-orange for Goods/Services Not Permitted */
.badge--impersonation { background-color: #ef476f; }          /* pink for Impersonation/Hijacking */
.badge--bullying { background-color: #f97316; }               /* orange for Online Bullying Intimidation */
.badge--grooming { background-color: #dc2626; }               /* red for Grooming Sexual Enticement Minors */
.badge--copyright { background-color: #14b8a6; }              /* teal for Copyright Infringement */
.badge--age { background-color: #3b82f6; }                    /* blue for Age Specific Restrictions */
.badge--cyberbullying { background-color: #f97316; }          /* orange for Cyber Bullying Intimidation */
.badge--suicide { background-color: #ef4444; }                /* red for Suicide */
.badge--nci_deepfake { background-color: #f59e0b; }           /* yellow-orange for Non Consensual Items Deepfake */
.badge--inauthentic { background-color: #94a3b8; }            /* gray-blue for Inauthentic Accounts */
.badge--ncm_deepfake { background-color: #f59e0b; }           /* yellow-orange for Non Consensual Material Deepfake */
.badge--ibsa { background-color: #dc2626; }                   /* red for Image Based Sexual Abuse */
.badge--misinfo { background-color: #f59e0b; }                /* yellow-orange for Misinformation */
.badge--disinfo { background-color: #f97316; }                /* orange for Disinformation */
.badge--trafficking { background-color: #ef4444; }            /* red for Human Trafficking */
.badge--trademark { background-color: #14b8a6; }              /* teal for Trademark Infringement */
.badge--data_falsification { background-color: #f59e0b; }     /* yellow-orange for Data Falsification */

/* --- Default catch-all --- */
.badge--default { background-color: #99aab5; }





/* ======= Pagination Wrapper ======= */
.pagination-wrapper {
  background: #111214; /* deep dark gray */
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #913737;
  font-size: 0.9rem;
}

.pagination-wrapper .text-muted {
  color: #0f2752 !important;
}

.pagination-wrapper .pagination {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
}

/* ======= Pagination Buttons ======= */
.page-item {
  list-style: none;
}

.page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  color: #c7c7c7;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-link:hover {
  color: #fff;
  background: rgba(85, 98, 255, 0.15);
  text-decoration: none;
}

.page-item.active .page-link {
  background: #5562ff;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 3, 37, 0.4);
}

.page-item.disabled .page-link {
  color: #555;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ellipsis */
.page-item.disabled span.page-link {
  background: transparent;
  border: none;
  color: #777;
}

/* Responsive tweak */
@media (max-width: 576px) {
  .pagination-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}



/* Demo Modal Overrides */
.detail-modal-content .modal-header,
.detail-modal-content .modal-footer {
  border: none;
}

.detail-modal-content .modal-title {
  color: var(--accent);
}

.detail-modal-content .modal-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.detail-modal-content .btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  transition: var(--transition);
}
.detail-modal-content .btn-primary:hover {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
}

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