:root {
    color-scheme: light dark;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    background-color: light-dark(#ffffff, #000000);
    color: light-dark(#000000, #ffffff);
}

.menu-icon {
    margin-bottom: -2px;
}

/* -------------------------------------- */
/* ESTILOS DE BASE (style.css) */
/* -------------------------------------- */

.sidebar {
    background: light-dark(#f5f5f5, #1c1c1c);
    min-height: 100vh;
    padding-top: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .menu-list li {
    margin: 8px 0;
}

.sidebar .menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    margin: 0 10px;
    transition: background 0.3s;
}

.sidebar .menu-list li a:hover {
    background: light-dark(#e0e0e0, #333333);
}

.sidebar .menu-list li a.active {
    background: #7f4caf;
    color: white;
}

.site-header {
    background: light-dark(#ffffff, #000000);
    border-bottom: 1px solid light-dark(#ccc, #444);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

.main {
    padding: 20px;
}

.topbar {
    height: 60px;
    background-color: light-dark(#f9f9f9, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid light-dark(#e0e0e0, #333333);
}

.user-info {
    font-size: 16px;
    font-weight: bold;
    color: light-dark(#000000, #ffffff);
}

.weather-info {
    font-size: 14px;
    color: light-dark(#333333, #cccccc);
}

/* -------------------------------------- */
/* LAYOUT E RESPONSIVIDADE (responsive.css) */
/* -------------------------------------- */

/* CORREÇÃO APLICADA: Força a exibição e o tamanho correto do logo */
.sidebar-logo {
    text-align: center;
    margin: 20px 0;
    display: block; 
}

/* Regra que garante o tamanho da imagem */
.sidebar-logo img {
    width: 200px; 
    height: auto;
}

.header-user-info {
    display: none;
}

.header-responsive-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: light-dark(#f9f9f9, #1a1a1a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
}

.header-logo-mobile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 901;
}

.menu-toggle {
    display: flex;
    z-index: 902;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: light-dark(#000, #fff);
    padding: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar:not(.open) .menu-list {
    display: block;
}

.content-area, .content {
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
}

/* -------------------------------------- */
/* 2. MEDIA QUERY (TABLET / DESKTOP) */
/* -------------------------------------- */

@media (min-width: 768px) {

    .header-responsive-bar, .menu-toggle {
        display: none !important;
    }

    .sidebar-logo {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 220px;
        height: 100vh;
        transform: translateX(0);
        padding-top: 0;
        z-index: 50;
    }

    .header-logo-mobile {
        display: none;
    }

    .content-area, .content {
        margin-left: 220px;
        width: auto;
        padding-top: 20px;
    }
}