:root {
    --bg-dark: #0f0f0f;
    --bg-panel: #1a1a1a;
    --gold: #d4af37;
    --red: #8b0000;
    --purple: #6a0dad;
    --blue: #004d99;
    --text: #e0e0e0;
    --sidebar-w: 260px;
}

/* Temas Dinâmicos */
.theme-classic { --gold: #8b0000; }
.theme-dark { --gold: #555; }

body { margin: 0; font-family: 'Georgia', serif; background: var(--bg-dark); color: var(--text); overflow: hidden; }
.app-container { display: flex; height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w); background: #000; border-right: 2px solid var(--gold);
    padding: 20px; transition: 0.4s ease; display: flex; flex-direction: column; z-index: 100;
}
.sidebar.closed { margin-left: calc(-1 * var(--sidebar-w) - 40px); }

/* LOGO - SEMPRE OURO */
.logo { text-align: center; margin: 40px 0; color: var(--gold) !important; }
.logo i { 
    font-size: 3rem; 
    display: block; 
    margin-bottom: 15px; 
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6); 
}
.logo h2 { font-size: 1.4rem; margin: 0; text-transform: uppercase; letter-spacing: 2px; color: var(--gold) !important; }

/* NAVEGAÇÃO */
.nav-btn {
    background: none; border: none; color: #888; width: 100%; text-align: left;
    padding: 15px; cursor: pointer; border-radius: 5px; margin-bottom: 5px;
    display: flex; align-items: center; gap: 10px; font-size: 1.1rem; transition: 0.3s;
}
.nav-btn.active, .nav-btn:hover { background: var(--gold) !important; color: #000 !important; font-weight: bold; }

/* AUDIO PANEL */
.audio-panel {
    margin-top: auto; background: #111; border: 1px solid var(--gold);
    border-radius: 5px; padding: 10px; text-align: center;
}
#status-display { font-size: 0.8rem; color: var(--gold); margin-bottom: 8px; font-weight: bold; }
.controls-row { display: flex; gap: 5px; justify-content: center; }
.controls-row button {
    background: #333; color: white; border: none; padding: 10px; cursor: pointer; border-radius: 3px; font-size: 1.1rem;
}
.controls-row button:hover { background: var(--gold); color: black; }

/* MAIN CONTENT */
main { flex: 1; padding: 60px 40px; overflow-y: auto; background: radial-gradient(circle at center, #222, #000); }
.content-section { display: none; max-width: 900px; margin: 0 auto; animation: fadeIn 0.6s; }
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.version-alert { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--gold); padding: 15px; text-align: center; border-radius: 8px; margin-bottom: 25px; }

.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.card-info { background: var(--bg-panel); padding: 20px; border: 1px solid #333; border-radius: 5px; }
.card-info h3 { color: var(--gold); margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 5px;}

/* ORAÇÕES e TRADUÇÃO */
.prayer-container { background: var(--bg-panel); padding: 25px; margin-bottom: 25px; border-left: 5px solid var(--gold); border-radius: 4px; }
.prayer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.prayer-header h2 { margin: 0; color: white; }

.latin { font-style: italic; font-size: 1.25rem; color: #dcdcdc; line-height: 1.6; margin-bottom: 20px; border-left: 2px solid #333; padding-left: 15px; }
.traducao { font-style: normal; font-size: 1.2rem; color: var(--gold); line-height: 1.6; margin-bottom: 20px; border-left: 2px solid var(--gold); padding-left: 15px; animation: fadeIn 0.3s;}

.btn-trans-toggle { 
    background: none; border: 1px solid #555; color: #888; 
    padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; 
}
.btn-trans-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* BOTÕES COLORIDOS */
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid #333; padding-top: 15px; margin-top: 15px; }
.btn-play { background: #222; border: 1px solid var(--gold); color: var(--gold); padding: 10px 15px; cursor: pointer; font-weight: bold; border-radius: 4px; flex: 1; }
.btn-play:hover { background: var(--gold); color: black; }

.btn-music { background: #1a052b; border: 1px solid var(--purple); color: #d8b4fe; padding: 10px 15px; cursor: pointer; font-weight: bold; border-radius: 4px; flex: 1; }
.btn-music:hover { background: var(--purple); color: white; }

.btn-loop { background: #05182b; border: 1px solid var(--blue); color: #8ecae6; padding: 10px 15px; cursor: pointer; font-weight: bold; border-radius: 4px; flex: 1; }
.btn-loop:hover { background: var(--blue); color: white; }

.btn-sm-vocab { background: #111; color: var(--gold); border: 1px solid #444; flex: 1; padding: 10px; cursor: pointer; font-weight: bold; }
.btn-sm-vocab:hover { background: var(--gold) !important; color: black !important; }

/* DICIONARIO */
.search-box input { width: 100%; padding: 15px; background: #000; border: 1px solid var(--gold); color: white; border-radius: 4px; margin-bottom: 20px; }
.search-box input::placeholder { color: #666; }
.dict-item { padding: 15px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }

/* EQUIPAMENTOS PARANORMAIS */
.emf-display {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    background: #000;
    border-radius: 4px;
}

.emf-bar {
    width: 15px;
    height: 40px;
    border-radius: 3px;
    background: green;
    opacity: 0.3;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px currentColor;
}

.emf-label {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.sb-display {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
    text-align: center;
    color: cyan;
    border-radius: 4px;
}

.sb-frequency {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin: 10px 0;
    color: #00ff00;
}

.sb-channel {
    font-size: 0.8rem;
    color: cyan;
    margin-bottom: 5px;
}

.sls-screen {
    background: #002200;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid lime;
    border-radius: 4px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.sls-screen i {
    color: lime;
    font-size: 1.5rem;
}

.term-display {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: #001a00;
    border-radius: 4px;
}

.term-valor {
    font-size: 2rem;
    color: #d4af37;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.term-laser {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
}

.rem-display {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    gap: 8px;
}

.rem-barra {
    width: 10px;
    height: 40px;
    border-radius: 5px;
    opacity: 0.3;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px currentColor;
}

.rem-barra:nth-child(1) { background: red; }
.rem-barra:nth-child(2) { background: blue; }
.rem-barra:nth-child(3) { background: green; }
.rem-barra:nth-child(4) { background: yellow; }

.btn-activate-equip {
    background: #222;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
    width: 100%;
    transition: 0.3s;
}

.btn-activate-equip:hover {
    background: var(--gold);
    color: black;
}

.btn-activate-equip.active {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 10px var(--gold);
}

/* MOBILE */
.menu-toggle { position: fixed; top: 15px; left: 15px; z-index: 200; background: var(--gold); color: black; border: none; padding: 10px; cursor: pointer; border-radius: 4px; }

@media (max-width: 768px) {
    main { padding: 60px 20px; }
    .sidebar { width: calc(var(--sidebar-w) - 40px); }
}
