/* ========== RESET, LAYOUT E ESTRUTURA ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    display: flex;
    min-height: 100vh;
}

header {
    display: none;
}

/* Layout principal */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 1.5em;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s;
    text-align: left;
}

.nav-button:hover {
    background: rgba(255,255,255,0.1);
}

.nav-button.active {
    background: rgba(255,255,255,0.2);
}

.nav-icon {
    font-size: 16px;
}

.content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.section {
    display: none !important;
}

.section.active {
    display: block !important;
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.3em;
}

h3 {
    color: #333;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    .nav-button {
        white-space: nowrap;
    }
    .content {
        margin-left: 0;
        padding: 15px;
    }
}
