html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Cantarell, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  background-color: #ffffff;
  color: #111827;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =======================================================
   LAYOUT & MAIN CONTENT
   ======================================================= */
.layout {
  display: flex;
  height: calc(100vh - 80px);
  margin-top: 80px;
  width: 100%;
}

#main {
  flex: 1;
  padding: 16px;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-right: -265px;
  padding-right: 275px;
}

/* =======================================================
   SIDEBARS
   ======================================================= */
.sidenav,
.rightnav {
  flex-shrink: 0;
  overflow-y: auto;
  height: 100%;
  background-color: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0 1rem 2rem;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  scrollbar-width: none;
}

.sidenav {
  width: 275px;
  gap: 12px;
}
.rightnav {
  width: 265px;
  gap: 10px;
  position: relative;
  left: -16px;
}

.sidenav:hover,
.rightnav:hover {
  scrollbar-width: thin;
}

.sidenav a,
.rightnav a {
  display: flex;
  align-items: center;
  font-size: 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 6px 8px;
  gap: 14px !important;
}

.sidenav a img,
.rightnav a img {
  width: 24px;
  height: 24px;
}

.sidenav a .dodo-icon,
.rightnav a .dodo-icon {
  width: 32px !important;
  height: 32px !important;
  margin-right: -4px;
  margin-left: -4px;
}

.sidenav a:hover,
.rightnav a:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.sidenav hr {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 12px -1rem;
  width: 100%;
}

footer a:hover { text-decoration: underline; }

/* =======================================================
   SCROLLBARS & MISC
   ======================================================= */
::-webkit-scrollbar { width: 0; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
*:hover::-webkit-scrollbar { width: 6px; }
*:hover::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.ad-container { margin: 1rem 0; }
.ad-placeholder { border: 1px dashed #ccc; border-radius: 4px; }

.main-wrapper { display: flex; flex-direction: column; flex: 1; min-width: 0; }
footer { flex-shrink: 0; }

/* Floating toast container */
#form-message {
  position: fixed;
  top: 35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}
#form-message > div { pointer-events: auto; }

/* =======================================================
   RESPONSIVE DESIGN
   ======================================================= */
@media (max-width: 1024px) {
  .sidenav, .rightnav {
    width: 180px;
  }
  #main {
    margin-right: -180px;
    padding-right: 180px;
  }
}

@media (max-width: 768px) {
  .sidenav, .rightnav { display: none; }
  #main { margin: 0; padding: 1rem; padding-right: 1rem; }
  .layout { height: calc(100vh - 60px); margin-top: 60px; }

  /* Forms stack vertically */
  .flex-col.sm\\:flex-row { flex-direction: column !important; }
  .flex-col.sm\\:flex-row > *,
  form.flex.flex-col.sm\\:flex-row > * {
    width: 100% !important;
    margin-bottom: 0.75rem;
  }

  button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .grid.grid-cols-12 { display: block; }
  .grid.grid-cols-12 > * {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .text-2xl { font-size: 1.5rem; }
  .text-xl { font-size: 1.25rem; }
  .p-4 { padding: 1rem; }
  .mb-6 { margin-bottom: 1rem; }
}

@media (max-width: 480px) {
  .layout { height: calc(100vh - 50px); margin-top: 50px; }
  #main { padding: 0.5rem; }
  .text-lg { font-size: 1rem; }
  .text-base { font-size: 0.875rem; }
  button, input, select, textarea {
    min-height: 44px;
    font-size: 16px;
  }
}

/* =======================================================
   MOBILE FIXES
   ======================================================= */
@media (max-width: 768px) {
  html, body { overflow: auto !important; }
  #main { margin: 0 !important; padding: 1rem !important; width: 100% !important; }
  .sidenav, .rightnav { display: none !important; }

  #offenders-list li {
    display: block !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  }

  .grid.grid-cols-12.font-bold { display: none !important; }

  #offenders-list li .col-span-1,
  #offenders-list li .col-span-2,
  #offenders-list li .col-span-6 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
  }

  #offenders-list li .col-span-1:first-child {
    font-weight: bold !important;
    font-size: 1.1rem !important;
    color: #ed1c24 !important;
  }

  #offenders-list li .col-span-6 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
  }

  #offenders-list li .col-span-1:not(:first-child),
  #offenders-list li .col-span-2 {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    display: inline-block !important;
    margin-right: 1rem !important;
  }

  #offenders-list li .col-span-1:not(:first-child)::before {
    content: "Reports: ";
    font-weight: 500;
    color: #374151;
  }
  #offenders-list li .col-span-2:nth-of-type(1)::before {
    content: "Reason: ";
    font-weight: 500;
    color: #374151;
  }
  #offenders-list li .col-span-2:nth-of-type(2)::before {
    content: "Platform: ";
    font-weight: 500;
    color: #374151;
  }

  img { max-width: 100% !important; height: auto !important; }
  p, li, span { font-size: 1rem !important; line-height: 1.5 !important; }
}

/* =======================================================
   MOBILE MENU
   ======================================================= */


@media (max-width: 768px) {
  .hamburger { display: block; }
  .mobile-nav {
    display: none;
    background: #f9fafb;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
  }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li { margin: 1rem 0; }
  .mobile-nav a {
    color: #111827;
    text-decoration: none;
    font-size: 1.1rem;
    gap: 14px;
  }
  .mobile-nav a:hover { text-decoration: underline; }
  .mobile-nav.show { display: block; }
}

.mobile-nav a img,
.mobile-nav a svg { width: 24px; height: 24px; }
.mobile-nav a .dodo-icon {
  width: 32px !important;
  height: 32px !important;
  margin-right: -4px;
  margin-left: -4px;
}

/* =======================================================
   OFFENDER TABLE HEADER FIX
   ======================================================= */
.desktop-offender-header { display: grid; }
.offender-header-row { display: none; }

@media (max-width: 768px) {
  .desktop-offender-header { display: none !important; }
  .offender-header-row {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    font-weight: bold;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 769px) {
  .offender-header-row { display: none !important; }
  .desktop-offender-header { display: grid !important; }
}

/* =======================================================
   HIDE DESKTOP NAV ON SMALL SCREENS
   ======================================================= */
@media (max-width: 768px) {
  .site-header nav { display: none !important; }
  .mobile-nav.show { display: block; }
}

@media (min-width: 769px) {
  .hamburger, .mobile-nav { display: none !important; }
}

/* =======================================================
   ✅ CLEAN, UNIFIED HEADER
   ======================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #ffffff;
  border-bottom: 2px solid #9ca3af;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header h1 {
  font-family: poppins, montserrat, sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-header span:first-child { color: #FF4500; }  /* reddit orange */
.site-header span:last-child  { color: #1D2D47; }  /* deep navy */

.site-header img,
.logo-a {
  width: 250px;
  height: auto;
  vertical-align: middle;
  position: relative;
  top: -2px;              /* ⬆ raise just slightly; adjust to -1px or -3px for fine-tuning */
  transform: translateY(0);
  margin-left: 0px;
  margin-right: 0px;
}

/* Scales for all screens */
.site-header h1 span:first-child,
.site-header h1 span:last-child {
  font-size: 3.5rem !important;
  line-height: 1 !important;
}

@media (max-width: 480px) {
  .site-header h1 span:first-child,
  .site-header h1 span:last-child {
    font-size: 3.5rem !important;
  }
}

/* =======================================================
   DESKTOP HEADER ALIGNMENT (≥769px)
   ======================================================= */
@media (min-width: 769px) {
  .site-header {
    justify-content: flex-start;   /* align left */
    padding-left: 1rem;            /* some breathing room */
  }

  .site-header h1 {
    text-align: left;
    justify-content: flex-start;
  }
}

/* -----------------------------------------------
   ✅ FINAL MOBILE MENU - BELOW FIXED HEADER
----------------------------------------------- */
.hamburger {
  display: none;
  background-color: #1b1b32;
  color: white;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  z-index: 1001;
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-nav,
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px !important; /* Header (80px) + Menu (≈50px) */
  }


/* =======================================================
   FINAL — Keep header + hamburger fixed together, content below
   ======================================================= */
@media (max-width: 768px) {
  /* Keep both fixed as one top stack */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
  }

  .hamburger {
    position: fixed;
    top: 80px; /* directly below header */
    left: 0;
    right: 0;
    z-index: 1001;
  }

  /* Content starts just below both */
  .layout {
    margin-top: 80px !important; /* 80 header + ~50 hamburger */
    height: auto !important;
  }

  html, body {
    height: auto !important;
    overflow-y: auto !important; /* normal scroll */
  }

  /* Ensure the menu dropdown stays attached to the hamburger */
  .mobile-nav {
    position: fixed;
    top: 130px; /* sits under both header and hamburger */
    left: 0;
    right: 0;
    bottom: 0;
    background: #f9fafb;
    overflow-y: auto;
    display: none;
    z-index: 1000;
  }

  .mobile-nav.show {
    display: block;
  }
}
/* =======================================================
   ✅ Keep scrollbar visible on mobile
   ======================================================= */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px !important;      /* visible slim scrollbar */
    background: #f3f4f6 !important;
  }

  ::-webkit-scrollbar-thumb {
    background: #9ca3af !important;  /* light gray thumb */
    border-radius: 3px;
  }

  html, body {
    overflow-y: scroll !important;  /* force scrollbar to stay visible */
  }
}


