/* --------------------------------------------------------------------------------------------- */
/* ########################################### MENU ############################################ */
/* --------------------------------------------------------------------------------------------- */
#menu, #content, #content_profile { height: 100%; transition: width .3s ease-in-out; }
#menu > .body, #content .body, #content_profile .body { position: relative; height: 60%; padding: 25px; padding-top: 10px; }
#menu > .body { transition: height .3s ease-in-out; }
#content > header, #content_profile > header { height: 12%; }

#menu { min-width: 260px; }
#menu > header { display: flex; justify-content: center; height: 20%; transition: height .3s ease-in-out; }
#menu > header > .logo { z-index: 1; position: relative; padding-top: 10px; }
#menu > header > .logo > img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 100px;
  box-shadow: 0 0 0 8px var(--background);
  background-color: #2a2f32; }
#menu > header > .logo:hover > img { animation-duration: var(--animate-duration); animation-fill-mode: both; animation-name: swing; }
#menu > header > .logo > span { z-index: -1; position: absolute; width: calc(100% - 16px); top: 34px; left: 0; }
#menu > header > .logo > span:before,
#menu > header > .logo > span:after { content: ""; position: absolute; width: calc(100% + 35px); height: 70px; top: -42px; }
#menu > header > .logo > span:before { left: calc(-100% + 21px); background: radial-gradient(circle at bottom left, transparent 65px, var(--background) 66px); }
#menu > header > .logo > span:after { right: calc(-100% + 5px); background: radial-gradient(circle at bottom right, transparent 65px, var(--background) 66px); }

#menu > .body > ul { color: #fff; }
#menu > .body > ul > li { position: relative; cursor: pointer; }
#menu > .body > ul > li > a { 
  z-index: 1;
  position: relative; 
  display: flex; 
  align-items: center; 
  margin: 30px 0;
  color: #fff;
  line-height: 1.1;
  text-decoration: none; }
#menu > .body > ul > li > a.disabled { opacity: .5; pointer-events: none; }
#menu > .body > ul > li.active > a { color: var(--theme); font-weight: 500; }
#menu > .body > ul > li > span { 
  display: none;
  position: absolute;
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  top: -10px;
  left: -15px;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  background: var(--background); }
#menu > .body > ul > li > span:before,
#menu > .body > ul > li > span:after { content: ""; position: absolute; width: 45px; height: 45px; right: -15.5px; }
#menu > .body > ul > li > span:before { top: -29.5px; background: radial-gradient(circle at top left,transparent 29px, var(--background) 30px); }
#menu > .body > ul > li > span:after { bottom: -29.5px; background: radial-gradient(circle at bottom left,transparent 29px, var(--background) 30px); }
#menu > .body > ul > li.active > span { display: block; }
#menu > .body > ul i { font-size: 22px; width: 35px; text-align: center; margin-right: 10px; }
#menu > .body > ul > li.active i { font-weight: 300; }
#menu > .body > ul > li:not(.active):hover { color: #fff; }
#menu > .body > ul > li:hover i { 
  transform-origin: top center;
  animation-duration: var(--animate-duration);
  animation-fill-mode: both;
  animation-name: swing; }

#menu > .body .user_role { display: block; font-size: 15px; font-weight: 700; text-align: center; color: rgba(0,0,0,.5); }
#menu > .body .user_role > i { font-size: 24px; margin-right: 5px; }
#menu > footer { height: 20%; position: relative; display: flex; justify-content: center; align-items: center; padding: 10px; }
#menu > footer > .waves {
  filter: invert(1);
  opacity: .1; 
  position: absolute;
  width: 110%;
  height: 100%;
  bottom: 0;
  left: 0; }
#menu > footer > .info { display: flex; align-items: center; position: relative; margin-top: 30px; text-align: center; }
#menu > footer > .info > img { background-color: var(--background); border-radius: 50px; border-bottom-right-radius: 0; padding: 5px; }
#menu > footer > .info .icon { filter: invert(1); opacity: .4; }
#menu > footer .copyright { display: block; font-size: 12px; font-weight: 700; color: rgba(0,0,0,.3); line-height: 1.2; }

#btn_control_responsive_menu { display: none; }

/* --------------------------------------------------------------------------------------------- */
/* ######################################## TOGGLE MENU ######################################## */
/* --------------------------------------------------------------------------------------------- */
body.compress #btn_control_menu { color: #666; }
body.compress #menu { min-width: auto; }
body.compress #menu > header { padding: 15px; }
body.compress #menu > header > .logo { padding-top: 0; }
body.compress #menu > header > .logo > img { width: 50px; height: 50px; box-shadow: 0 0 0 4px var(--background); }
body.compress #menu > header > .logo > span { display: none; }
body.compress #menu > .body { padding: 10px 20px; text-align: center; }
body.compress #menu > .body .user_role > span, body.compress #menu > footer > .info .copyright { display: none; }
body.compress #menu > .body > ul > li > a { justify-content: center; }
body.compress #menu > .body > ul > li > a > span { display: none; }
body.compress #menu > .body > ul > li > span { width: calc(100% + 30px); left: -10px; }
body.compress #menu > .body i { margin: 0; }
body.compress #menu > footer { padding: 5px; flex-grow: 1; }
body.compress #menu > footer > .waves { width: auto; }
body.compress #menu > footer > .info { flex-flow: column; margin-top: 20px; }
body.compress #menu > footer > .info > img { height: 45px; margin-bottom: 10px; }
body.compress #menu > footer > .info > div { margin: 0 !important; }
body.compress #menu > footer > .info .icon { margin-right: 0; }

/* --------------------------------------------------------------------------------------------- */
/* ################################## RESPONSIVE STYLES ######################################## */
/* --------------------------------------------------------------------------------------------- */
/* Bootstrap5 grid | xs < 576px | sm ≥ 576px | md ≥ 768px | lg ≥ 992px | xl ≥ 1200px | xxl ≥ 1400px */
/* #################### xs < 576px ##################### */
/* @media screen and (max-width: 575px) { } */
/* #################### sm ≥ 576px ##################### */
/* @media screen and (min-width: 576px) and (max-width: 767px) { } */
/* #################### md ≥ 768px ##################### */
/* @media screen and (min-width: 768px) and (max-width: 991px) { } */
/* #################### lg ≥ 992px ##################### */
/* @media screen and (min-width: 992px) and (max-width: 1199px) { } */
/* #################### xl ≥ 1200px #################### */
/* @media screen and (min-width: 1200px) and (max-width: 1399px) { } */
/* #################### xxl ≥ 1400px ################### */
/* @media screen and (min-width: 1400px) { } */

@media screen and (max-width: 991px) { 
  #menu { 
    overflow: overlay;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 100;
    height: 100%;
    min-width: 260px !important;
    background: var(--theme);
    box-shadow: 0 5px 15px 2px rgb(0 0 0 / 30%);
    transition: all .3s ease-in-out; }
  #menu > header { justify-content: space-between; align-items: center; }
  #btn_control_responsive_menu { display: block; font-size: 30px; color: #fff; }
  #content, #content_profile { width: 100% !important; height: max-content; border-radius: 0 !important; }
  #content > .body, #content_profile > .body { padding: 20px; height: 0; }
  #menu > .body > ul > li > a { justify-content: flex-start !important; }
  #menu > .body > ul > li > a > span { display: block !important; }
  body.compress #menu { display: flex; flex-flow: column; left: 0; }
  body.compress #menu > header { height: auto; }
  body.compress #menu > .body { padding-right: 25px; }
  body.compress #menu > .body > ul > li > span { width: calc(100% + 35px); }
  body.compress #ResponsiveShadow { display: block !important; }
  body.compress #menu > .body .user_role > span, body.compress #menu > footer > .info .copyright { display: block; }
}