/* ===== PAINEL LATERAL (SIDEBAR) - CSS ===== */
/* Arquivo: /mapa-erderon/assets/css/sidebar.css */

/* ===== 1. CONTAINER PRINCIPAL DO SIDEBAR ===== */
.side-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 450px; /* CRÍTICO: impede extravasamento */
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 20000;
    transition: right 1.0s ease;
    overflow-y: auto;
    overflow-x: hidden; /* CRÍTICO: impede scroll horizontal */
    border-left: 2px solid #444;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.side-panel.active {
    right: 0;
}

/* ===== 2. BOTÃO DE FECHAR ===== */
.side-panel-header {
    display: none;
}

.close-panel {
    position: fixed;
    top: 20px;
    left: calc(100vw + 50px); /* FORA DA TELA - Começa escondido à direita */
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer !important; /* CRÍTICO: força cursor pointer */
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* TRANSIÇÃO DO LEFT - move junto com o sidebar */
    transition: left 1.0s ease, background 0.3s ease;
    z-index: 100000 !important; /* CRÍTICO: acima de TUDO (login=99999, sidebar=20000) */
    /* Remove opacity - agora usa movimento */
    opacity: 1;
    pointer-events: auto !important; /* CRÍTICO: sempre clicável */
}

.side-panel.active .close-panel {
    /* MOVE PARA POSIÇÃO FINAL - junto com a abertura do sidebar */
    left: calc(100vw - 488px); /* 450px sidebar + 35px margem */
    transition: left 1.0s ease, background 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 3. CONTEÚDO PRINCIPAL ===== */
.side-panel-content {
    padding: 20px;
}

.panel-main-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #444;
}

/* Imagem vertical (para races e houses) */
.panel-main-image.vertical {
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
}

.panel-title {
    color: #ffffff;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-subtitle {
    color: #cccccc;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ===== 4. SEÇÕES DO SIDEBAR ===== */
.panel-characters,
.panel-topics,
.panel-description,
.panel-gallery {
    margin-bottom: 30px;
}

.section-title {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #444;
    padding-bottom: 8px;
}

/* ===== 5. GRID DE PERSONAGENS ===== */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.character-item {
    position: relative;
    cursor: pointer;
}

.character-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

.character-image:hover {
    transform: scale(1.05);
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.character-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.character-item:hover .character-name {
    opacity: 1;
}

/* Link clicável em personagens */
.character-item.character-clickable {
    cursor: pointer;
}

.character-item.character-clickable .character-image {
    position: relative;
}

.character-item.character-clickable .character-image::after {
    content: '🔗';
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(74, 144, 226, 0.9);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-item.character-clickable:hover .character-image::after {
    opacity: 1;
}

.character-item.character-clickable:hover .character-image {
    border-color: #7b68ee;
    box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
}

/* ===== 6. GRID DE TÓPICOS ===== */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.topic-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.topic-label {
    color: #4a90e2;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.topic-value {
    color: #ffffff;
    font-size: 14px;
}

/* ===== 7. DESCRIÇÃO ===== */
.description-text {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #7b68ee;
}

/* ===== 8. GALERIA ===== */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-item {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 2px solid #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #4a90e2;
    transform: scale(1.02);
}

/* ===== 9. MODAL DA GALERIA ===== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 25000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-image {
    max-width: 1200px;
    max-height: 1000px;
    border-radius: 8px;
}

.modal-text {
    max-width: 300px;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-image-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-image-detail {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 12px;
}

.modal-learn-more {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.modal-learn-more:hover {
    color: #7b68ee;
    text-decoration: underline;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-nav.prev {
    left: -80px;
}

.modal-nav.next {
    right: -80px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

/* ===== RESPONSIVIDADE SIDEBAR ===== */
@media (max-width: 768px) {
    .side-panel {
        width: 90vw;
        right: -90vw;
    }
    
    .close-panel {
        /* Mobile: começa fora da tela também */
        left: calc(100vw + 50px);
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        transition: left 1.0s ease, background 0.3s ease;
    }

    /* Mobile: posição final quando sidebar ativo */
    .side-panel.active .close-panel {
        left: calc(10vw + 20px);
    }
    
    .panel-title {
        font-size: 24px;
    }
    
    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .character-image {
        width: 60px;
        height: 60px;
    }
    
    /* Modal responsivo mobile */
    .modal-content {
        flex-direction: column;
        max-width: 95%;
        max-height: 90%;
        gap: 15px;
    }
    
    .modal-image {
        max-width: 100%;
        max-height: 60vh;
    }
    
    .modal-text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .modal-image-title {
        font-size: 16px;
        order: 1;
    }
    
    .modal-image-detail {
        font-size: 13px;
        order: 3;
    }
    
    .modal-learn-more {
        order: 4;
        align-self: center;
        margin-top: 15px;
    }
    
    .modal-nav {
        position: static;
        margin: 10px 5px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-nav.prev,
    .modal-nav.next {
        position: static;
        left: auto;
        right: auto;
    }
    
    .modal-close {
        top: -30px;
        font-size: 24px;
    }
}

/* ========================================= */
/* ===== GRID CONFIG SIDEBAR ===== */
/* ========================================= */

/* Sidebar de grid tem largura específica de 280px */
.grid-config-panel {
    right: -280px;
    width: 280px;
    /* Imagem de fundo de textura de ferro para o grid sidebar - TEMA ESCURO */
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/iron_texture_grid2.png') !important;
    background-size: cover;
    background-position: top; /* Alinha o topo da imagem com o topo do sidebar */
    background-repeat: repeat;
    /* Remove overflow-y porque vamos controlar scroll internamente */
    overflow-y: hidden !important;
}

/* Tema CLARO - grid sidebar */
[data-theme="light"] .grid-config-panel {
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/iron_texture_grid3.png') !important;
}

.grid-config-panel.active {
    right: 0;
}

/* Ajuste do botão fechar para o grid sidebar */
.grid-config-panel.active .close-panel {
    /* MOVE PARA POSIÇÃO FINAL - junto com a abertura do grid sidebar */
    left: calc(100vw - 320px); /* 280px sidebar + 40px margem */
    transition: left 1.0s ease, background 0.3s ease;
}

/* Grid Sidebar Content - Layout Dividido */
.grid-config-panel .side-panel-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0; /* Remove padding para controle preciso */
}

/* Header Fixo - Hexágono, Título, Botões */
.grid-config-header-fixed {
    flex-shrink: 0; /* Não encolhe */
    padding: 20px;
    background: inherit; /* Herda fundo do pai */
}

/* Área com Scroll - Sliders */
.grid-controls-scrollable {
    flex: 1; /* Ocupa espaço restante */
    overflow-y: auto; /* Scroll vertical */
    padding: 0 20px 20px 20px; /* Padding lateral e bottom */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Firefox */
}

/* Webkit scrollbar para área de sliders */
.grid-controls-scrollable::-webkit-scrollbar {
    width: 6px;
}

.grid-controls-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.grid-controls-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.grid-controls-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Container do hexágono de exemplo - TRANSPARENTE SEM BORDA */
.grid-example-container {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Fundo transparente para ver o mapa */
    border: none; /* SEM BORDA */
    margin-bottom: 30px;
    margin-top: 10px;
    /* Padding ajustado: 16px top, SEM padding horizontal, 8px bottom */
    padding: 16px 0px 8px 0px; /* top right bottom left */
    box-sizing: border-box;
}

#gridExampleCanvas {
    display: block;
}

/* Título do Painel de Controle */
.grid-control-panel-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Botão Liga/Desliga Grid - TEXTO SOBREPOSTO À IMAGEM DOS FILTERS */
.grid-toggle-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px; /* Espaço entre os botões */
}

.grid-toggle-btn {
    position: relative;
    width: 70%; /* 30% menor */
    height: 35px; /* 30% menor (50px * 0.7) */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

    /* BOX-SHADOW REMOVIDO - estava causando background indesejado */
    box-shadow: none !important;

    /* Imagem de fundo do botão (filter button) - SEM BACKGROUND-COLOR */
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/filterbutton-dark-act.png') !important;

    /* Texto centralizado sobre a imagem */
    color: #ffffff;
    font-size: 14px; /* Fonte maior */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8); /* Sombra forte e dupla */

    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-toggle-btn:hover {
    transform: scale(1.05);
}

.grid-toggle-btn:active {
    transform: scale(0.98);
}

/* Estado desativado do grid - muda imagem de fundo */
.grid-toggle-btn.grid-disabled {
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/filterbutton-dark-inact.png');
}

/* Tema claro - muda imagem de fundo */
[data-theme="light"] .grid-toggle-btn {
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/filterbutton-light-act.png');
}

[data-theme="light"] .grid-toggle-btn.grid-disabled {
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/filterbutton-light-inact.png');
}

/* Oculta o ícone separado (não é mais necessário) */
.grid-toggle-icon {
    display: none;
}

/* Botão de Reset do Grid - USA IMAGEM DO BOTÃO "TODOS" */
.grid-reset-btn {
    position: relative;
    width: 30%; /* Menor que o toggle */
    height: 35px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: none !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/allbutton-dark-act.png') !important;

    /* Símbolo de reset ↻ centralizado */
    color: #ffffff;
    font-size: 22px; /* Grande para o símbolo ↻ */
    font-weight: normal;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);

    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-reset-btn:hover {
    transform: scale(1.05);
}

.grid-reset-btn:active {
    transform: scale(0.98);
}

/* Tema claro - reset button */
[data-theme="light"] .grid-reset-btn {
    background-image: url('http://erderon.com/wp-content/uploads/2025/10/allbutton-light-act.png') !important;
}

/* Seção de controle (cada slider) */
.grid-control-section {
    margin-bottom: 30px;
}

/* Label do controle */
.grid-control-label {
    color: #4a90e2;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px; /* DIMINUÍDO de 12px para 8px (menos gap) */
    letter-spacing: 1px;
}

/* Label do controle de COR - gap aumentado */
#gridColorLabel {
    margin-bottom: 18px; /* Apenas o label de cor tem gap maior */
}

/* Slider (range input) */
.grid-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Slider - Thumb (bolinha) - CENTRALIZADA */
.grid-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: -6px; /* Centraliza: (20px thumb - 8px track) / 2 = 6px */
}

.grid-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.8);
}

.grid-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Firefox não precisa de margin-top, já centraliza automaticamente */
}

.grid-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.8);
}

/* Slider - Track (barra de fundo) */
.grid-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.grid-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

/* Valor do controle (porcentagem) - SEMPRE BRANCO */
.grid-control-value {
    color: #ffffff !important; /* Força branco em ambos os temas */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
}

/* ===== COLOR SLIDER (SELETOR DE COR HORIZONTAL) ===== */
.grid-color-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; /* SEMPRE 100% - NÃO MEXER NISTO */
    height: 20px;
    border-radius: 0px;
    outline: none;
    margin-bottom: 10px;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    overflow: visible; /* CRÍTICO: permite thumb sair das bordas */
    /* GRADIENTE SUAVE - SEM BORDA (solução do problema) */
    background-color: #000000;
    background-image: linear-gradient(to right,
        /* Cores neutras - transições suaves */
        #000000 0%,                /* Preto (valor 0) */
        #000000 1.39%,             /* Preto até aqui */
        #666666 2.78%,             /* Cinza médio (valor 10) */
        #cccccc 4.17%,             /* Cinza claro (valor 15) */
        #ffffff 5.56%,             /* Branco (valor 20) */
        /* Arco-íris - transições suaves entre cores */
        #FF8800 8.33%,             /* Laranja (valor 30) */
        #FFFF00 16.67%,            /* Amarelo (valor 60) */
        #88FF00 25%,               /* Verde-amarelo (valor 90) */
        #00FF00 33.33%,            /* Verde (valor 120) */
        #00FF88 41.67%,            /* Verde-ciano (valor 150) */
        #00FFFF 50%,               /* Ciano (valor 180) */
        #0088FF 58.33%,            /* Ciano-azul (valor 210) */
        #0000FF 66.67%,            /* Azul (valor 240) */
        #8800FF 75%,               /* Azul-magenta (valor 270) */
        #FF00FF 83.33%,            /* Magenta (valor 300) */
        #FF0044 91.67%,            /* Vermelho-magenta (valor 330) */
        #FF0000 100%               /* VERMELHO PURO até o fim (valor 360) */
    );
    border: none; /* SEM BORDA - essencial para evitar rosa nas bordas */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Color Slider - Thumb (PIN MARKER SVG - MAIOR) - Webkit/Chrome */
.grid-color-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; /* AUMENTADO de 12px para 16px */
    height: 26px; /* AUMENTADO proporcionalmente */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="26" viewBox="0 0 16 26"><circle cx="8" cy="8" r="6.5" fill="white" stroke="black" stroke-width="1.5"/><path d="M 8 14.5 L 4 21 L 8 24 L 12 21 Z" fill="white" stroke="black" stroke-width="1.5" transform="rotate(180 8 19.25)"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin-top: -14px; /* ABAIXADO de -17px para -14px (mais 3px abaixo) */
    /* JAVASCRIPT aplica --thumb-offset dinamicamente para estender movimento */
    transform: translateX(var(--thumb-offset, 0px));
    transition: none; /* Remove transition para movimento suave via JS */
}

/* Sem hover effect - removido */

/* Color Slider - Thumb (PIN MARKER SVG - MAIOR) - Firefox */
.grid-color-slider::-moz-range-thumb {
    width: 16px; /* AUMENTADO de 12px para 16px */
    height: 26px; /* AUMENTADO proporcionalmente */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="26" viewBox="0 0 16 26"><circle cx="8" cy="8" r="6.5" fill="white" stroke="black" stroke-width="1.5"/><path d="M 8 14.5 L 4 21 L 8 24 L 12 21 Z" fill="white" stroke="black" stroke-width="1.5" transform="rotate(180 8 19.25)"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
    /* JAVASCRIPT aplica --thumb-offset dinamicamente para estender movimento */
    transform: translateX(var(--thumb-offset, 0px));
    transition: none; /* Remove transition para movimento suave via JS */
}

/* Sem hover effect - removido */

/* Color Slider - Track (o gradiente já está no background do input) */
.grid-color-slider::-webkit-slider-runnable-track {
    height: 20px;
    border-radius: 0px;
    width: 100%; /* Largura padrão - o slider já está estendido */
}

.grid-color-slider::-moz-range-track {
    height: 20px;
    border-radius: 0px;
    width: 100%; /* Largura padrão - o slider já está estendido */
}

/* Tema claro - adaptações para grid sidebar */
[data-theme="light"] .grid-example-container {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Títulos em tema claro - BRANCO com sombra preta forte */
[data-theme="light"] .grid-config-panel .panel-title-header,
[data-theme="light"] .grid-control-panel-title {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

/* Labels dos controles em tema claro - BRANCO com sombra preta */
[data-theme="light"] .grid-control-label {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 1);
}

[data-theme="light"] .grid-slider {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .grid-slider::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .grid-slider::-moz-range-track {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .grid-control-value {
    background: rgba(0, 0, 0, 0.7);
    border-color: #333;
    color: #ffffff !important; /* Mantém branco no tema claro também */
}