/* ===============================
   FORUM
=================================*/
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #66ccff;
    background: #444;
    margin-bottom: 12px;
    margin-top: 20px;
}

.forum-topic-title {
background: var(--dark-light);

    padding: 10px 12px;
    border: 1px solid var(--box-border); /* volledige rand */
    border-bottom: 0;                     /* onderrand weg */
    border-radius: 8px 8px 0 0;           /* alleen boven afgerond */
    font-weight: bold;
    font-family: 'Lucida Console', Monaco, monospace;
    margin-bottom: 0;                      /* geen extra ruimte */
}


.forum-post {
    background: --dark-light;      /* donkere achtergrond voor posts */
              /* tekstkleur */
    padding: 12px;             /* ruimte binnen de box */
    margin-bottom: 10px;       /* ruimte tussen posts */
    border: 1px solid var(--box-border); /* optionele lichte rand */
    box-shadow: 0 2px 2px rgba(0,0,0,0.3); /* subtiele schaduw */
}

.forum-post.start {
    background:--dark-light;                      /* boxa-box stijl */
    border:1px solid var(--box-border);
    border-radius:0 0 8px 8px;
}

.forum-post.reply {
    border-radius: 12px !important; /* forceer afgeronde hoeken */
    background:--dark-light;                      /* boxa-box stijl */
    border:1px solid var(--box-border);
    border-radius:0 0 8px 8px;
    padding:10px;
    margin-bottom:10px;
}

/* Post header */
.post-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 1em;
    border-bottom: 1px solid var(--box-border);
    padding: 0 0 6px 0;
}

.post-header.reply {
    font-size: 1em;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--box-border);
}

.post-header img {
    border-radius: 50%;
    object-fit: cover;
}

.post-header a {
    text-decoration: none;
}

.post-header .actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.topic-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.topic-admin {
    display: flex;
    gap: 4px;
    justify-content:flex-end;
}

.topics-list { list-style:none; padding:0; margin:0; }

.topic-item {
    background:#111155;                      /* boxa-box stijl */
    border:1px solid var(--accent-blue);
    border-radius:4px;
    margin-bottom:4px;
    padding:6px 8px;
    box-shadow: inset 0 0 6px #000022;       /* toegevoegd */
}

.topic-title {
    font-size: 14px;
    font-weight:bold;
    text-decoration:none;
    display:inline;
}

.topic-meta {
    font-size:.8em;
    margin-left:6px;
}

.post-content img.bb-emoji {
    display:inline-block !important;
    margin:0 !important;
    width:20px;
    height:20px;
    vertical-align:middle;
}

/* Quote stijl */
blockquote {
    background-color: #0b0b33;               /* donkerder dan forum posts */
    border-left: 4px solid var(--accent-light);
    padding: 8px 12px;
    margin: 8px auto;
    border-radius: 4px;
    max-width: 700px;
}

blockquote strong {
    display: block;
    font-weight: bold;
    color: --dark-light;
    font-style: normal;
    margin-bottom: 4px;
}


.post-content {
    position: relative;
    padding-bottom: 20px;
}

/* gewone afbeeldingen */
.post-content img:not(.emoji) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 6px 0;
}

/* emoji’s */
.post-content img.emoji {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.25em;
    margin: 0 2px;
}


.post-date {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.8em;
    opacity: 0.6;
}

/* ===============================
   POLL STYLING – PRO FORUM LOOK
=================================*/

/* Poll vraag */
.boxa-box h2.poll {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 6px 0;   /* kleine ruimte onder de vraag */
    line-height: 1.2;     /* strakker onder elkaar */
}

/* Radio opties */
.boxa-box form label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #0c1422;
    border: 1px solid var(--box-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s, transform 0.2s;
}

.boxa-box form label:hover {
    background: #0c1422;
    transform: translateX(2px);
}

/* Radio knop */
.boxa-box form input[type="radio"] {
    accent-color: --dark-light;
    width: 18px;
    height: 18px;
}

/* Stem knop */
.boxa-box form button {
    padding: 10px 20px;
    background: --dark-light;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

.boxa-box form button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Poll container: full width */
.boxa-box form {
    width: 80%;
}

/* Poll resultaat */
.boxa-box .poll-result{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap:6px 12px;
    margin-bottom:14px;
}



.boxa-box .bar-wrap{
    grid-column:1 / 2;
    width:100%;
    background:#0b1a3a;
    border-radius:10px;
    overflow:hidden;
        border: 1px solid var(--box-border);
}



/* De bar zelf */
.boxa-box .bar{
    height:12px;
    width:0;
    background:linear-gradient(90deg,#00f0ff,#0055ff);
    border-radius:10px;
    transition:width .6s ease;
}


/* Optionele overlay: percentage rechts */
.boxa-box .poll-result span{
    grid-column:2 / 3;
    align-self:center;
    font-size:.85rem;
    font-weight:bold;
    color:#fff;
    white-space:nowrap;
}


.boxa-box .poll-result .bar{
    grid-column:1 / 2;
}



/* Poll optie tekst boven bar */
.boxa-box .poll-option{
    grid-column:1 / -1;
    font-weight:bold;
    color:#88bbff;
}
@media (max-width:600px){
    .boxa-box .poll-result{
        grid-template-columns:1fr;
    }

    .boxa-box .poll-result span{
        grid-column:1;
        opacity:.85;
    }
}


/* Totaal stemmen */
.boxa-box small {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #88ccff;
    opacity: 0.8;
}

/* Emoji inline en mooi uitgelijnd */
.boxa-box small img.emoji {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}


label.poll-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #ffffff !important;
    margin-bottom: 8px;
    cursor: pointer;
    width: auto;
}

/* Container van de actieknoppen naar rechts uitlijnen */
.container > div {
    justify-content: flex-end;
    display: flex;
    gap: 6px;
}

/* Actieknoppen */
.container > div a {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    color: #fff;
    margin-bottom:10px;
    margin-top:10px;
}



/* Specifieke knoppen */
.container > div a[href$="rss"] { background: #ff6600; font-size: 0.85em; }
.container > div a[href*="post_reply"] { background: #22aa22; font-size: 0.85em; }
.container > div a[href*="login"] { background: #2255aa; font-size: 0.85em; }
.container > div a[href*="register"] { background: #22aa55; font-size: 0.85em; }
.container > div a[href*="settings"] { background: #2255aa; font-size: 0.85em; }
.container > div a[href*="logout"] { background: #cc2222; font-size: 0.85em; }
.container > div a[href*="new_topic"] { background: #22aa22; font-size: 0.85em; }

/* Hover effecten */
.container > div a[href$="rss"]:hover { background: #ff9933; color: white;}
.container > div a[href*="post_reply"]:hover { background: #44cc44;color: white; }
.container > div a[href*="login"]:hover {color: white; background: #3377cc; }
.container > div a[href*="register"]:hover {color: white; background: #44cc77; }
.container > div a[href*="settings"]:hover {color: white; background: #3377cc; }
.container > div a[href*="logout"]:hover {color: white; background: #ee4444; }
.container > div a[href*="new_topic"]:hover { background: #44cc44;color: white; }

.btn.small { padding: 2px 5px; border-radius: 3px; font-size: 0.8em; }
.btn.edit {color: white; background: #2255aa; }
.btn.delete { background: #aa2222; }
.btn.delete-selected { margin-top: 8px; background: #aa2222; color: white; padding: 4px 10px; border: none; border-radius: 4px; }


/* ===============================
   FORUM TOPICS – COMPACT TABLE STYLE
=================================*/
table {
    width: 100%;
    border-collapse: collapse; 
      border-top: 1px solid var(--box-border);
  border-left: 1px solid var(--box-border); /* links */
  border-right: 1px solid var(--box-border);  /* rechts */
}

table td, table th {
    padding: 3px;
        word-break:break-word;
    }
td.topic-title {
  font-size: 13px;
    display: table-cell;        /* expliciet */
    vertical-align: middle;
}

td.topic-title > img,
td.topic-title > a,
td.topic-title > span {
    display: inline-flex;
    align-items: center;
}



/* ===== TABEL BASIS ===== */
table.topics {
  width: 100%;
      max-width:100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: inset 0 0 8px #001144;
  font-family: 'Lucida Console', Monaco, monospace;
  font-size: 14px;
       }

/* CEL PADDING EN HOGTE */
th, td {
  padding: 4px 8px;       /* compact */
  line-height: 1.2em;
  vertical-align: middle;
  
}

/* ===============================
   TABLE / FORUM STYLING
=================================*/

/* ===============================
   TABLE / FORUM STYLING
=================================*/

/* HEADERS */
th {
  background: var(--dark);    /* dark theme standaard */
  color: var(--text-light);
  font-weight: bold;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--dark-border);
}

/* CATEGORIE RIJ */
tr.category {
  font-family: 'Lucida Console', Monaco, monospace;
  background: var(--dark-light);
  font-weight: bold;
  color: #99ddff;
  border: 1px solid var(--box-border);
  padding: 6px 8px;
}

/* TOPIC RIJEN */
tr.topic-even {
  background: var(--dark2);
  cursor: pointer;
  color: var(--text-light);
}

tr.topic-odd {
  background: var(--dark-light);
  cursor: pointer;
  color: #ffffff;
}

tr.topic-even:last-child td,
tr.topic-odd:last-child td {
  box-shadow: inset 0 -1px 0 var(--dark-border);
}

/* FORUM CATEGORY CONTAINER */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-category {
    font-size: 14px;
    background: var(--dark-light);
    border: 1px solid var(--box-border);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.3);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-stats {
    font-size: 0.85rem;
    color: var(--accent-light);
    opacity: 0.9;
}

.category-description {
    font-weight: normal;
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ===============================
   LIGHT THEME OVERRIDES
=================================*/
.light-theme th {
  background: #dde7ff;       /* lichte header */
  color: #003366;             /* donkerblauw */
}

.light-theme tr.category {
  background: #f4f6f9;
  color: #003366;
  border: 1px solid #c0cce0;
}

.light-theme tr.topic-even {
  background: #f2f5ff;
  color: #003366;
}

.light-theme tr.topic-odd {
  background: #e9ecf2;
  color: #003366;
}

.light-theme tr.topic-even:last-child td,
.light-theme tr.topic-odd:last-child td {
  box-shadow: inset 0 -1px 0 #aac0e7;
}

.light-theme .forum-category {
  background: #ffffff;
  border: 1px solid #cccccc;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.light-theme .category-stats {
  color: #0066cc;
}

/* POLL – thema compatibel */
.boxa-box form label {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    color: var(--text-light);
}

.light-theme .boxa-box form label {
    background: #f4f6f9;
    border: 1px solid #c0cce0;
    color: #003366;
}

/* Hover */
.boxa-box form label:hover {
    background: var(--dark-light);
}

.light-theme .boxa-box form label:hover {
    background: #e9ecf2;
}

/* Buttons */
.boxa-box form button {
    background: var(--dark-light);
    color: var(--text-light);
}

.light-theme .boxa-box form button {
    background: #dde3ee;
    color: #003366;
}

/* Radio accent */
.boxa-box form input[type="radio"] {
    accent-color: var(--accent-blue);
}

.light-theme .boxa-box form input[type="radio"] {
    accent-color: #003366;
}

/* Poll bars */
.boxa-box .bar-wrap {
    background: var(--dark-light);
    border: 1px solid var(--box-border);
}

.light-theme .boxa-box .bar-wrap {
    background: #f4f6f9;
    border: 1px solid #c0cce0;
}

/* Percentage tekst */
.boxa-box .poll-result span {
    color: var(--text-light);
}

.light-theme .boxa-box .poll-result span {
    color: #003366;
}

/* Poll optie tekst */
.boxa-box .poll-option {
    color: var(--accent-light);
}

.light-theme .boxa-box .poll-option {
    color: #0066cc;
}

/* ===============================
   RESPONSIVE – MOBIEL
=================================*/
@media (max-width: 768px) {
table {
  border-bottom: 1px solid var(--box-border);  /* rechts */
}
table.topics {
    display: block;
    width: 100%;
}

table.topics tbody {
    display: block;
    width: 100%;
}
/* Onderste border alleen op de laatste rij */
tr.topic-even:last-child td,
tr.topic-odd:last-child td {
 box-shadow: 0 2px 2px rgba(0,0,0,0.3);
 }
  /* Topic rijen block en compact */
  tr.topic-even,
  tr.topic-odd,
  tr.category {
    display: block;
    padding: 4px 0;
    margin-bottom: 4px;
       border: 0;
  }

  /* Kolom headers verbergen */
  td.topic-header {
    display:none !important;
  }
    table.topics td {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  td {
    padding: 2px 8px;
    box-sizing: border-box;
  }

  /* Titel bovenaan */
  td.topic-title {
    display: block;
    width: 100% !important;
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 4px;
  }

  /* Meta info op 1 regel */
  tr.topic-even td:not(.topic-title),
  tr.topic-odd td:not(.topic-title) {
    display: inline-block;
    width: auto !important;
    font-size: 12px;
    opacity: 0.9;
    margin-right: 8px;
    white-space: normal;
    border: 0;
      }

  /* Emoji kleiner */
  img.emoji {
    width: 16px;
    height: 16px;
  }


}
