:root {
  /* 
  --color1: rgb(255, 248, 236);
  --color2: rgb(255, 240, 216);
  --color3: rgb(238, 202, 143);
  --color4: rgb(142, 113, 58);
 */
  --color1: rgb(245, 247, 250);
  --color2: rgb(228, 231, 235);
  --color3: rgb(160, 174, 192);
  --color4: rgb(113, 128, 150);
  --color5: rgb(74, 85, 104);

  /* --color4: color-mix(in srgb, var(--color5), green 50%); */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.oculto {
  display: none;
}

body {
  font-family: "Roboto", serif;
  font-size: 18px;
  background-color: var(--color1);
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* =================================================== */

.icon-app {
  clip-path: polygon(
    evenodd,
    0 100%,
    50% 0%,
    100% 100%,
    75% 100%,
    75% 50%,
    50% 90%,
    50% 62.5%,
    25% 50%,
    50% 37.5%,
    75% 50%,
    50% 62.5%,
    50% 90%,
    25% 50%,
    25% 100%
  );
}

.main-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
  background-color: transparent;

  .logo-app {
    filter: drop-shadow(15px 15px 15px var(--color4));

    .icon-app {
      --size: min(50vh, 50vw);
      height: var(--size);
      width: var(--size);
      background-color: var(--color1);
    }
  }
}

.header-app {
  display: flex;
  align-items: center;
  padding-right: 10px;
  background-color: var(--color1);
  border-top: 2px solid var(--color4);
  box-shadow: 0 0 20px var(--color3);
}

.header-app .container-logo {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 5px 30px 5px 10px;
  background-color: var(--color4);
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);

  .logo {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: baseline;
    min-width: 250px;

    .logotipo {
      font-family: "Times New Roman", Times, serif;
      font-weight: normal;
      font-size: 28px;
      color: var(--color1);
      text-shadow: 1px 1px 1px black;
    }

    .imagotipo {
      filter: drop-shadow(1px 1px 1px black);

      .icon-app {
        height: 24px;
        width: 24px;

        background-color: orange;
      }
    }
  }
}

/* =================================================== */
.dialog-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background-color: var(--color1);
  border: 1px solid var(--color4);
  border-radius: 5px;
  outline: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#confirmBox-dialog {
  padding: 10px 20px;
  width: max-content;
  user-select: none;

  form.confirmBox-dialog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    max-height: 80vh;
    min-width: 100px;
    overflow: auto;

    .message {
      max-width: 300px;
    }

    div {
      display: flex;
      flex-direction: row;
    }

    div.body {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 10px 0;
      overflow: auto;
    }

    div.footer {
      flex: 1;
      justify-content: right;
      gap: 10px;

      .btn {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1rem;
      }

      .btn-confirm {
        background-color: orangered;
        color: white;

        &:disabled {
          background-color: silver;
        }
      }

      .btn-cancel {
        border: 1px solid grey;
        color: black;
      }
    }
  }
}

#msgbox {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;

  background-color: var(--color1);
  border: 1px solid var(--color4);
  border-radius: 5px;
  outline: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

  &.error {
    border: 0;
    background-color: red;
  }

  &.info {
    border: 0;
    background-color: DarkCyan;
  }

  .msgbox {
    display: flex;
    align-items: center;
    min-width: 100px;
    max-width: 320px;
    color: whitesmoke;
    padding: 20px;
  }
}

.top-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 5px 0;
  color: black;
  overflow: auto;
}

.title-bar {
  display: flex;
  align-items: center;
  padding: 5px 10px 0 10px;
  background-color: inherit;
  box-shadow: 0 0 15px var(--color3);

  .title {
    flex: 1;
    text-align: center;
    font-weight: normal;
  }
}

.title-barX {
  display: flex;
  align-items: center;
  padding-right: 5px;
  height: 40px;
  background-color: var(--color1);
  box-shadow: 0 0 20px var(--color3);
  user-select: none;

  .title {
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    padding: 0 20px 0 10px;
    background-color: var(--color3);
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);

    h3 {
      font-weight: normal;
      color: var(--color1);
    }

    .top-toolbar {
      flex: 1;
    }
  }
}

/* ============================================================== */
#spinner-dialog::backdrop {
  background-color: transparent;
}

#spinner-dialog {
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  overflow: hidden;

  .spinner {
    width: 100px;
    height: 100px;
    border: 5px solid #fffc;
    border-top-color: #09f;
    border-radius: 100%;
    animation: spin 1s infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================================================================== */

@media (width <= 600px) {
  .container-logo {
    flex: 1;
  }
}
