/* DefiniÃ§Ãµes de cor */
:root {
    --backgroundColor: white;
    --textColor: black;
    --inputColor: #9090906f;
}
:root.dark {
    --backgroundColor: black;
    --textColor: white;
}
@media (prefers-color-scheme: dark) {
    :root {
      --backgroundColor: black;
      --textColor: white;
    }
    :root.light {
      --backgroundColor: white;
      --textColor: black;
    }
}
/* Geral */
* {
    font-family: Arial;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background-color: var(--backgroundColor);
    color: var(--textColor);
}
/* Barra de rolagem customizada */
::-webkit-scrollbar /*the scrollbar.*/{
    width: 15px;
}

::-webkit-scrollbar-track/*the track (progress bar) of the scrollbar.*/{
    border: none;
}

::-webkit-scrollbar-thumb/*the draggable scrolling handle.*/{
    background: var(--inputColor);
    border-radius: 28px;
}

::-webkit-scrollbar-thumb:hover/*the draggable scrolling handle on hover.*/{
    background: var(--themeColor);
}
/* Botoes e botoes encadeados */
button {
    cursor: pointer;
    background-color: var(--backgroundColor);
    border-radius: 50px;
    border: solid 2px transparent;
    color: var(--textColor);
    margin: 0;
    padding: 15px;
    float: left;
    transition-duration: 0.2s;
    font-size: 16px;
    font-weight: bold;
}
button img {
	max-height: 30px;
	max-width: 30px;
    vertical-align: middle;
    margin: 0 15px;
}
button.first {
    border-radius: 50px 0 0 50px;
}
button.middle {
    border-radius: 0;
}
button.last {
    border-radius: 0 50px 50px 0;
}
button:hover {
    background-color: var(--themeColor);
}
button:active {
    background-color: var(--inputColor);
}
button:disabled {
    cursor: not-allowed;
    background-color: var(--inputColor);
}
/* Input e seletores */
input, select {
    color: var(--textColor);
    background-color: var(--backgroundColor);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: solid 2px var(--inputColor);
    border-radius: 15px;
    margin: 10px;
    padding: 5px;
    font-size: 16px;
    transition-duration: 0.4s;
}
select:hover, input:hover {
    border-color: var(--themeColor);
}
select:focus, input:focus, button:focus {
    outline: 0 solid transparent;
    border-color: var(--themeColor);
}
select:disabled, input:disabled {
    background-color: var(--inputColor);
    border-color: var(--inputColor);
}

/* Placeholder (dica de texto) */
::-webkit-input-placeholder { /* Edge */
    color: var(--textColor);
    opacity: .8;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--textColor);
    opacity: .8;
}

::placeholder {
    color: var(--textColor);
    opacity: .8;
}

/* textarea (usada para exibir trechos de codigo) */
textarea {
    resize: none;
    color: var(--textColor);
    background-color: var(--backgroundColor);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 80%;
    height: 200px;
    overflow: auto;
    border: solid 2px var(--inputColor);
    border-radius: 15px;
    transition-duration: 0.4s;
}

textarea:hover {
    border-color: var(--themeColor);
}
textarea:focus {
    outline: 0 solid transparent;
    border-color: var(--themeColor);
}
textarea:disabled {
    background-color: var(--inputColor);
    border-color: var(--inputColor);
}
/* Inputs especificos (color, image, button, submit, reset) */
input[type=color] {
    height: 50px;
    padding: 2px;
    background-color: var(--backgroundColor);
    color: var(--textColor);
}
input[type=image] {
    height: 50px;
    padding: 15px;
    background-color: var(--backgroundColor);
    border: none;
}
input[type=image]:hover {
    background-color: var(--themeColor);
}
input[type=image]:active {
    background-color: var(--inputColor);
}
input[type=submit], input[type=reset], input[type=button] {
    cursor: pointer;
    background-color: var(--backgroundColor);
    color: var(--textColor);
    margin: 0;
    padding: 15px;
    transition-duration: 0.2s;
}
input[type="submit"]:active, input[type=reset]:active, input[type=button]:active {
    background-color: var(--btnHover);
}
/* Inputs tipo checkbox ('switch') */
input[type="checkbox"] {
  appearance: none;
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0;
  background-color: var(--inputColor);
  border: solid 2px transparent;
  border-radius: 34px;
  cursor: pointer;
}
input[type="checkbox"]:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 2px;
  background-color: var(--inputColor);
  border-radius: 50%;
  transition-duration: 0.4s;
}
input[type="checkbox"]:checked {
  background-color: var(--themeColor);
}

input[type="checkbox"]:checked:before {
  left: 26px;
  background-color: var(--backgroundColor);
}
input[type="checkbox"]:hover {
    border-color: var(--themeColor);
}
input[type="checkbox"]:focus {
    border-color: var(--themeColor);
}
input[type="checkbox"]:active {
    border-color: var(--inputColor);
}
/* Inputs tipo seletor ('radio') */
input[type="radio"] {
  appearance: none;
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  margin: 0;
  background-color: var(--inputColor);
  border: solid 2px transparent;
  border-radius: 50%;
  cursor: pointer;
}
input[type="radio"]:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 6px;
  bottom: 6px;
  background-color: var(--inputColor);
  border-radius: 50%;
  transition-duration: 0.4s;
}
input[type="radio"]:checked {
  background-color: var(--themeColor);
}
input[type="radio"]:checked:before {
  background-color: var(--backgroundColor);
}
input[type="radio"]:hover {
    border-color: var(--themeColor);
}
input[type="radio"]:focus {
    border-color: var(--themeColor);
}
input[type="radio"]:active {
    border-color: var(--inputColor);
}
/* Inputs tipo range ('slider') */
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    /*width: 100%;*/
    height: 34px;
    background: var(--themeColor);
    outline: none;
    border: solid 2px transparent;
    border-radius: 34px;
}
input[type="range"]:hover {
    border-color: var(--themeColor);
}
input[type="range"]:focus {
    border-color: var(--themeColor);
}
input[type="range"]:active {
    border-color: var(--inputColor);
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--backgroundColor);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--backgroundColor);
    cursor: pointer;
}
img {
    max-width: 100px;
    max-height: 100px;
}
code {
    border: none;
    background-color: var(--inputColor);
    padding: 5px;
    /* margin: 10px; */
    border-radius: 5px;
    line-height: 31px;
    user-select: all;
}
table {
    border: solid 2px var(--themeColor);
    border-collapse: collapse;
    transition-duration: 0.2s;
}
th, td {
    border: solid 2px var(--themeColor);
    transition-duration: 0.2s;
}
tr:hover {
    background-color: var(--inputColor);
}

a {
    color: var(--textColor);
    /*aatext-decoration: none;*/
}
a:link {
    color: var(--textColor);
    /*aatext-decoration: none;*/
}
a:active {
    color: var(--themeColor);
    /*aatext-decoration: none;*/
}
a:visited {
    color: auto;
    /*aatext-decoration: none;*/
}
a:focus {
    outline-color: var(--themeColor);
    /*aatext-decoration: none;*/
}
img {
    max-height: 40px;
    max-width: 40px;
}
/* Loaders indeterminados e com porcentagem (progress) */

/* Indeterminados */
progress {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50px;
    background-color: var(--inputColor);
}
progress:after {
    content: '';
    font-size: 20px;
    font-weight: bold;
    background-color: var(--themeColor);
    border-radius: 50px;
    width: 20%;
    height: 15px;
    display: block;
    animation: loading 1s infinite;
    position: relative;
    top: -15px;
}
progress::-webkit-progress-bar {
    background-color: transparent;
}
progress::-webkit-progress-value {
    background-color:var(--themeColor);
    border-radius: 50px;
}
/* Determinados */
progress[value] {
    background-color: transparent;
}
progress[value]:after {
    background-color: transparent; 
}
progress[value]::-webkit-progress-bar {
    background-color: var(--inputColor);
    border-radius: 50px;
}

@keyframes loading {
    from {
        margin-left: none;
    }
    to {
        margin-left: 80%;
    }
}
/* Caixa flutuante (background) */
.popup {
    position: fixed; z-index: 1;
    margin: 0; left: 0;
    top: 0; width: 100%; /* Largura total */
    height: 100%; /* altura total */
    overflow: auto; /* Ativa rolagem se necessaÃĄrio */
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    border-radius: 0;
}

/* Caixa flutuante */
.popup div {
    width: 80%;
    margin: auto;
    border-radius: 28px;
    padding: 10px;
    text-align: center;
    background-color: var(--backgroundColor);
    -moz-animation: animatezoom 0.6s;
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s;
}

.popup div div {
    border-radius: 28px;
    /*border: none;*/
    padding: 0;
    text-align: center;
    width: auto;
}
.popup .container {
    padding: 10px;
    text-align: initial;
}

/* Add Zoom Animation */
@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}
/* Boxes descritivos */
.box {
    margin: 10px;
    padding: 10px;
    border-radius: 28px;
    color: white;
    background-color: var(--themeColor);
    text-align: center;
    text-decoration: none;
}
.box div {
  margin: auto;
  background-color: var(--backgroundColor);
  padding: 0;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
.box div img {
  width: 50px;
  height: 50px;
  margin: 25px;
}

/* Containers */
.container {
    border: solid 2px var(--themeColor);
    border-radius: 28px;
    margin: 10px;
    padding: 10px;
}

.container::after {
    content: "";
    clear: both;
    display: table;
}

.container h3 {
    margin: 10px;
}

.container img {
    float: left;
    max-width: 60px;
    margin-right: 20px;
}

.container button img {
    float: none;
    max-width: none;
    width: auto;
}

/* Notificacoes */
#notificationList {
    /* Versao mobile - Exibe a notificacao na parte superior da tela */
    position: fixed;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 300px;
}
@media only screen and (min-width: 768px) {
    /* Versao desktop - Exibe a notificacao no canto inferior direito da tela */
    #notificationList {
        top: auto;
        bottom: 10px;
        width: 250px;
        height: auto;
    }
}
#notificationList .container {
    background-color: var(--backgroundColor);
}
/* Holder centralizado */
.holder {
    align-content: center;
    text-align: center;
    height: 65px;
    width: 100%;
    margin:0;
    padding: 0;
}
/* Navegacao */

.navigation { /* desktop: lateral */
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
	position: fixed;
    left: 0;
    top: 0;
   	bottom: auto;
    height: 100%;
    width: 80px;
    background-color: var(--themeColor);
}
.navigation button {
	background-color: transparent;
	min-height: 0;
	min-width: 0;
    font-size: 14px;
    height: auto;
    width: 100%;
    border-radius: 14px;
}
.navigation button img {
	margin: auto;
}
.navigation button:hover {
	background-color: var(--themeColor);
}
.navigation button:disabled {
    cursor: auto;
	background-color: var(--themeColor);
}

.navigation a, .topNavigation a {
    display: block;
}

/* Navegacao (paginas estaticas) */

.topNavigation {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
	position: fixed;
    left: 0;
    top: 0;
   	bottom: auto;
    height: 80px;
    width: 100%;
    background-color: var(--themeColor);
}
.topNavigation button {
	background-color: transparent;
	min-height: 0;
	min-width: 0;
    font-size: 14px;
    height: 100%;
    width: auto;
    border-radius: 14px;
}
.topNavigation h1 {
    margin: 0;
}
.topNavigation button:hover {
	background-color: var(--themeColor);
}
.topNavigation button:disabled {
    cursor: auto;
	background-color: var(--themeColor);
}
.topNavigation #menu {
    display: none;
}

#menu {
  display: inline-block;
  cursor: pointer;
  border-radius: 15px;
  padding: 5px;
}

#menu div {
  width: 35px;
  height: 5px;
  background-color: var(--textColor);
  margin: 6px 0;
  transition: 0.4s;
}

#menu :nth-child(1) {
  transform: translate(0, 11px) rotate(-45deg);
}

.hide #menu div {
    transform: none;
    opacity: 1;
}

#menu :nth-child(2) {
    opacity: 0;
}

#menu :nth-child(3) {
  transform: translate(0, -11px) rotate(45deg);
}

.sidePanel { /* desktop: lateral */
	position: fixed;
    left: 80px;
    top: 0;
    height: 100%;
    width: 320px;
    background-color: var(--backgroundColor);
    border: solid 2px var(--themeColor);
    overflow: auto;
}
.hide .sidePanel {
	display: none;
}
.topNavigation ~ .sidePanel {
    top: 80px;
    left: 0;
}
.mainPanel { /* desktop: lateral */
	position: fixed;
    left: 400px;
    top: 0;
    height: 100%;
    width: calc(100% - 400px);
    background-color: var(--backgroundColor);
    overflow: auto;
    padding: 0 30px;
}
.topNavigation ~ .mainPanel {
    top: 80px;
    left: 320px;
    width: calc(100% - 320px);
    height: calc(100% - 80px);
}
.hide .topNavigation ~ .mainPanel {
	left: 0px;
    width: 100%;
}
.hide .mainPanel {
	left: 80px;
    width: 100%;
}
#mainImage {
    max-height: 60px;
    max-width: 100%;
}

@media screen and (max-width: 600px) {
  .navigation { /* mobile: parte inferior */
      flex-flow: row nowrap;
      position: fixed;
      left: 0;
      top: auto;
      bottom: 0;
      height: 80px;
      width: 100%;
  }
  .navigation button {
      height: 100%;
      width: auto;
  }
  .sidePanel { /* mobile: tela toda */
  	  z-index: 1;	
      position: fixed;
      left: 0;
      top: 0;
      height: calc(100% - 80px);
      width: 100%;
  }
  .hide sidePanel {
  	  display: none;
  }
  .mainPanel { /* mobile: tela toda */
      position: fixed;
      left: 0;
      top: 0;
      height: calc(100% - 80px);
      width: 100%;
  }
  .hide .mainPanel {
  	  left: 0;
      width: 100%;
  }
  
  /* Top Navigation */
  .topNavigation button { /* mobile: esconder botoes */
      width: 100%;
      height: auto;
      display: none;
  }
  .topNavigation #menu {
      width: auto;
      height: auto;
      display: inline-block;
  }
  .topNavigation.show {
      height: 100%;
      display: flex;
      flex-flow: column nowrap;
  }
  .topNavigation.show button {
      display: flex;
      height: auto;
      width: 100%;
  }
  .topNavigation.show ~ .mainPanel, .topNavigation.show ~ .sidePanel {
      display: none;
  }
}

#sideButton {
	width: auto;
    height: auto;
	transform: rotateY(180deg);
}

.hide #sideButton {
	transform: rotateY(0deg);
}