/* Arquivo: public/css/lightbearer.css */
.lb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--surface-color);
}

.lb-table th, .lb-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.lb-table th {
    background: var(--background-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* Regras de Cores Condicionais */
.lb-row-warning {
    background-color: rgba(241, 196, 15, 0.2) !important;
}

.lb-row-danger {
    background-color: rgba(231, 76, 60, 0.2) !important;
}

.lb-row-dead {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #888;
}

/* Botão de Edição */
.lb-btn {
    padding: 6px 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.lb-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.last-updated-by {
    font-size: 0.75em;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* public/css/lightbearer.css */

.glass-panel {
    background: rgba(26, 29, 43, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-header h2 {
    color: var(--accent-color);
    font-family: 'Alegreya SC', serif;
    font-size: 2rem;
    margin-bottom: 5px;
}

.animate-flicker {
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--accent-color); }
    50% { opacity: 0.7; text-shadow: 0 0 2px var(--accent-color); }
}

.lb-table {
    width: 100%;
    border-spacing: 0 8px; /* Espaçamento entre linhas */
    border-collapse: separate;
}

.lb-table th {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 10px 15px;
    border: none;
}

.lb-table tr td {
    background: rgba(255, 255, 255, 0.03);
    padding: 0px;
    padding-left: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-table tr td:first-child { border-left: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px 0 0 10px; }
.lb-table tr td:last-child { border-right: 1px solid rgba(255, 255, 255, 0.05); border-radius: 0 10px 10px 0; }

/* Estados Dinâmicos */
.lb-row-warning td { background: rgba(241, 196, 15, 0.1) !important; border-color: rgba(241, 196, 15, 0.2) !important; }
.lb-row-danger td { background: rgba(231, 76, 60, 0.15) !important; border-color: rgba(231, 76, 60, 0.3) !important; }
.lb-row-dead td { opacity: 0.4; filter: grayscale(1); }

/* Selos de tempo (Badges) */
.time-badge {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
}

.lb-row-danger .time-badge { color: #ff7675; text-shadow: 0 0 8px rgba(231, 76, 60, 0.5); }

/* =========================================
   Modal de Atualização de Basins
   ========================================= */
#lb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    /* O JS já altera o display para flex quando aberto */
    justify-content: center;
    align-items: center;
}

#lb-modal .modal-content {
    background: var(--surface-color, #1e2233);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#lb-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

#lb-modal .close-modal:hover {
    color: #ff7675;
}

/* Estilização dos Inputs (Caixinhas de Hora/Minuto) */
#lb-modal input[type="number"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#lb-modal input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Aperta a tabela inteira para o centro */
.table-responsive {
    padding-left: 50px;
    padding-right: 50px;
}

/* =========================================
   Seção de Log (Histórico)
   ========================================= */
.log-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar para o Log */
.log-container::-webkit-scrollbar { width: 8px; }
.log-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
.log-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

#log-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.log-item {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.log-item:last-child { border-bottom: none; }

.log-time {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    min-width: 75px;
}

.log-user { color: var(--accent-color); font-weight: bold; }
.log-action { color: #ccc; }
.log-basin { color: #fff; font-weight: 500; }

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

/* =========================================
   Toggle do Log
   ========================================= */
.log-wrapper {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s;
    margin-top: 15px;
}

.log-wrapper.log-collapsed {
    max-height: 0;
    margin-top: 0;
}

.icon-collapsed {
    transform: rotate(180deg);
}

/* =========================================
   Carrossel de Fotos
   ========================================= */
.carousel-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    align-items: center;
}

/* Scrollbar do Carrossel */
.carousel-container::-webkit-scrollbar { height: 8px; }
.carousel-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.carousel-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
.carousel-container::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.carousel-photo {
    height: 160px;
    min-width: 240px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0; /* Impede a imagem de espremer */
}

.carousel-photo:hover {
    transform: scale(1.03) translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Estilo idêntico ao início do Compendium */
.compendium-title {
    font-family: 'Goldman', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(var(--accent-rgb), 0.4);
}

.intro-box {
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
    padding: 0 20px;
}

.intro-box strong {
    color: var(--text-primary);
}

.intro-box em {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 600;
}

/* Ajuste Responsivo para o Título */
@media (max-width: 768px) {
    .compendium-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .intro-box {
        font-size: 0.95rem;
    }
}

/* =========================================
   Estilo para Links em Textos
   ========================================= */
.intro-box a,
.content-section p a {
    color: var(--accent-color, #e67e22); /* Usa a cor de destaque do seu tema */
    text-decoration: none; /* Remove o sublinhado padrão do navegador */
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Efeito ao passar o mouse (Hover) */
.intro-box a:hover,
.content-section p a:hover {
    color: #ffffff; /* O texto fica branco */
    text-shadow: 0 0 10px var(--accent-color, #e67e22); /* Ganha um brilho na cor de destaque */
}

/* Linha sutil animada que aparece no hover */
.intro-box a::after,
.content-section p a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color, #e67e22);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.intro-box a:hover::after,
.content-section p a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}