/* Secret Crime V2 - gedeelde stijlen (beide layouts): toasts, captcha, formulieren, utilities */
:root {
  --sc-red: #45150d;
  --sc-red-dark: #2d0d08;
  --sc-gold: #fbd892;
  --sc-gold-dark: #ba9558;
  --sc-brown: #877352;
  --sc-border: #8e7a59;
  --sc-dark: #1b1b1c;
  --sc-text: #877352;
  --sc-white: #fff;
  /* Classic-thema (B40): de kleuren en achtergronden van classic.css als gedeelde variabelen; modern.css bouwt
     hierop zodat beide layouts hetzelfde spel tonen. Classic zelf gebruikt nog zijn eigen (identieke) waarden. */
  --sc-page-bg: #222;                                     /* body achter het kader */
  --sc-pattern: url('/assets/img/pattern.png');           /* 1 MB: alleen op grote schermen */
  --sc-frame-bg: #45150d;                                 /* #wrap: het donkerrode spelkader */
  --sc-frame-border: #8e7a59;                             /* ridge-rand van kader, menu en topmenu */
  --sc-frame-shadow: 0 0 15px 0 rgba(0,0,0,.8);
  --sc-block-bg: rgba(0,0,0,.3);                          /* .content_inner */
  --sc-block-edge: rgba(0,0,0,.2);                        /* randen van blok, tabel en cellen */
  --sc-block-radius: 10px;
  --sc-h1-img: url('/assets/img/h1.png');                 /* afgeronde bloktitel */
  --sc-h1-color: #6f5d45;                                 /* gemiddelde kleur van h1.png (terugval) */
  --sc-h1-text: #fff;
  --sc-table-bg: #1b1b1c;
  --sc-table-img: url('/assets/img/tableback.png');       /* 255 kB */
  --sc-table-gradient: linear-gradient(to bottom, #333 0, #1b1b1c 800px);   /* lichte variant van tableback.png */
  --sc-tsub-bg: #877352;                                  /* kolomkop, wit erop */
  --sc-tsub-text: #fff;
  --sc-tcell-text: #877352;                               /* tabeltekst classic (12 px) */
  --sc-text-light: #b79c6d;                               /* dezelfde tint, lichter: leesbaar (AA) op 13-15 px */
  --sc-link: #fff;
  --sc-topmenu-img: url('/assets/img/topmenu.png');       /* bruine menubalk */
  --sc-topmenu-color: #6e5b3d;
  --sc-menu-bg: #444;
  --sc-menu-img: url('/assets/img/menu-bg.png');          /* 86 kB */
  --sc-menu-title-img: url('/assets/img/menu-title.png');
  --sc-menu-link: #ccc;
  --sc-menu-active: #fbd892;
  --sc-button-img: url('/assets/img/button.png');         /* rode knop */
  --sc-button-img-hover: url('/assets/img/buttoninv.png');
  --sc-button-color: #7a2415;
  --sc-button-border: #877352;
  --sc-input-bg: rgba(255,255,255,.1);
  --sc-input-border: rgba(0,0,0,.2);
  --sc-info-good: #dcf0d5; --sc-info-good-border: #46ad24;
  --sc-info-bad: #f7e0e0;  --sc-info-bad-border: #d96662;
  --sc-info-info: #d9e7f3; --sc-info-info-border: #3a80bf;
  --sc-info-happy: #ece0d1; --sc-info-happy-border: #c8931f;
  --sc-success: #61ff05;
  --sc-danger: #ff6b6b;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline-form { display: inline; margin: 0; padding: 0; }
.link-button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.link-button:hover { text-decoration: underline; }
.text-danger { color: #ff6b6b !important; }
.text-success { color: #61ff05 !important; }
.pull-right { float: right; padding-right: 10px; }
a.soon { opacity: .55; }
.soon-tag { font-size: 9px; color: var(--sc-gold-dark); margin-left: 4px; }
/* Eén VIP-markering overal (B32): vip_badge() in app/Helpers/functions.php; classic en modern via de tokens. */
.vip-badge { display: inline-block; background: var(--sc-gold); color: var(--sc-red); font-size: 9px; line-height: 12px; font-weight: bold; font-style: normal; padding: 0 4px; border-radius: 3px; margin-left: 4px; vertical-align: middle; white-space: nowrap; text-decoration: none; }
.current { font-weight: bold; color: var(--sc-gold) !important; }
code { font-family: Menlo, Consolas, monospace; font-size: 11px; color: var(--sc-gold); }
.button-link { display: inline-block; background: var(--sc-red); border: 1px solid var(--sc-border); color: var(--sc-gold); padding: 6px 14px; border-radius: 5px; font-weight: bold; text-decoration: none; }
.button-link:hover { background: var(--sc-red-dark); text-decoration: none; }

/* Health/XP bar (origineel) */
.hpbarbg { width: 130px; height: 10px; border: 1px solid #f9fafa; background-color: rgb(206 206 206); position: relative; border-radius: 2px; overflow: hidden; }
.xpbar { background: #12bb08; height: 100%; border-radius: 2px; transition: width .4s ease; }

/* F142: statusbalk-cijfers (SC.applyState) tellen op/af i.p.v. te springen; korte kleur-cue groen/rood
   via de bestaande .text-success/.text-danger-kleuren (hergebruikt, niet opnieuw gedefinieerd). */
[data-stat], [data-stat-compact] { transition: color .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .xpbar, [data-stat], [data-stat-compact] { transition: none !important; }
}

/* Captcha */
.captcha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.captcha-img { border: 1px solid var(--sc-border); border-radius: 4px; cursor: pointer; }
.captcha-input { width: 90px; text-transform: uppercase; letter-spacing: 2px; }
.captcha-visual p { width: 100%; margin: 0 0 4px; }
.captcha-btn { background: none; border: 1px solid transparent; padding: 2px; cursor: pointer; border-radius: 4px; }

/* Chat */
.chat-messages { max-height: 220px; overflow-y: auto; margin-bottom: 4px; }
.chat-messages-large { max-height: 480px; }
.chat-line { display: flex; gap: 6px; padding: 1px 3px; font-size: 12px; line-height: 18px; }
.chat-line:nth-child(odd) { background: rgba(0,0,0,.15); }
.chat-line .chat-time { color: #666; font-size: 10px; flex: 0 0 34px; }
.chat-line .chat-dot { flex: 0 0 16px; width: 16px; height: 16px; align-self: center; } /* F202: online/offline-bolletje per bericht */
.chat-line .chat-name { flex: 0 0 auto; font-weight: bold; }
.chat-line .chat-name.staff { color: #61ff05; }
.chat-line .chat-name.admin { color: #ff6b6b; }
.chat-line .chat-text { flex: 1 1 auto; word-break: break-word; color: #ccc; }
.chat-line .chat-del { flex: 0 0 auto; color: #ff6b6b; cursor: pointer; font-size: 10px; }
.chat-empty { color: #666; font-style: italic; }
.chat-status { display: block; text-align: center; padding: 6px; }

/* Smileys (B31): Emoji::picker() */
.emoji-picker { position: relative; display: inline-block; vertical-align: middle; }
.emoji-picker > summary { list-style: none; cursor: pointer; font-size: 16px; line-height: 20px; padding: 0 2px; user-select: none; }
.emoji-picker > summary::-webkit-details-marker { display: none; }
.emoji-picker[open] > summary { opacity: .7; }
.emoji-panel { position: absolute; left: 0; bottom: 100%; z-index: 50; width: 252px; padding: 4px; display: flex; flex-wrap: wrap; gap: 2px; background: var(--sc-dark); border: 1px solid var(--sc-border); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.emoji-btn { background: none; border: 1px solid transparent; border-radius: 3px; width: 28px; height: 28px; padding: 0; font-size: 18px; line-height: 26px; cursor: pointer; }
.emoji-btn:hover, .emoji-btn:focus { border-color: var(--sc-gold); }
.chat-send-cell { white-space: nowrap; }
.chat-send-cell .emoji-panel { left: auto; right: 0; }
.chat-status.status-online { color: #4cff4c; }
.chat-status.status-away { color: #ffc107; }
.chat-status.status-offline { color: #888; }

/* F135: informatieve cookiemelding (alleen functionele cookies, geen opt-in nodig) */
.sc-cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: var(--sc-frame-bg); color: var(--sc-gold); border-top: 1px solid var(--sc-frame-border); padding: 10px 16px; font-family: Arial, sans-serif; font-size: 13px; box-shadow: 0 -4px 16px rgba(0,0,0,.6); }
.sc-cookie-notice a { color: var(--sc-gold); text-decoration: underline; }
.sc-cookie-notice button { background: var(--sc-gold); color: var(--sc-red-dark); border: 0; border-radius: 4px; padding: 6px 14px; font-size: 13px; font-weight: bold; cursor: pointer; }

/* Toasts */
.sc-toasts { position: fixed; top: 12px; right: 12px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 320px; width: calc(100% - 24px); pointer-events: none; }
.sc-toast { pointer-events: auto; background: var(--sc-red); color: var(--sc-gold); border: 1px solid var(--sc-border); border-left: 5px solid var(--sc-gold); border-radius: 8px; padding: 10px 32px 10px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.6); font-family: Arial, sans-serif; font-size: 12px; line-height: 16px; position: relative; animation: sc-toast-in .25s ease-out; }
.sc-toast strong { display: block; color: #fff; font-size: 12px; margin-bottom: 2px; }
.sc-toast .sc-toast-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: var(--sc-gold); cursor: pointer; font-size: 16px; }
.sc-toast.success { border-left-color: #46ad24; }
.sc-toast.danger, .sc-toast.attack { border-left-color: #d92626; }
.sc-toast.warning { border-left-color: #c8931f; }
.sc-toast.money { border-left-color: #61ff05; }
.sc-toast.system { border-left-color: #3a80bf; }
.sc-toast.hide { animation: sc-toast-out .25s ease-in forwards; }
@keyframes sc-toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes sc-toast-out { to { opacity: 0; transform: translateX(30px); } }

/* Admin */
.admin-nav p a { color: #ccc; }
/* Brede admin-layout (B33): AdminLayout::prepare() zet elke content_table in .table-wrap en markeert lange formulieren als .admin-form */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table.content_table { margin: 0; }
.table-wrap td.tsub, .table-wrap th { white-space: normal; }
.content_inner .table-wrap + .table-wrap, .content_inner p + .table-wrap, .content_inner .table-wrap + p, .content_inner table + .table-wrap, .content_inner .table-wrap + table,
.content_inner form + .table-wrap, .content_inner .table-wrap + form, .content_inner p + form .table-wrap { margin-top: 10px; }
.cell-text { overflow-wrap: anywhere; }   /* cell_text(): afgekapte waarde, volledige tekst in title */
/* Label boven veld, twee kolommen; onder 800 px één kolom */
table.content_table.admin-form, table.content_table.admin-form > tbody { display: block; width: 100%; }
table.content_table.admin-form > tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
table.content_table.admin-form > tbody > tr { display: flex; flex-direction: column; min-width: 0; }
table.content_table.admin-form > tbody > tr > td { display: block; width: auto !important; min-width: 0; }
table.content_table.admin-form > tbody > tr > td.tcell { flex: 1 1 auto; }
table.content_table.admin-form > tbody > tr.admin-form-full { grid-column: 1 / -1; }
table.content_table.admin-form > tbody > tr.admin-form-nolabel > td.tsub { display: none; }
table.content_table.admin-form input[type=text], table.content_table.admin-form input[type=email], table.content_table.admin-form input[type=password], table.content_table.admin-form textarea { width: 100%; max-width: 100%; }
@media (max-width: 799px) {
  table.content_table.admin-form > tbody { grid-template-columns: minmax(0, 1fr); }
}
tr.severity-alert td, tr.severity-critical td { color: #ff8a8a !important; }
tr.severity-warning td { color: #ffc98a !important; }
tr.unread td { color: #fff !important; }
.footer-options .footer-group { margin: 0 8px; }
.footer-options .footer-group a { white-space: nowrap; }   /* zeven talen: groep mag afbreken, een vlag + naam niet */
.footer-options a { font-weight: normal; color: #bbb; text-decoration: none; }
.footer-options a img { margin-bottom: -4px; }
.footer-options a.current { color: var(--sc-gold); }

/* Wachtwoord-sterkte (registratie / reset, zie app.js) */
.pw-strength { margin-top: 4px; max-width: 220px; }
.pw-strength-bar { height: 6px; background: rgba(255,255,255,.12); border: 1px solid var(--sc-border); border-radius: 3px; overflow: hidden; }
.pw-strength-bar span { display: block; height: 100%; width: 0; background: #ff6b6b; transition: width .25s ease, background-color .25s ease; }
.pw-strength.score-2 .pw-strength-bar span { background: #f0a030; }
.pw-strength.score-3 .pw-strength-bar span { background: #c8d830; }
.pw-strength.score-4 .pw-strength-bar span { background: #61ff05; }
.pw-strength.empty { display: none; }
.pw-strength-label { font-size: 10px; }

/* Gast-homepage: screenshots */
.home-screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.home-screenshots img { width: 100%; height: auto; display: block; border: 1px solid var(--sc-border); border-radius: 4px; }

/* Ingelogde homepagina: persoonlijke info + kerncijfers/snel-naar als tegels (beide layouts) */
.home-avatar { display: inline-block; width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--sc-border); border-radius: 4px; }
.home-avatar-empty { line-height: 80px; text-align: center; font-size: 36px; font-weight: bold; color: var(--sc-gold); background: var(--sc-red); text-decoration: none !important; }
.home-personal img { max-width: none; }
.home-progress .hpbarbg { display: inline-block; vertical-align: middle; width: 60%; max-width: 220px; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 6px; }
.home-tile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; background: #1b1b1c url('/assets/img/tableback.png') center top repeat-x; border: 1px solid rgba(142,122,89,.5); border-radius: 6px; color: #b79c6d; text-decoration: none; }
a.home-tile:hover { border-color: var(--sc-gold); text-decoration: none; }
.home-tile img { flex: 0 0 16px; width: 16px; height: 16px; }
.home-tile-text { display: block; min-width: 0; flex: 1 1 auto; }
.home-tile-label { display: block; font-size: 10px; line-height: 13px; color: var(--sc-gold-dark); }
.home-tile-value { display: block; font-size: 12px; line-height: 16px; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tile .hpbarbg { display: block; width: 100%; max-width: 100px; height: 6px; margin-top: 2px; }
.home-tile .xpbar { display: block; }
.home-news { margin-bottom: 6px; }
.home-online a { white-space: nowrap; }

/* Spelerslogboek /logs (B30) */
.logbook-filters select, .logbook-filters input { margin: 2px 4px 2px 0; }
table.logbook td.logbook-icon { text-align: center; width: 24px; padding-left: 2px; padding-right: 2px; }
table.logbook td.logbook-icon img { vertical-align: middle; }
table.logbook td.logbook-amount { text-align: right; white-space: nowrap; }
table.logbook tr.logbook-day td { font-size: 11px; letter-spacing: .5px; }
.logbook-pages a, .logbook-pages strong { margin: 0 3px; }
/* B41: timer resetten met credits (timer_reset_button()): kleine goudkleurige knop naast een countdown */
.timer-reset { display: inline; margin: 0 0 0 6px; padding: 0; }
.timer-reset[hidden], .timer-reset-pool { display: none !important; }
button.timer-reset-btn { display: inline-block; width: auto; min-height: 0; min-width: 0; margin: 0; padding: 1px 7px; font: inherit; font-size: 10px; font-weight: bold; line-height: 14px; color: var(--sc-gold); background: var(--sc-button-color); border: 1px solid var(--sc-button-border); border-radius: 8px; cursor: pointer; white-space: nowrap; vertical-align: middle; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
button.timer-reset-btn:hover, button.timer-reset-btn:focus-visible { color: #fff; border-color: var(--sc-gold); filter: brightness(1.2); text-decoration: none; }
/* F137: resetknop op de captcha-plek (timer_reset_captcha_slot()) - groter dan de kleine inline-variant
   hierboven, zodat hij als volwaardige vervanger van de captcha-widget aanvoelt i.p.v. een bijschrift. */
.timer-reset-slot { display: flex; align-items: center; min-height: 32px; }
.timer-reset-slot button.timer-reset-btn { font-size: 13px; padding: 6px 16px; border-radius: 16px; }
.timer-reset-slot button.timer-reset-btn:disabled { opacity: .6; cursor: default; filter: none; }
