/* Reset simples */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Tela de login */
body.login-page {
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 16px;
    color: #2f855a;
    /* verde */
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #2f855a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.9;
}

.links-login {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.links-login a {
    color: #2f855a;
    text-decoration: none;
}

/* Layout após login */

body.app {
    background: #f7fafc;
    min-height: 100vh;
}

/* Barra superior verde */
.topbar {
    width: 100%;
    height: 56px;
    background: #2f855a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* conteúdo alinhado à direita */
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Ícone de três barras deitado (hambúrguer) */
.menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle .bars {
    width: 20px;
}

.menu-toggle .bars span {
    display: block;
    height: 3px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 2px;
}

/* Texto GAIATECHCONSULT */
.topbar-title {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Sidebar (menu lateral) */
.sidebar {
    position: fixed;
    top: 56px;
    /* abaixo da topbar */
    left: -260px;
    /* começa escondido */
    width: 260px;
    height: calc(100vh - 56px);
    background: #fff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    transition: left 0.2s ease;
    padding: 16px;
    z-index: 900;
}

.sidebar.open {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Conteúdo principal */
.main-content {
    padding: 80px 16px 16px 16px;
    /* 80px por causa da topbar fixa */
}