/* TEST */
/* Ultra Modern DARK Design for designchan.org */
/* Base Colors: #1a1a1a #2d2d2d #ff5d89 #ff1b5e #ffffff */

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

body {
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Make everything feel snappy with NEON effects */
a, button, input[type="submit"], .post, img {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Basic Layout */
body {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  padding-top: 90px; /* Space for fixed header */
}

.hidden {
  display: none;
}

/* Links */
a, a:visited {
  text-decoration: none;
  color: #ffffff;
}

a:hover, .intro a.post_no:hover {
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

a.post_no {
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.intro a.post_no {
  color: inherit;
}

.intro a.post_no, p.intro a.email, p.intro a.post_anchor {
  margin: 0;
}

.intro a.email span.name {
  color: #ffffff;
}

.intro a.email:hover span.name {
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

/* Header and Logo - DARK WITH PINK GLOW */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #2d2d2d;
  border-bottom: 2px solid #ff5d89;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255,93,137,0.3), 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 0 0 15px 15px;
}

/* Add Logo before H1 */
h1:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('/static/DESIGNCHAN%20ORG%20-%20WEB%20DESIGN%20SHARING%20dark%20icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 15px;
  filter: drop-shadow(0 0 10px #ff5d89);
}

h1 {
  font-family: 'Arial', sans-serif;
  font-size: 24px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  letter-spacing: normal;
  font-weight: 700;
  text-shadow: 0 0 15px #ff5d89;
}

header div.subtitle, h1 {
  color: #ffffff;
  text-align: center;
}

header div.subtitle {
  font-size: 12px;
  color: #cccccc;
}

h2 {
  color: #ffffff;
  font-size: 20px;
  margin: 10px 0;
  padding: 0;
}

/* Non-Sticky Main Navigation Header */
/* Add these rules to your existing CSS stylesheet */

/* Main site navigation header - appears above sticky board header */
.main-nav-header {
  background: #1a1a1a;
  border-bottom: 1px solid #3d3d3d;
  padding: 12px 20px;
  text-align: center;
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-nav-header .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.main-nav-header .nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: rgba(45,45,45,0.8);
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav-header .nav-links a:hover {
  background: #ff5d89;
  border-color: #ff5d89;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,93,137,0.4);
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Icons for navigation links */
.main-nav-header .nav-links a.home-link:before {
  content: "🏠";
  font-size: 16px;
}

.main-nav-header .nav-links a.about-link:before {
  content: "📋";
  font-size: 16px;
}

.main-nav-header .nav-links a.contact-link:before {
  content: "📧";
  font-size: 16px;
}

.main-nav-header .nav-links a.wotm-link:before {
  content: "🏆";
  font-size: 16px;
}

/* Separator between main nav and site title */
.main-nav-header .site-info {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 2px solid #ff5d89;
  color: #ff5d89;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.8;
}

/* Adjust body padding to account for non-sticky header */
.desktop-style body {
  padding-top: 120px; /* Increased from 60px to account for both headers */
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .main-nav-header {
    padding: 10px 15px;
  }
  
  .main-nav-header .nav-links {
    gap: 10px;
  }
  
  .main-nav-header .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .main-nav-header .site-info {
    display: none; /* Hide on mobile to save space */
  }
  
  body {
    padding-top: 110px; /* Adjusted for mobile */
  }
  
  .desktop-style body {
    padding-top: 110px;
  }
}

/* Extra small mobile */
@media screen and (max-width: 480px) {
  .main-nav-header .nav-links {
    gap: 8px;
  }
  
  .main-nav-header .nav-links a {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  /* Stack links in two rows if needed */
  .main-nav-header .nav-links {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* Optional: Add subtle animation */
.main-nav-header {
  animation: slideDown 0.3s ease-out;
}

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

/* Form Styling - DARK WITH PINK ACCENTS */
form {
  margin-bottom: 30px;
}

form table {
  margin: auto;
  background: #2d2d2d;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,93,137,0.1);
  width: 100%;
  max-width: 800px;
  border: 1px solid #3d3d3d;
}

form table input {
  height: auto;
}

input[type="text"], input[type="password"], textarea {
  border: 1px solid #3d3d3d;
  background: #1a1a1a;
  color: #ffffff;
  text-indent: 0;
  text-shadow: none;
  text-transform: none;
  word-spacing: normal;
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: #ff5d89;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,93,137,0.3), inset 0 2px 4px rgba(0,0,0,0.3), 0 0 15px rgba(255,93,137,0.2);
}

#quick-reply input[type="text"], input[type="password"], #quick-reply textarea {
  max-width: 100%;
}

textarea {
  width: 100%;
  min-height: 120px;
}

form table tr td {
  text-align: left;
  margin: 0;
  padding: 8px;
  color: #ffffff;
}

form table.mod tr td {
  padding: 6px;
}

form table tr th {
  text-align: left;
  padding: 12px;
  background: #ff5d89;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(255,93,137,0.5);
}

form table tr td div.center {
  text-align: center;
  float: left;
  padding-left: 3px;
}

form table tr td div input {
  display: block;
  margin: 2px auto 0 auto;
}

form table tr td div label {
  font-size: 12px;
  color: #cccccc;
}

input[type="submit"], button {
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 0 15px rgba(255,93,137,0.3);
}

input[type="submit"]:hover, button:hover {
  background: linear-gradient(135deg, #ff1b5e, #ff5d89);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4), 0 0 25px rgba(255,93,137,0.6);
}

input[type="submit"]:active, button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 15px rgba(255,93,137,0.4);
}

/* File Display - FIXED WITH PINK GLOW */
.file {
  float: left;
  margin-right: 15px;
  position: relative;
  z-index: 10;
}

.file:not(.multifile) .post-image {
  float: left;
  position: relative;
  z-index: 15;
}

.file:not(.multifile) {
  float: none;
}

p.fileinfo {
  display: block;
  margin: 0 0 8px 20px;
  font-size: 0.9em;
  color: #cccccc;
}

div.post p.fileinfo {
  padding-left: 5px;
}

.post-image {
  display: block;
  float: left;
  margin: 5px 20px 10px 20px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px rgba(255,93,137,0.2);
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 15;
  transform: translateZ(5px);
}

.post-image:hover {
  transform: scale(1.02) translateZ(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 20px rgba(255,93,137,0.4);
}

.full-image {
  max-width: 98%;
}

div.post .post-image {
  padding: 0;
  margin: 0 20px 10px 0;
  position: relative;
  z-index: 15;
  transform: translateZ(5px);
}

div.post img.icon {
  display: inline;
  margin: 0 5px;
  padding: 0;
}

div.post i.fa {
  margin: 0 4px;
  font-size: 16px;
}

/* Thread and Post Styling - DARK 3D WITH PINK GLOW */
div.post.op {
  margin-right: 20px;
  margin-bottom: 35px;
  padding: 25px;
  background: #2d2d2d;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 5px 15px rgba(255,93,137,0.1), 0 0 25px rgba(255,93,137,0.05);
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid #3d3d3d;
}

div.post.op hr {
  border-color: #3d3d3d;
  margin: 20px 0;
}

.intro {
  margin: 0.7em 0;
  padding: 0;
  padding-bottom: 0.3em;
}

input.delete {
  float: left;
  margin: 1px 6px 0 0;
}

.intro span.subject {
  color: #ff5d89;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 8px #ff5d89;
}

.intro span.name {
  color: #ffffff;
  font-weight: bold;
}

.intro span.capcode, p.intro a.capcode, p.intro a.nametag {
  color: #ff5d89;
  margin-left: 0;
  text-shadow: 0 0 8px #ff5d89;
}

.intro a {
  margin-left: 8px;
}

div.delete {
  float: right;
}

div.post.reply p {
  margin: 0.5em 0 0 0;
}

div.post.reply div.body {
  margin-left: 1.8em;
  margin-top: 0.8em;
  padding-right: 3em;
  padding-bottom: 0.3em;
}

/* Ultra 3D Effect for Reply Posts - DARK WITH PINK GLOW */
div.post.reply {
  background: #2d2d2d;
  margin: 0.8em 4px;
  padding: 20px;
  border: 1px solid #3d3d3d;
  border-radius: 15px;
  display: inline-block;
  max-width: 94%!important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 5px 15px rgba(255,93,137,0.1), 0 0 20px rgba(255,93,137,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
}

div.post.reply:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.7), 0 10px 20px rgba(255,93,137,0.2), 0 0 30px rgba(255,93,137,0.15);
  transform: perspective(1000px) translateZ(10px) translateY(-5px);
  border-color: #ff5d89;
}

div.post.reply.highlighted {
  background: #2d2d2d;
  border-left: 5px solid #ff5d89;
  box-shadow: 0 15px 40px rgba(255,93,137,0.3), 0 10px 20px rgba(0,0,0,0.6), 0 0 25px rgba(255,93,137,0.2);
}

/* Add subtle depth to links in posts */
div.post.reply div.body a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #ff5d89;
  padding-bottom: 1px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

div.post.reply div.body a:hover {
  color: #ff5d89;
  border-bottom: 1px solid transparent;
  text-shadow: 0 0 8px #ff5d89;
}

div.post {
  padding-left: 20px;
}

div.post div.body {
  word-wrap: break-word;
  white-space: pre-wrap;
  color: #ffffff;
}

span.trip {
  color: #cccccc;
  opacity: 0.8;
}

span.quote {
  color: #ff5d89;
  opacity: 0.9;
}

span.omitted {
  display: block;
  margin-top: 1em;
  color: #cccccc;
  opacity: 0.8;
}

br.clear {
  clear: left;
  display: block;
}

span.controls {
  float: right;
  margin: 0;
  padding: 0;
  font-size: 80%;
}

span.controls.op {
  float: none;
  margin-left: 10px;
}

span.controls a {
  margin: 0;
}

/* Hide Style Selector Completely */
div.styles {
  display: none !important;
  visibility: hidden !important;
}

/* Banner and Board Styling - PINK NEON */
div.banner {
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 1.5em 0;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(255,93,137,0.5), 0 0 25px rgba(255,93,137,0.3);
}

div.banner, div.banner a {
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

div.banner a:hover {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 0 15px #ffffff;
}

img.banner, img.board_image {
  display: block;
  border: none;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255,93,137,0.2);
  max-width: 100%;
  height: auto;
}

/* Ban Messages - DARK */
div.ban {
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  max-width: 700px;
  margin: 30px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(255,93,137,0.1);
}

div.ban p, div.ban h2 {
  padding: 15px 20px;
}

div.ban h2 {
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  color: #ffffff;
  font-size: 16px;
  margin: 0;
}

div.ban p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #ffffff;
}

div.ban p.reason {
  font-weight: bold;
  color: #ff5d89;
}

/* Pages Navigation - DARK */
div.pages {
  color: #ffffff;
  background: #2d2d2d;
  display: inline-block;
  padding: 12px 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,93,137,0.1);
  border: 1px solid #3d3d3d;
}

div.pages.top {
  display: block;
  padding: 8px 12px;
  margin-bottom: 5px;
  position: fixed;
  top: 10px;
  right: 10px;
  opacity: 0.95;
  z-index: 900;
}

@media screen and (max-width: 800px) {
  div.pages.top {
    display: none!important;
  }
}

div.pages a.selected {
  color: #ff5d89;
  font-weight: bold;
  text-shadow: 0 0 8px #ff5d89;
}

div.pages a {
  text-decoration: none;
  margin: 0 5px;
  color: #ffffff;
}

div.pages a:hover {
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

div.pages form {
  margin: 0;
  padding: 0;
  display: inline;
}

div.pages form input {
  margin: 0 5px;
  display: inline;
}

/* Board List - DARK */
div.boardlist {
  margin-top: 3px;
  color: #ffffff;
  font-size: 14px;
  background: #2d2d2d;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(255,93,137,0.1);
  border: 1px solid #3d3d3d;
}

div.boardlist.bottom {
  margin-top: 20px;
  clear: both;
}

div.boardlist a {
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
  transition: all 0.2s ease;
  color: #ffffff;
}

div.boardlist a:hover {
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

/* Various Elements */
hr {
  border: none;
  border-top: 1px solid #3d3d3d;
  height: 0;
  clear: left;
  margin: 20px 0;
}

div.report {
  color: #ffffff;
}

span.heading {
  color: #ff5d89;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 8px #ff5d89;
}

span.spoiler {
  background: #1a1a1a;
  color: #1a1a1a;
  padding: 2px 5px;
  border-radius: 4px;
}

div.post.reply div.body span.spoiler a {
  color: #1a1a1a;
  border-bottom: none;
}

span.spoiler:hover, div.post.reply div.body span.spoiler:hover a {
  color: #ffffff;
}

/* Tables - DARK */
table.test {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 15px 0;
}

table.test td, table.test th {
  text-align: left;
  padding: 10px;
  color: #ffffff;
}

table.test tr.h th {
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(255,93,137,0.3);
}

table.test td img {
  margin: 0;
}

table.modlog {
  margin: auto;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table.modlog tr td {
  text-align: left;
  margin: 0;
  padding: 8px 15px 8px 0;
  color: #ffffff;
}

table.modlog tr th {
  text-align: left;
  padding: 10px 15px;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(255,93,137,0.3);
}

td.minimal, th.minimal {
  width: 1%;
  white-space: nowrap;
}

/* Notices */
div.top_notice {
  text-align: center;
  margin: 10px auto;
}

span.public_ban {
  display: block;
  color: #ff5d89;
  font-weight: bold;
  margin-top: 15px;
  text-shadow: 0 0 8px #ff5d89;
}

span.toolong {
  display: block;
  margin-top: 15px;
  color: #cccccc;
}

div.blotter {
  color: #ff5d89;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 8px #ff5d89;
}

/* Configuration Editor */
table.mod.config-editor {
  font-size: 14px;
  width: 100%;
}

table.mod.config-editor td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #3d3d3d;
  color: #ffffff;
}

table.mod.config-editor input[type="text"] {
  width: 98%;
}

/* Desktop Style Overrides */
.desktop-style div.boardlist:nth-child(1) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 30;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6), 0 0 15px rgba(255,93,137,0.2);
  border-bottom: 2px solid #ff5d89;
  background: #2d2d2d;
  border-radius: 0 0 15px 15px;
}

.desktop-style body {
  padding-top: 60px;
}

.desktop-style .sub {
  background: inherit;
}

.desktop-style .sub .sub {
  display: inline-block;
  text-indent: -9000px;
  width: 7px;
  background: url('img/arrow.png') right center no-repeat;
}

.desktop-style .sub .sub:hover, .desktop-style .sub .sub.hover {
  display: inline;
  text-indent: 0;
  background: inherit;
}

/* Code Blocks - DARK */
pre {
  max-width: inherit;
  word-wrap: normal;
  overflow: auto;
  display: block!important;
  font-size: 13px;
  font-family: monospace;
  background: #1a1a1a;
  color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 0 10px rgba(255,93,137,0.05);
  margin: 10px 0;
}

span.pln {
  color: #cccccc;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  .intro {
    clear: none;
  }

  div.post div.body {
    clear: none;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 10px;
    padding-top: 70px;
  }
  
  div.post.reply {
    padding: 15px;
    margin: 0.5em 0;
    max-width: 100%!important;
    width: 100%;
  }
  
  div.post.op {
    padding: 15px;
  }
  
  header {
    padding: 10px;
  }
  
  h1 {
    font-size: 18px;
  }
  
  h1:before {
    width: 30px;
    height: 30px;
  }
}

/* Thread Stats */
#thread_stats {
  display: inline-block;
  margin: 10px;
  background: #2d2d2d;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 10px rgba(255,93,137,0.05);
  border: 1px solid #3d3d3d;
}

/* Thread Interactions */
#thread-interactions {
  margin: 15px 0;
  clear: both;
  background: #2d2d2d;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,93,137,0.1);
  border: 1px solid #3d3d3d;
}

#thread-links {
  float: left;
}

#thread-links > a {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 10px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #3d3d3d;
}

#thread-links > a:hover {
  background: #ff5d89;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255,93,137,0.5);
}

#thread-quick-reply {
  display: none;
  position: absolute;
  left: 50%;
  right: 50%;
  text-align: center;
  width: 100px;
  margin-left: -50px;
}

#post-moderation-fields {
  float: right;
  text-align: right;
}

/* Thread Watcher */
#watchlist {
  display: none;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  width: 60%;
  margin: 0 auto;
  margin-bottom: 20px;
  background: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,93,137,0.1);
}

.watchlist-inner, .watchlist-controls {
  margin: 0 auto;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  padding: 10px;
}

#watchlist-toggle, .watchThread, .watchlist-remove, #clearList, #clearGhosts {
  cursor: pointer;
  display: inline-block;
  padding: 6px 12px;
  margin: 0 5px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #3d3d3d;
}

#watchlist-toggle:hover, .watchThread:hover, .watchlist-remove:hover, #clearList:hover, #clearGhosts:hover {
  background: #ff5d89;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255,93,137,0.5);
}

/* Override for Quick Reply */
#quick-reply {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #2d2d2d;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 25px rgba(255,93,137,0.2);
  z-index: 100;
  max-width: 500px;
  width: 100%;
  border: 1px solid #3d3d3d;
}

#quick-reply table {
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Gallery View */
#gallery_images {
  position: absolute;
  right: 0px;
  bottom: 0px;
  top: 0px;
  width: 15%;
  background-color: rgba(26, 26, 26, 0.95);
  overflow: auto;
  border-radius: 0 15px 15px 0;
  box-shadow: -5px 0 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,93,137,0.1);
}

#gallery_toolbar {
  position: absolute;
  right: 15%;
  left: 0px;
  bottom: 0px;
  height: 40px;
  background-color: rgba(26, 26, 26, 0.95);
  text-align: right;
  border-radius: 0 0 0 15px;
}

#gallery_images img {
  width: 100%;
  padding: 5px;
}

#gallery_toolbar a {
  font-size: 28px;
  padding: 0 10px;
  color: #ffffff;
  line-height: 40px;
}

#gallery_toolbar a:hover {
  color: #ff5d89;
  text-shadow: 0 0 15px #ff5d89;
}

#gallery_main {
  position: absolute;
  left: 0px;
  right: 15%;
  bottom: 40px;
  top: 0px;
  padding: 20px;
  background: rgba(26,26,26,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery_images img {
  opacity: 0.6;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border-radius: 8px;
}

#gallery_images img:hover, #gallery_images img.active {
  opacity: 1;
}

#gallery_images img.active {
  box-shadow: 0 0 0 3px #ff5d89, 0 5px 15px rgba(255,93,137,0.6);
  z-index: 1;
}

#gallery_main img, #gallery_main video {
  max-width: 95%;
  max-height: 95%;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 25px rgba(255,93,137,0.2);
}

/* Dropzone - DARK */
.dropzone {
  color: #ffffff;
  cursor: default;
  margin: auto;
  padding: 10px;
  text-align: center;
  min-height: 80px;
  max-height: 200px;
  transition: all 0.3s ease;
  background-color: #1a1a1a;
  overflow-y: auto;
  border-radius: 10px;
  border: 2px dashed #3d3d3d;
}

.dropzone-wrap {
  width: 100%;
}

.dropzone .file-hint {
  color: #cccccc;
  cursor: pointer;
  position: relative;
  margin: 15px 0;
  padding: 15px;
  transition: all 0.3s ease;
  background: rgba(45, 45, 45, 0.7);
  border-radius: 8px;
}

.file-hint:hover, .dropzone.dragover .file-hint {
  color: #ffffff;
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 10px rgba(255,93,137,0.1);
}

.dropzone.dragover {
  background-color: #2d2d2d;
  border-color: #ff5d89;
  box-shadow: 0 0 20px rgba(255,93,137,0.3);
}

.dropzone .file-thumbs {
  text-align: left;
  width: 100%;
}

.dropzone .tmb-container {
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.dropzone .file-tmb {
  height: 50px;
  width: 80px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  background-color: #2d2d2d;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin: 0 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 5px rgba(255,93,137,0.1);
  transition: all 0.2s ease;
  border: 1px solid #3d3d3d;
}

.dropzone .file-tmb:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), 0 0 10px rgba(255,93,137,0.2);
}

.dropzone .file-tmb span {
  font-weight: 600;
  position: relative;
  top: 15px;
  color: #ffffff;
}

.dropzone .tmb-filename {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-left: 8px;
  font-size: 12px;
  color: #cccccc;
}

.dropzone .remove-btn {
  cursor: pointer;
  color: #cccccc;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin: 0 8px;
  font-size: 18px;
  transition: all 0.2s ease;
}

.dropzone .remove-btn:hover {
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

/* Options and Alert Handlers */
#options_handler, #alert_handler {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 9900;
  backdrop-filter: blur(8px);
}

#options_background, #alert_background {
  background: #1a1a1a;
  opacity: 0.9;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#options_div, #alert_div {
  background-color: #2d2d2d;
  border: 1px solid #3d3d3d;
  display: inline-block;
  position: relative;
  margin-top: 80px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,93,137,0.2);
  animation: modal-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-in {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#options_div {
  width: 700px;
  height: 500px;
  resize: both;
  overflow: auto;
}

#alert_div {
  width: 500px;
  padding: 20px;
}

#alert_message {
  text-align: center;
  margin: 15px;
  font-size: 16px;
  color: #ffffff;
}

.alert_button {
  margin: 20px 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff5d89, #ff1b5e);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(255,93,137,0.3);
}

.alert_button:hover {
  background: linear-gradient(135deg, #ff1b5e, #ff5d89);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,93,137,0.5);
}

#options_div textarea {
  max-width: 100%;
  font-family: monospace;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #3d3d3d;
  background: #1a1a1a;
  color: #ffffff;
}

#options_close, #alert_close {
  top: 10px;
  right: 10px;
  position: absolute;
  margin-right: 3px;
  font-size: 24px;
  z-index: 100;
  cursor: pointer;
  color: #cccccc;
  transition: all 0.2s ease;
}

#options_close:hover, #alert_close:hover {
  color: #ff5d89;
  transform: rotate(90deg);
  text-shadow: 0 0 15px #ff5d89;
}

#options_tablist {
  padding: 15px 0;
  left: 0px;
  width: 120px;
  top: 0px;
  bottom: 0px;
  height: 100%;
  border-right: 1px solid #3d3d3d;
  background: #1a1a1a;
  border-radius: 15px 0 0 15px;
}

.options_tab_icon {
  padding: 12px 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.options_tab_icon:hover {
  background: rgba(45, 45, 45, 0.7);
}

.options_tab_icon.active {
  color: #ff5d89;
  background: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 10px rgba(255,93,137,0.1);
}

.options_tab_icon i {
  font-size: 24px;
  margin-bottom: 5px;
}

.options_tab_icon div {
  font-size: 12px;
  font-weight: bold;
}

.options_tab {
  padding: 20px;
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 121px;
  right: 0px;
  text-align: left;
  font-size: 14px;
  overflow-y: auto;
  color: #ffffff;
}

.options_tab h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 20px;
}

/* Mobile Style */
.mobile-style #options_div, .mobile-style #alert_div {
  display: block;
  width: 95%;
  max-width: 700px;
  height: auto;
  margin: 20px auto;
}

.mobile-style #options_tablist {
  width: 100%;
  height: auto;
  border-right: none;
  border-bottom: 1px solid #3d3d3d;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 5px;
}

.mobile-style .options_tab_icon {
  display: inline-block;
  padding: 8px;
  width: auto;
  text-align: center;
}

.mobile-style .options_tab {
  position: static;
  margin-top: 50px;
  padding: 15px;
}

.mentioned {
  word-wrap: break-word;
  background: rgba(255,93,137,0.2);
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffffff;
}

.poster_id {
  cursor: pointer;
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  margin: 0 2px;
  user-select: none;
  border: 1px solid #3d3d3d;
}

.poster_id:hover {
  color: #ff5d89!important;
  background: #2d2d2d;
  box-shadow: 0 0 10px rgba(255,93,137,0.2);
}

.poster_id::before {
  content: "ID: ";
  opacity: 0.7;
}

/* Misc */
.own_post {
  font-style: italic;
  font-weight: normal;
  opacity: .8;
}

div.mix {
  display: inline-block;
}

/* Theme Catalog - Card Grid DARK */
.theme-catalog div.thread img {
  float: none!important;
  margin: auto;
  max-height: 150px;
  max-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(255,93,137,0.1);
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.theme-catalog div.thread img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 20px rgba(255,93,137,0.2);
}

.theme-catalog div.thread {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  font-weight: normal;
  margin: 15px;
  padding: 20px;
  height: 320px;
  width: 225px;
  overflow: hidden;
  position: relative;
  font-size: 12px;
  max-height: 320px;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 5px 15px rgba(255,93,137,0.05), 0 0 20px rgba(255,93,137,0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: perspective(1000px) translateZ(0);
  color: #ffffff;
}

.theme-catalog div.thread:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 10px 20px rgba(255,93,137,0.1), 0 0 25px rgba(255,93,137,0.1);
  transform: perspective(1000px) translateZ(15px) translateY(-8px);
  border-color: #ff5d89;
}

.theme-catalog div.thread strong {
  display: block;
  margin-top: 10px;
  color: #ff5d89;
  text-shadow: 0 0 8px #ff5d89;
}

.theme-catalog div.threads {
  text-align: center;
  margin: 0 -15px;
}

.theme-catalog div.thread .thread-info {
  margin-top: 10px;
  font-size: 11px;
  color: #cccccc;
}

.theme-catalog div.grid-size-vsmall {
  min-width: 110px; 
  max-width: 110px;
  max-height: 170px;
  padding: 10px;
}

.theme-catalog div.grid-size-small {
  min-width: 160px; 
  max-width: 160px;
  max-height: 220px;
  padding: 15px;
}

.theme-catalog div.grid-size-large {
  min-width: 300px; 
  max-width: 300px;
  max-height: 420px;
  padding: 25px;
}

.theme-catalog img.thread-image {
  height: auto;
  max-width: 100%;
}

@media (max-width: 480px) {
  .theme-catalog div.thread {
    width: calc(100% - 30px);
    height: auto;
    max-height: none;
  }
  
  .theme-catalog div.threads {
    margin: 0;
  }
}

/* Utility Classes */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Add animation to enhance 3D feeling with PINK GLOW */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Extra pink glow effects for special elements */
.post-image:hover,
div.post.reply:hover,
input[type="submit"]:hover,
button:hover {
  animation: pink-pulse 2s infinite;
}

@keyframes pink-pulse {
  0% {
    box-shadow: 0 0 5px rgba(255,93,137,0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255,93,137,0.8), 0 0 40px rgba(255,93,137,0.3);
  }
  100% {
    box-shadow: 0 0 5px rgba(255,93,137,0.5);
  }
}
/* Mobile viewport fix */
@media screen and (max-width: 768px) {
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .boardlist, .thread, form, .post, .files, header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
.desktop-style .main-nav-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}