﻿/* Reset */
body {
   font-family: 'Roboto', sans-serif;
   margin: 0;
   padding: 0;
   background-color: #f8f9fa;
}

/* === TOP MENU (Menu Superior) === */
.top-bar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: 60px;
   background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(35, 35, 35, 0.85) 100%);
   color: white;
   display: flex;
   align-items: center;
   justify-content: start;
   padding: 0 15px;
   z-index: 1100;
}

   .top-bar img {
      height: 40px;
   }

.top-menu {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   align-items: center;
   gap: 15px;
}

   .top-menu li {
      position: relative;
   }

   .top-menu > li > a {
      display: flex;
      align-items: center;
      color: white;
      text-decoration: none;
      padding: 12px 15px;
      font-size: 14px;
      font-weight: bold;
      transition: background 0.3s ease;
   }

      .top-menu > li > a:hover {
         background-color: rgba(255, 255, 255, 0.2);
         border-radius: 5px;
      }

   /* Submenus do Top Menu */
   .top-menu .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(50, 50, 50, 0.85) 100%);
      min-width: 220px;
      padding: 5px 0;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 1000;
   }

      .top-menu .submenu li {
         list-style: none;
      }


      .top-menu .submenu a {
         display: block;
         color: white;
         padding: 10px 15px;
         font-size: 13px;
         font-weight: bold;
         white-space: nowrap;
         text-decoration: none;
      }

         .top-menu .submenu a:hover {
            background-color: rgba(255, 255, 255, 0.2);
         }
   .top-menu > li:hover .submenu {
      display: block;
   }

/* === SIDEBAR === */
.sidebar {
   position: fixed;
   top: 60px;
   left: 0;
   width: 40px;
   height: calc(100% - 60px);
   background: linear-gradient(90deg, rgba(20, 20, 20, 0.9) 0%, rgba(50, 50, 50, 0.7) 50%, rgba(80, 80, 80, 0.3) 100%);
   color: white;
   z-index: 1050;
   box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   align-items: center;
   backdrop-filter: blur(6px);
   transition: width 0.3s ease-in-out !important;
}

   .sidebar.expanded {
      width: 250px;
      align-items: flex-start;
      padding-left: 10px;
      background: linear-gradient(90deg, rgba(20, 20, 20, 0.85) 0%, rgba(50, 50, 50, 0.6) 50%, rgba(100, 100, 100, 0.2) 100%);
   }

.sidebar-menu {
   list-style: none;
   padding: 0;
   margin: 0;
   width: 100%;
}

   .sidebar-menu li {
      list-style: none;
   }

   .sidebar-menu a {
      display: flex;
      align-items: center;
      color: white;
      text-decoration: none !important;
      padding: 10px;
      font-size: 14px;
      font-weight: bold;
      transition: background 0.3s ease;
      overflow: hidden;
      white-space: nowrap;
      width: 100%;
   }

.sidebar.expanded .sidebar-menu a {
   padding: 10px 15px;
}

.sidebar-menu a i {
   margin-right: 15px;
}

.sidebar-menu a:hover {
   background-color: rgba(255, 255, 255, 0.1);
}
/* Garanta que os links sem submenu tenham o cursor padrão */
.sidebar-menu a.menu-link:not(.submenu-toggle) {
   cursor: default;
}

/* Se quiser manter o cursor de pointer mesmo sem submenu: */
.sidebar-menu a.menu-link {
   cursor: pointer !important;
}
/* Submenus Sidebar */
.submenu {
   display: none;
   background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(50, 50, 50, 0.85) 100%);
   padding: 3px 0;
}

   .submenu a {
      color: white;
      padding: 6px 12px !important;
      font-size: 13px !important;
      font-weight: bold;
   }

      .submenu a:hover {
         background-color: rgba(255, 255, 255, 0.2);
      }

/* Rodapé */
.footer-bar {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   height: 50px;
   background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(35, 35, 35, 0.85) 100%);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 14px;
   font-weight: bold;
   z-index: 1200;
   box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.menu-title {
   display: block;
   background-color: white;
   font-size: 11px;
   color: black;
   padding: 10px;
   font-weight: bold;
   cursor: default;
}
