:root {
    --primary-color: #ff7a00;
    --primary-color-hover: #e96d00;
    --primary-color-active: #cc6000;
    --primary-color-disabled: #ffb266;

    --on-primary: #ffffff;

    --secondary-color: #009f73;
    --secondary-color-hover: #008f68;
    --secondary-color-active: #007f5d;
    --secondary-color-disabled: #40c5a0;

    --appbar-height: 56px;

    --scaffold-body-color: #fff;
    /* --scaffold-body-color: #fafafa; */

    /* VisualBottomNavigationBar */
    --bottom-nav-bg: #ffffff;
    --bottom-nav-active: #009f73; /* secondary */
    --bottom-nav-inactive: #666666;
    --bottom-nav-elevation: 8px;    
}

/* Layout base */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* AppBar fixa */
.appbar {
    background-color: var(--primary-color);
    color: var(--on-primary);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.appbar .title { margin: 0 auto; font-size: 1.1rem; font-weight: 600; }
.menu-icon { cursor: pointer; font-size: 1.5rem; }

/* Conteúdo */
.content {
    flex: 1;
    padding: 1rem;
    margin-top: 56px;   /* espaço p/ AppBar */
    margin-bottom: 56px;/* espaço p/ BottomNav */
    overflow-y: auto;
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 100;
}
.bottom-nav .nav-item {
    color: var(--on-primary);
    font-size: 1.5rem;
    text-decoration: none;
}
.bottom-nav .active { border-top: 2px solid var(--on-primary); }

/* Drawer */
.drawer-toggle { display: none; }

.drawer-side {
    position: fixed;
    top: 0; bottom: 0; left: -260px;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
    z-index: 200;
}

/* Quando toggle está marcado → abre */
.drawer-toggle:checked ~ .drawer-side {
    left: 0;
}

/* Overlay */
.drawer-overlay {
    display: none;
}
.drawer-toggle:checked ~ .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}

/* Drawer header estilo Flutter */
.drawer-header {
    background: var(--primary-color);
    color: var(--on-primary);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
}
.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
}
.drawer-userinfo {
    display: flex;
    flex-direction: column;
}
.drawer-userinfo strong { font-size: 1rem; }
.drawer-userinfo span { font-size: 0.85rem; opacity: 0.9; }

/* Navegação interna */
.drawer-nav ul {
    list-style: none;
    margin: 0; padding: 0;
}
.drawer-nav li {
    margin: 0;
}
.drawer-nav a {
    display: block;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.drawer-nav a:hover {
    background: #f5f5f5;
}
