:root {
    --primary-color: #34495e;
    --secondary-color: #2c3e50;
    --accent-color: #febf11;
    --text-color: #e0e0e0;
    --background-color: #34495e;
    --light-bg-color: #3c3c3c;
    --cta-bg-color: #61dafb;
    --cta-text-color: #1a1a1a;
}

/* ===== ALGEMENE RESET EN LAYOUT ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    overflow: hidden; /* Voorkom pagina scroll */
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    background-color: #2c2c2c;
    line-height: 1.8;
    height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

iframe {
    width: calc(100% - 450px);
    height: 100%;
    border: none;
}

/* ===== MAIN CONTAINER LAYOUT ===== */
.main-container { 
    display: flex; 
    height: 100vh; 
    position: relative; 
}

.pdf-container { 
    flex: 1; 
    background-color: #2c2c2c; 
    transition: width 0.3s ease; 
    overflow: hidden; 
    width: calc(100% - 450px);
    min-width: 0;
    position: relative;
}

#pdf-frame {
    /* Dwing de iframe om de container volledig te vullen */
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 450px);
    height: 100%;
    border: none;
    background-color: #525659; /* Voeg een achtergrondkleur toe voor debugging */
}

.pdf-content { 
    height: 100%; 
    width: calc(100% - 450px);
    border: none; 
    display: block; 
}

/* ===== CHESS PANEL ===== */

.chess-panel { 
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 450px; 
    height: 100vh; 
    background-color: #2c2c2c; 
    color: white; 
    transition: right 0.3s ease; 
    z-index: 1000; 
    overflow-y: auto; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.3); 
}

.chess-panel.open { 
    right: 0; 
}

.panel-header {
  position: relative;             /* referentie voor absolute posities */
  display: flex;
  flex-direction: column;
  background-color: #2c2c2c; 
  padding: 10px 15px; 
  border-bottom: 2px solid #f39c12; 
  top: 0; 
  z-index: 10; 
}

.panel-header-top {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.copyright {
  position: absolute;
  right: 15px;       /* dezelfde padding als header */
  bottom: 2px;       /* vlak boven de border-bottom */
  font-size: 12px;
  color: #febf11;
}


.panel-title { 
    font-size: 18px; 
    font-weight: bold; 
    flex: 1; 
}

.panel-subtitle { 
    font-size: 14px; 
    color: #bdc3c7; 
}

.panel-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-controls { 
    flex-shrink: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 10px; 
}

.close-btn { 
    background-color: #e74c3c; 
    color: white; 
    border: none; 
    padding: 8px 12px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 14px; 
}

.close-btn:hover { 
    background-color: #c0392b; 
}

.panel-content { 
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}

.chess-placeholder { 
    background-color: #34495e; 
    border: 2px dashed #7f8c8d; 
    border-radius: 8px; 
    padding: 40px 20px; 
    text-align: center; 
    max-width: 350px;
    margin: 0 auto;
}

.chess-placeholder p { 
    color: #bdc3c7; 
    font-size: 16px; 
    margin: 1em 0; 
}

.diagram-link { 
    display: inline-block; 
    background-color: #3498db; 
    color: white; 
    padding: 8px 12px; 
    margin: 5px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 14px; 
    cursor: pointer; 
}

.diagram-link:hover { 
    background-color: #2980b9; 
}

/* ===== CHESS VIEWER SPECIFIEKE STYLING ===== */
p {
    margin: 0 0 2em 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.83em;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    box-sizing: border-box;         
}

.page-content {
    max-width: 410px;
    margin: 0 auto;
}

.vertical-container {
    display: flex;
    flex-direction: column;
}

.board-section {
    flex: 0 0 auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* MOVES SECTION - Met beperkte hoogte om scroll te voorkomen */
.moves-section {
    padding: 20px 0;
    max-height: calc(100vh - 615px);
    display: flex;
    flex-direction: column;
    /* TOEGEVOEGD: */
    max-width: 350px;
    margin: 0 auto;
    box-sizing: border-box;
}

.text-block {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    flex: 1;
}

.text-block table {
    border-collapse: collapse;
    width: 100%;
}

.text-block th, .text-block td {
    border: 1px solid var(--accent-color);
    padding: 5px;
    text-align: left;
}

.text-block th {
    background-color: var(--accent-color);
    color: var(--background-color);
}

.moves-table {
    width: 100%;
    table-layout: fixed;
}

.moves-table th,
.moves-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 33%;
}

/* ===== MOVE STYLING ===== */
.move-row {
    display: flex;
    margin-bottom: 5px;
}

.move-number {
    width: 30px;
    color: #888;
}

.move-item {
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    width: 87%;
}

.move-item:hover, .move-item.variation-move:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

.move-item.current {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: bold;
}

/* ===== VARIATION STYLING ===== */
.variation-row {
    background-color: rgba(254, 191, 17, 0.2);
}

.variation-start, .variation-end {
    color: var(--accent-color);
    font-weight: bold;
}

.variation-moves {
    color: #ccc;
    font-style: italic;
}

.move-item.variation-move {
    color: #febf11;
    font-style: italic;
}

.move-item.mainline-move {
    color: #000;
    font-weight: normal;
}

.variation-cell {
    background: #f9f9f9;
    padding: 6px 12px;
    border-left: 3px solid #2196f3;
    margin: 2px 0;
}

.variation-marker {
    color: #666;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    background: #e0e0e0;
    padding: 1px 4px;
    border-radius: 2px;
}

/* ===== COMMENT STYLING ===== */
.comment-row {
    background-color: rgba(96, 218, 251, 0.1);
}

.comment-cell {
    font-style: italic;
    color: #aaa;
    padding: 8px !important;
    background: #fff3e0;
    color: #333;
    border-left: 3px solid #ff9800;
}

.inline-comment {
    color: #666;
    font-size: 11px;
    margin-left: 4px;
}

/* ===== SCROLLBAR STYLING ===== */
.text-block::-webkit-scrollbar {
    width: 8px;
}

.text-block::-webkit-scrollbar-track {
    background: var(--background-color);
}

.text-block::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* ===== BOARD STYLING ===== */
img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#board_wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    z-index: 1;
    margin: 0 auto;
    max-width: 100%;
}

#myBoard {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

#chessboard {
    width: 350px;
    height: 350px;
    margin-bottom: 5px;
}

#status {
    text-align: center;
    padding: 5px;
    border: 1px solid var(--accent-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

#navigatie {
    border-top: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
}

.btn-group {
    display: flex;
    width: 100%;
    max-width: 350px;
    height: 30px;
}

.btn-group button {
    flex: 1;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0;
    cursor: pointer;
    border: none;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
}

.btn-group button:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
}

.btn-mainline, .btn-back {
    background: #007cba;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 5px;
    transition: background 0.2s;
}

.btn-mainline:hover, .btn-back:hover {
    background: #005a87;
}

/* ===== INPUT GROUPS ===== */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input[type="text"],
.input-group input[type="file"] {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid var(--accent-color);
    background-color: var(--background-color);
    color: var(--text-color);
}

.input-group button {
    padding: 5px 10px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
}

.input-group button:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
}

/* ===== SELECTS ===== */
.notation-select {
    width: 100%;
    padding: 5px 10px;
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.game-select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 10px;
    background-color: var(--light-bg-color);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 12px;
}

/* ===== PROMOTION OVERLAY ===== */
.overlay-promotion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.promotion-box {
    background-color: var(--background-color);
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%239C92AC" fill-opacity="0.4" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.promotion-pieces {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.promotion-piece {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

.promotion-piece:hover {
    transform: scale(1.1);
}

.cancel-promotion {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.cancel-promotion:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
}

/* ===== CHESS FONT ===== */
@font-face {
    font-family: 'Chess';
    src: url('https://github.com/ornicar/lila/blob/master/public/font/lichess.chess.woff2?raw=true') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.figurine {
    font-family: 'Chess', sans-serif;
}

/* ===== BOARD COLORS ===== */
.white-1e1d7 {
    background-color: #febf11;
    color: #333333;
}

.black-3c85d {
    background-color: #9f9f9f;
    color: white;
}

/* ===== NAVIGATION INFO ===== */
.navigation-info {
    margin-top: 10px;
    padding: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #ddd;
}

.variant-indicator, .mainline-indicator {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: #333;
}

.variant-indicator {
    color: #0066cc;
}

/* ===== KEYBOARD HINTS ===== */
.keyboard-hints {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 10px;
    display: none;
}

.keyboard-hints.show {
    display: block;
}

/* ===== NAG SYMBOLS ===== */
.move-item {
    font-family: Arial, sans-serif;
    position: relative;
}

.nag-symbols {
    font-weight: bold;
    margin-left: 2px;
}

/* Kleur codering voor goede zetten */
.nag-symbols[data-nags*="1"]:not([data-nags*="2"]) {
    color: #35f855; /* Groen voor ! */
}

/* Kleur codering voor slechte zetten */
.nag-symbols[data-nags*="2"]:not([data-nags*="1"]) {
    color: #f80000; /* Rood voor ? */
}

/* Kleur codering voor briljante zetten */
.nag-symbols[data-nags*="3"] {
    color: #35f855; /* Groen voor !! */
    font-size: 1.1em;
}

/* Kleur codering voor blunders */
.nag-symbols[data-nags*="4"] {
    color: #f80000; /* Rood voor ?? */
    font-size: 1.1em;
}

/* Interessante/twijfelachtige zetten */
.nag-symbols[data-nags*="5"], 
.nag-symbols[data-nags*="6"] {
    color: #ff7300; /* Oranje voor !? en ?! */
}

/* Stellingsbeoordelingen */
.nag-symbols[data-nags*="14"], 
.nag-symbols[data-nags*="15"],
.nag-symbols[data-nags*="16"], 
.nag-symbols[data-nags*="17"],
.nag-symbols[data-nags*="18"], 
.nag-symbols[data-nags*="19"] {
    color: #6a1b9a; /* Paars voor stellingsbeoordelingen */
}

/* Neutrale beoordelingen */
.nag-symbols[data-nags*="10"], 
.nag-symbols[data-nags*="11"],
.nag-symbols[data-nags*="12"], 
.nag-symbols[data-nags*="13"] {
    color: #795548; /* Bruin voor neutrale beoordelingen */
}

/* NAG symbolen uit commentaren */
.nag-symbols.nag-from-comment {
    color: #9c27b0;
    font-style: italic;
}

/* Hover effect voor moves met NAG */
.move-item:hover {
    background-color: #f5f5f5;
    border-radius: 3px;
    padding: 1px 3px;
}

/* Tooltip voor NAG betekenis */
.nag-symbols:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* ===== AANPASSINGEN VOOR INTEGRATIE ===== */
#chessViewerContainer .page { 
    padding: 0; 
    background: none; 
}

#chessViewerContainer .page-content { 
    max-width: none; 
    margin: 0; 
}

/* ===== RESPONSIVE DESIGN - GELAAGDE BREAKPOINTS ===== */

/* ===== DESKTOP GROOT (> 1200px) */
@media (min-width: 1201px) and (min-height: 900px) {
    .pdf-container { 
        width: calc(100% - 450px) !important;
    }
    
    .pdf-container.panel-open { 
        width: calc(100% - 450px) !important;
    }
    
    .pdf-content { 
        width: 100% !important;
    }
    
    /* Chess panel altijd zichtbaar op grote schermen */
    .chess-panel { 
        right: 0 !important;
        position: fixed;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    /* Terug naar PDF knop verbergen */
    .back-to-pdf { 
        display: none !important;
    }
    
}

/* ===== DESKTOP GROOT MAAR LAGE HOOGTE ===== */
@media (min-width: 1201px) and (max-height: 899px) {
    .pdf-container { 
        width: 100% !important;
    }
    
    .pdf-container.panel-open { 
        width: 100% !important;
    }
    
    #pdf-frame {
        width: 100%;
    }
    
    .pdf-content { 
        width: 100% !important;
    }
    
    .chess-panel { 
        position: fixed;
        right: -450px;
        transition: right 0.3s ease;
        z-index: 1500;
        box-shadow: -5px 0 25px rgba(0,0,0,0.4);
        overflow-x: hidden;
    }
    
    .chess-panel.open { 
        right: 0;
    }
    
    .chess-panel.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: none;
    }
    
    .close-btn {
        background-color: #e74c3c;
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .back-to-pdf { 
        max-width: 350px;
        margin: 0 auto;
        display: block !important;
        background-color: #27ae60; 
        color: white; 
        padding: 8px; 
        text-align: center; 
        margin-top: 15px; 
        margin-bottom: 10px;
        border-radius: 4px; 
        text-decoration: none; 
        font-weight: bold;
    }
    
    .back-to-pdf:hover { 
        background-color: #229954; 
    }
    
    .panel-opener {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        background-color: #007cba;
        color: white;
        border: none;
        padding: 15px 8px;
        border-radius: 8px 0 0 8px;
        cursor: pointer;
        z-index: 1000;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 14px;
        font-weight: bold;
        box-shadow: -3px 0 10px rgba(0,0,0,0.3);
        transition: background-color 0.3s ease;
    }
    
    .panel-opener:hover {
        background-color: #005a87;
    }
    
    .panel-opener.hidden {
        display: none;
    }
}

/* ===== DESKTOP MEDIUM (768px - 1200px) - Overlay mode ===== */
@media (min-width: 769px) and (max-width: 1200px) {
    .pdf-container { 
        width: 100% !important;
    }
    
    .pdf-container.panel-open { 
        width: 100% !important;
    }
    
    #pdf-frame {
        width: 100%;
    }
    
    .pdf-content { 
        width: 100% !important;
    }
    
    /* Chess panel als overlay op medium schermen */
    .chess-panel { 
        position: fixed;
        right: -450px; /* Standaard buiten beeld */
        transition: right 0.3s ease;
        z-index: 1500; /* Hoger dan grote schermen */
        box-shadow: -5px 0 25px rgba(0,0,0,0.4); /* Sterkere schaduw voor overlay effect */
        overflow-x: hidden;
    }
    
    .chess-panel.open { 
        right: 0; /* Slide in van rechts */
    }
    
    /* Semi-transparante achtergrond overlay */
    .chess-panel.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Close button prominenter maken */
    .close-btn {
        background-color: #e74c3c;
        font-size: 16px;
        padding: 10px 15px;
    }
    
    /* Terug naar PDF knop tonen op medium schermen */
    .back-to-pdf { 
        max-width: 350px;
        margin: 0 auto;
        display: block !important;
        background-color: #27ae60; 
        color: white; 
        padding: 5px; 
        text-align: center; 
        margin-top: 15px; 
        margin-bottom: 10px;
        border-radius: 4px; 
        text-decoration: none; 
        font-weight: bold;
    }
    
    .back-to-pdf:hover { 
        background-color: #229954; 
    }
    
   
    /* Panel opener button voor als panel gesloten is */
    .panel-opener {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        background-color: #007cba;
        color: white;
        border: none;
        padding: 15px 8px;
        border-radius: 8px 0 0 8px;
        cursor: pointer;
        z-index: 1000;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 14px;
        font-weight: bold;
        box-shadow: -3px 0 10px rgba(0,0,0,0.3);
        transition: background-color 0.3s ease;
    }
    
    .panel-opener:hover {
        background-color: #005a87;
    }
    
    .panel-opener.hidden {
        display: none;
    }
}

/* ===== MOBIEL KLEIN (≤ 768px) - Volledig overlay ===== */
@media (max-width: 768px) {
    /* PDF container neemt volledige breedte op mobiel */
    .pdf-container { 
        width: 100% !important;
    }
    
    .pdf-container.panel-open { 
        width: 100% !important;
    }
    
    #pdf-frame {
        width: 100%;
    }
    
    .pdf-content {
        width: 100% !important;
        height: 100vh !important;
        display: block !important;
    }
    
    /* Chess panel als fullscreen overlay op mobiel */
    .chess-panel { 
        width: 100%;
        right: -100%; /* Standaard buiten beeld */
        transition: right 0.3s ease;
        z-index: 2000; /* Hoogste prioriteit op mobiel */
    }
    
    .chess-panel.open { 
        right: 0; /* Slide in van rechts */
    }
    
    /* Terug naar PDF knop prominent tonen op mobiel */
    .back-to-pdf { 
        max-width: 350px;
        margin: 0 auto;
        display: block !important;
        background-color: #27ae60; 
        color: white; 
        padding: 5px; 
        text-align: center; 
        margin-top: 15px;
        margin-bottom: 10px; 
        border-radius: 4px; 
        text-decoration: none; 
        font-weight: bold;
        font-size: 16px;
    }
    
    .back-to-pdf:hover { 
        background-color: #229954; 
    }
       
    .diagram-link {
        display: block;
        margin: 3px 0;
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    
    /* Panel content aanpassingen voor mobiel */
    .panel-content {
        height: calc(100vh - 120px);
    }
    
    .moves-section {
        max-height: calc(100vh - 500px);
        min-height: 150px;
    }
    
    /* Board wrapper aanpassen voor mobiel */
    #board_wrapper {
        width: 300px;
        height: 300px;
    }
    
    #chessboard {
        width: 300px;
        height: 300px;
    }
    
    #status {
        max-width: 300px;
    }
    
    .btn-group {
        max-width: 300px;
    }
    
    /* Panel opener button voor mobiel - floating style */
    .panel-opener {
        position: fixed !important;
        top: 50% !important;
        right: 20px !important;
        transform: translateY(-50%) !important;
        background-color: #007cba !important;
        color: white !important;
        border: none !important;
        padding: 15px 8px !important;
        border-radius: 8px 0 0 8px !important;
        cursor: pointer !important;
        z-index: 1500 !important;
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        font-size: 14px !important;
        font-weight: bold !important;
        box-shadow: -3px 0 10px rgba(0,0,0,0.3) !important;
        transition: background-color 0.3s ease !important;
    }
    
    .panel-opener:hover {
        background-color: #005a87 !important;
    }
    
    .panel-opener.hidden {
        display: none !important;
    }
}

/* ===== GEMEENSCHAPPELIJKE OVERLAY EFFECTEN ===== */
@media (max-width: 1200px) {
    /* Smooth animations voor overlay modes */
    .chess-panel {
        backdrop-filter: blur(2px);
    }
    
    /* Focus trap voor overlay modes */
    .chess-panel.open {
        outline: none;
    }
    
    /* Verbeterde close button voor overlay modes */
    .close-btn {
        transition: all 0.2s ease;
    }
    
    .close-btn:hover {
        transform: scale(1.05);
    }
}