/* /portal/css/portal.css */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}
body {
    background-color: #f0f0f0;
}

/* --- Página de Login --- */
.box-login {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.logo-login {
    max-width: 200px;
    margin-bottom: 10px;
}
.box-login h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}
.box-login input[type="email"],
.box-login input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.box-login input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #d32727; /* Vermelho */
    color: white;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.box-login input[type="submit"]:hover {
    background-color: #a01f1f;
}

/* Alertas de Login */
.alerta-login {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}
.alerta-login.erro {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* --- Estrutura do Portal --- */
.menu-portal {
    width: 250px;
    padding: 20px 10px;
    background: #2c3e50; /* Azul escuro */
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
}
.box-usuario {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}
.avatar-usuario {
    width: 70px;
    height: 70px;
    background: #34495e;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}
.nome-usuario p:first-child {
    font-weight: bold;
}
.nome-usuario p:last-child {
    font-size: 13px;
    color: #bdc3c7;
}

.itens-menu {
    margin-top: 20px;
}
.itens-menu h2 {
    color: #95a5a6;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0 10px;
    margin-bottom: 10px;
}
.itens-menu a {
    display: block;
    padding: 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}
.itens-menu a:hover,
.itens-menu a.menu-active {
    background-color: #34495e;
}
.itens-menu a i {
    margin-right: 10px;
}

.main-header-portal {
    width: calc(100% - 250px);
    left: 250px;
    position: relative;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}
.main-header-portal .menu-btn {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: none; /* Só aparece no mobile */
}
.main-header-portal .loggout {
    float: right;
    font-size: 20px;
}
.main-header-portal .loggout a {
    color: #d32727;
}

.content-portal {
    width: calc(100% - 250px);
    left: 250px;
    position: relative;
    padding: 20px;
}
.box-content-portal {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.box-content-portal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .menu-portal {
        left: -250px; /* Esconde o menu */
        transition: left 0.3s;
        z-index: 99;
    }
    .menu-portal.open {
        left: 0;
    }
    .main-header-portal,
    .content-portal {
        width: 100%;
        left: 0;
    }
    .main-header-portal .menu-btn {
        display: inline-block;
    }
}