/* CSS Padrão (comum a todas as páginas) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: rgb(109, 0, 0);
    --sidebar-bg: #f0f0f0;
    --border-color: #e0e0e0;
}

.dark-theme {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #f5f5f5;
    --text-secondary: #cccccc;
    --accent-color: rgb(255, 0, 0);
    --sidebar-bg: #252525;
    --border-color: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-top, .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.sidebar-icon:hover {
    background-color: var(--bg-secondary);
}

.sidebar-icon.active {
    background-color: var(--accent-color);
    color: white;
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    margin-left: 80px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header CORRIGIDO - JUNTEI AS DUAS REGRAS */
.header {
    display: flex;
    justify-content: space-between; /* Mudado de flex-end para space-between */
    align-items: center;
    padding: 10px 20px;
    position: relative; /* Adicionado para posicionamento */
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    /* Removi position: fixed e ajustes manuais */
    /* O botão agora ficará alinhado naturalmente no header */
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 20px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* LOGO - Mantido igual */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}