@charset "utf-8";

/* menu.css - Estilos específicos do menu lateral */

/* ============================================
   MENU LATERAL
   ============================================ */

.simple-sidebar-menu {
    width: 350px;
    min-width: 350px;
    background-color: #ffffff;
    position: fixed;
    left: 0;
    top: 90px; /* ALTERAR: de 70px para 100px (70px header + 30px margem) */
    height: calc(100vh - 90px); /* ALTERAR: de 70px para 100px */
    overflow-y: auto;
    z-index: 900;
    padding: 10px 0;
    border-right: 1px solid #c20000; /* Linha divisória cinza */
    box-shadow: 0px 0 0px rgba(0,0,0,0.0);
    transition: transform 0.3s ease;
}

.simple-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-menu-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.simple-menu-link {
	text-align: right; /* ADICIONAR */
    display: block;
    justify-content: flex-end; /* ALTERAR: de space-between para flex-end */
    align-items: center;
    color: #464646;
    text-decoration: none;
    padding: 3px 20px 3px 0px;
	font-family: 'Open Sans', sans-serif;
    font-size: 15px;
	text-transform: uppercase;
    font-weight: 400;
    transition: all 0.2s ease;
	border-right: 2px solid transparent;
}

.simple-menu-link:hover {
	font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    border-right: 2px solid #c20000; /* ALTERAR: de left para right */
    border-left: none; /* ADICIONAR */
	font-weight: 600;
	color: #c20000;
	text-decoration: none;
}

.simple-menu-link.active {
    color: #c20000;
    border-right: 2px solid #c20000; /* ALTERAR: de left para right */
	border-left: none; /* ADICIONAR */
    font-weight: 600;
}

.simple-menu-text {
    flex-grow: 1;
}

.menu-title {
	text-align: right; /* ADICIONAR */
    padding: 0 30px 20px 20px; /* ALTERAR: mais à direita */
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
}

/* Submenu */
.submenu-toggle {
    color: #7f8c8d;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
	margin-left: 5px;
}

.has-submenu.active .submenu-toggle {
    transform: rotate(45deg);
    color: #c20000;
}

.simple-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    margin: 0;
}

.has-submenu.active .simple-submenu {
    max-height: 500px;
}

.simple-submenu li {
    margin: 0;
}

.simple-submenu a {
	text-align: right; /* ADICIONAR */
    display: block;
    padding: 3px 30px 3px 0px;
	padding-left: 40px; /* ADICIONAR: para itens de submenu */
    color: #909090;
	text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-right: 2px solid transparent;
}

.simple-submenu a:hover {
    padding-left: 0px;
	border-right: 2px solid #c20000;
	font-weight: 600;
	color: #c20000;
	text-decoration: none;
}

.simple-submenu a.active {
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 500;
}

/* Botão menu móvel */
.simple-mobile-toggle {
    display: none; /* Inicialmente escondido */
    position: fixed;
    top: 10px;
    left: 15px;
    background-color: #fff;
    color: darkred;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002; /* MAIS ALTO que o header (1000) */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.simple-mobile-toggle:hover {
    background-color: #9C9C9C;
}

/* ============================================
   AJUSTES DE LAYOUT
   ============================================ */

/* Quando menu está presente */
body.has-simple-menu .main-content {
    margin-left: 350px;
    width: calc(100% - 350px);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .simple-sidebar-menu {
        width: 300px;
        min-width: 300px;
    }
    
    body.has-simple-menu .main-content {
        margin-left: 300px;
        width: calc(100% - 300px);
    }
}

@media (max-width: 912px) {
    .simple-sidebar-menu {
        transform: translateX(-100%);
        width: 360px;
        top: 70px;
        height: calc(100vh - 70px);
        z-index: 1000;
    }
    
    .simple-sidebar-menu.active {
        transform: translateX(0);
    }
    
    body.has-simple-menu .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .simple-mobile-toggle {
        display: flex;
    }
    
    /* Ajustar barra superior para mobile */
    .top-bar {
        padding-left: 60px;
    }
	
	.submenu-simples {
    display: none;
  }
	
}

@media (max-width: 480px) {
    .simple-sidebar-menu {
        width: 100%;
    }
	
	.submenu-simples {
    display: none;
  }
	
}


/* ============================================
   MENU FLUTUANTE
   ============================================ *//* Submenu Simples */
.submenu-simples {
  position: fixed;
  right: 20px;
  top: 300px;
  transform: translateY(-50%);
  border-radius: 8px;
  padding: 5px 5px; /* Aumentado */
  width: 200px; /* Largura um pouco maior */
  box-shadow: 0 0px 0px rgba(0,0,0,0.08); /* Sombra sutil */
  z-index: 999;
  border: 1px solid rgba(194,0,0,0.20);
  text-align: center;
  text-transform: uppercase;
  background-color: white;
}

.submenu-simples2 {
  position: fixed;
  right: 100px;
  top: 35%;
  transform: translateY(-50%);
  border-radius: 8px;
  padding: 5px 5px; /* Aumentado */
  width: 150px; /* Largura um pouco maior */
  box-shadow: 0 0px 0px rgba(0,0,0,0.08); /* Sombra sutil */
  z-index: 999;
  border: 1px solid rgba(194,0,0,0.20);
  text-align: center;
  text-transform: uppercase;
  background-color: white;
}


.menu-rapido {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Espaço consistente entre todos */
}

.menu-rapido a {
  color: #C20000;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500; /* Um pouco mais negrito */
  padding: 3px 3px; /* Espaçamento interno generoso */
  border-radius: 6px; /* Cantos mais arredondados */
  transition: all 0.3s ease;
  letter-spacing: 0.5px; /* Espaço entre letras */
  border: 1px solid transparent; /* Para hover suave */
  letter-spacing: -0.3px;
}

.menu-rapido a:hover {
  background-color: #c20000;
  color: white;
  border-color: #c20000;
  padding: 3px 3px; /* Expande um pouco no hover */
}