:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --gold: #d4af37;
    --red-sacred: #8a0e0e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --sidebar-width: 250px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Times New Roman', serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
    transition: all 0.3s ease;
}

/* --- SIDEBAR & MENU --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: #000;
    border-right: 2px solid var(--red-sacred);
    display: flex;
    flex-direction: column;
    padding: 50px;
    padding-top: 80px; /* Espaço para o botão toggle */
    transition: transform 0.3s ease;
    z-index: 100;
}

/* Classe para esconder o menu */
.sidebar.closed {
    transform: translateX(-100%);
    position: absolute;
    height: 100%;
}

.menu-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 200;
    background: var(--red-sacred);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.menu-toggle:hover {
    background: var(--gold);
    color: #000;
}

/* Quando o menu fecha, o main expande */
main {
    flex: 1;
    padding: 40px;
    padding-top: 60px;
    overflow-y: auto;
    background: radial-gradient(circle at center, #1e1e1e 0%, #121212 100%);
    transition: margin-left 0.3s ease;
    width: 100%;
}

.sidebar.closed ~ main {
    margin-left: 0;
}

/* --- ESTILOS GERAIS --- */
.logo {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    margin-bottom: 5px;
}

.nav-btn:hover, .nav-btn.active {
    background-color: var(--red-sacred);
    color: white;
}

.content-section {
    display: none;
    animation: fadeEffect 0.5s;
}

.content-section.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

h1 { color: var(--gold); border-bottom: 1px solid #333; padding-bottom: 10px; }

/* --- CARTÕES DE PRONÚNCIA --- */
.pronuncia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card-pronuncia {
    background: var(--bg-panel);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.p-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.p-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.p-latin { color: var(--gold); font-weight: bold; }
.p-arrow { color: #555; font-size: 1rem; }
.p-som { color: #fff; font-style: italic; }

.btn-play-row {
    background: #333;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
    width: 100%;
}

.btn-play-row:hover {
    background: var(--gold);
    color: #000;
}

/* --- OUTROS --- */
.intro-cards { display: flex; gap: 20px; }
.card { background: var(--bg-panel); padding: 20px; border: 1px solid var(--gold); flex: 1; cursor: pointer; }
.prayer-container, .lesson-block { background: var(--bg-panel); padding: 20px; margin-bottom: 20px; border-left: 4px solid var(--gold); }
.latin { font-size: 1.4rem; font-weight: bold; color: var(--gold); font-family: 'Times New Roman'; }
.btn-play { background: var(--gold); border: none; padding: 10px 20px; cursor: pointer; border-radius: 4px; font-weight: bold; margin-top: 10px; }
.btn-sm { background: #333; color: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; margin-left: 10px; }
.search-box input { width: 95%; padding: 15px; background: #000; border: 1px solid #333; color: white; border-radius: 8px; }
.dict-item { padding: 15px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.dict-latin { font-weight: bold; color: var(--gold); font-size: 1.2rem; }
.status-audio { margin-top: auto; font-size: 0.8rem; color: #555; text-align: center; }
