@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --dark-blue: #343A69;
  --black-opacity: rgba(0,0,0, 0.10);
  --purple: #7E49AC;
  --purple-opacity: rgba(126, 73, 172, 0.5);
  --pink: #E760BF;
  --light-pink: #FF94C7;
  --red: #DA4656;
  --light-red: #FFE2E5;
  --orange: #FFA800;
  --green: #03BD9C;
  --gray: #B6B6B6;
  --white: #FFF;

  /*  Text Formatting  */
  --font: 'Poppins', sans-serif;
  --large-title: 700 2.125rem var(--font);
  --title-1: 700 1.75rem var(--font);
  --title-2: 600 1.375rem var(--font);
  --title-3: 600 20px var(--font);
  --headline: 500 1.25rem var(--font);
  --body: 400 1rem var(--font);
  --subhead: 400 0.938rem var(--font);
  --footnote: 300 0.813rem var(--font);

  /*  Spacing  */
  --xxs: 0.25rem;
  --xs: .5rem;
  --s: .75rem;
  --m: 1rem;
  --l: 1.5rem;
  --xl: 2rem;
  --xxl: 3rem;
  --xxxl: 3.75rem;
}

.l-title {
  font: var(--large-title);
}

.h1 {
  font: var(--title-1);
}

.h2 {
  font: var(--title-2);
}

.h3 {
  font: var(--title-3);
}

.headline {
  font: var(--headline);
}

.body {
  font: var(--body);
}

.s-head {
  font: var(--subhead);
}

.f-note {
  font: var(--footnote);
}

.p-xxs {
  padding: var(--xxs);
}

.p-xs {
  padding: var(--xs);
}

.p-s {
  padding: var(--s);
}

.p-m {
  padding: var(--m);
}

.p-l {
  padding: var(--l);
}

.p-xl {
  padding: var(--xl);
}

.m-xxl {
  margin: var(--xxl);
}

.p-xxxl {
  padding: var(--xxxl);
}

.m-xxs {
  margin: var(--xxs);
}

.m-xs {
  margin: var(--xs);
}

.m-s {
  margin: var(--s);
}

.m-m {
  margin: var(--m);
}

.m-l {
  margin: var(--l);
}

.m-xl {
  margin: var(--xl);
}

.m-xxl {
  margin: var(--xxl);
}

.m-xxxl {
  margin: var(--xxxl);
}

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

body, input, textarea, button, a, select {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-blue);
}

button, a, span, p {
  line-height: 1.5em;
}

body {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
  background: var(--white);
}

body .container {
  width: 100%;
  max-width: 1200px;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: 0 auto;

  /* border: 2px dashed red; */
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;  
  position: relative;
}

main.with-sidebar {
  margin-left: 250px;
}

.progress-bar-container {
  width: 100%;
  background-color: transparent;
  height: calc(var(--xxs) * 1.5);
  overflow: hidden;
  position: fixed;
  margin-left: 250px;
  top: 0;
  z-index: 5;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: #00bfa5;
  transition: 0.5s ease-in-out;
}

main > section {
  min-height: 100vh;
}

main .main {
  margin-top: 90px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main .content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  min-height: calc(100vh - 90px);
  padding: 0 var(--m);
  gap: calc(var(--m) * 3);
  position: relative;
}

main .content > * {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--l);
}

main .content .form:not(.login) {
  flex: 0 1 23%;
  /* max-width: 15rem; */
  width: 100%;
}

main .content .form form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--xl);
  width: 100%;
}

main .content .form .presses-container, main .content .form .gallery-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--xl);
  width: 100%;
}

main .content .form form .press-container, main .content .form form .image-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: initial;
  gap: var(--xl);
  width: 100%;
}

main .content .form form .press-container h3, main .content .form form .image-container h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--xs);
}

main .content .form form .press-container h3 i, main .content .form form .image-container h3 i {
  cursor: pointer;
  transition: .3s ease-in-out;
}

main .content .form form .press-container h3 i:hover, main .content .form form .image-container h3 i:hover {
  opacity: .65;
}

main .content .preview {
  flex: 2 1 47rem;
  position: fixed;
  left: calc(16rem + 23%);
  width: calc(100% - (18rem + 23%));
}

main .content .preview iframe {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--s);
  border: var(--m) solid var(--light-pink);
}

@media only screen and (max-width: 1024px) {
  main .content .form {
    width: 100%;
  }

  main .content .preview {
    width: 100%;
  }

  main .content .preview iframe {
    max-width: initial;
  }
}

@media only screen and (max-width: 1024px) {
  main.with-sidebar, .progress-bar-container {
    margin-left: 100px;
  }  
}

.select-container {
  width: 100%;
}

.color-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-label button {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.color-label button:not(.transparent):before {
  font: var(--fa-font-solid);
  content: "\f06e";
}

.color-label button.transparent:before {
  font: var(--fa-font-solid);
  content: "\f070";
}

.input {
  width: 100%;
  border: 1px solid var(--dark-blue);
  border-radius: var(--xxs);
  transition: all 0.3s ease-in-out;
  padding: var(--s) var(--m);
  outline: none;
}

.input:hover, .input:focus {
  border: 1px solid var(--pink);
}

.input-group {
  width: 100%;
}

.input-settings {
  display: none;
  transition: 0.3s ease-in-out;
}

.input-horizontal {
  display: flex;
}

.input-settings, .input-horizontal {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: var(--l);
}

.input-settings.opened {
  display: flex;
}

.input-horizontal > .input-group {
  flex: 1 1 9rem;
}

.input-group .text-gear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.input-group .text-gear button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.input-group .text-gear button:hover {
  opacity: .6;
}

.input-group.buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--l);
  margin-bottom: var(--l);
}

.input-group:not(.buttons) > * {
  margin: .25rem 0;
}

.input-group.buttons > * {
  flex: 1 1 40%;
}

.error-message {
  color: var(--red);
  display: inline-block;
  font-size: .75rem;
}

.input-group .error-message {
  display: none;
}

.error input {
  background-color: var(--light-red);
  border: 1px solid var(--red);
}

.error input::placeholder {
  color: var(--red);
}

.error .error-message {
  display: inline-block;
}

.color-input {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
}

.previewColor {
  width: var(--l);
  height: var(--l);
  border-radius: 4px;
  border: 1px solid var(--purple);
}

input[type=color] {
  width: 0;
  opacity: 0;
  visibility: hidden;
}

.color-input input[type=text] {
  border: none;
  text-transform: uppercase;
  width: calc(100% - 2rem - 2rem);
  height: 100%;
  background: none;
  outline: none;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: var(--s) var(--xxxl);

  text-decoration: none;
  outline: none;
  border: none;
  border-radius: var(--xxs);

  transition: 0.3s ease-in-out;
  cursor: pointer;

  gap: .5rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn:not(.disabled):hover {
    opacity: 0.75;
  }
}

.btn.primary {
  background-color: var(--pink);
  color: var(--white);
}

.btn.confirm {
  background-color: var(--green);
  color: var(--white); 
}

.btn.error {
  background-color: var(--red);
  color: var(--white); 
}

.btn.secondary {
  background-color: var(--white);
  border: 1px solid var(--pink);
}

.btn.disabled {
  background-color: var(--gray);
  cursor: not-allowed;
  color: var(--white);
}

.modal:before {
  content: "";
  display: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  transition: .3s ease-in-out;
}

.modal.opened:before {
  display: block;
  opacity: 1;
}

.modal-dialog {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  gap: var(--xxl);
  background: #fefefe;
  border: #333333 solid 0px;
  border-radius: 10px;
  position: fixed;
  left: 50%;
  top: -100%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 95%;
  max-width: 40rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);

  padding: 2rem;

  transition: .7s ease-in-out;
}

.modal.opened .modal-dialog {
  top: 50%;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--l);
  align-items: center;
  flex-wrap: wrap-reverse;
}

.modal-buttons > * {
  flex: 1 1 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--xxl);
  align-self: flex-start;
  flex-wrap: wrap;
}

.modal-header h1 {
  font: 700 1.5rem var(--font);
}

.modal-header i {
  font-size: calc(2 * var(--xl));
  color: var(--orange);
}

@media only screen and (max-width: 425px) {
  .p-xxxl {
    padding: var(--xl);
  }
}

/* ------------ */

.file-upload {
  background-color: #fff;
  width: 100%;
  margin-top: var(--xxs);
}

.file-upload-content {
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  border: 6px dashed var(--pink);
  position: relative;
  transition: .3s ease-in-out;
}

.file-upload-content.showed {
  display: flex;
}

.file-upload-input {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  cursor: pointer;
}

.image-upload-wrap {
  border-radius: 4px;
  border: 6px dashed var(--pink);
  position: relative;
  transition: .3s ease-in-out;
}

.image-upload-wrap:hover {
  opacity: .6;
}

.image-dropping {
  border: 6px dashed var(--pink);
  opacity: .6;
}

.image-title-wrap {
  padding: 0 15px 15px;
  color: #222;
}

.drag-text {
  text-align: center;
  padding: var(--xxxl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--l);
}

.drag-text i {
  font-size: var(--xxl);
  color: var(--light-pink);
}

.file-upload-image {
  width: 50%;
  margin: auto;
  padding: 20px;
}

.description {
  background-color: #FBD8E9;
  border-radius: 5px;
  padding: var(--xs);
  
  width: 90%;
  margin: 0 auto;
  margin-top: var(--m);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.description > i {
  color: var(--purple);
}

.file-name {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--s);
}

.file-name button {
  background: none;
  cursor: pointer;
  border: none;
  outline: none;

  display: flex;
  justify-content: center;
  align-items: center;
}

.file-name button i {
  font-size: var(--m);
}

.remove-image {
  width: 200px;
  margin: 0;
  color: #fff;
  background: #cd4535;
  border: none;
  padding: 10px;
  border-radius: 4px;
  border-bottom: 4px solid #b02818;
  transition: all 0.2s ease;
  outline: none;
  text-transform: uppercase;
  font-weight: 700;
}
.remove-image:hover {
  background: #c13b2a;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}
.remove-image:active {
  border: 0;
  transition: all 0.2s ease;
}

/* Sidebar */
.sidebar {
  width: 250px;
  height: 100vh;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  background: var(--dark-blue);
  color: var(--white);

  text-align: center;

  gap: var(--l);

  position: fixed;
  z-index: 5;
  transition: .3s ease-in-out;
}

.sidebar h3 {
  margin: 0 auto;
}

.sidebar .menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  gap: var(--l);
}

.sidebar .menu > span {
  color: var(--gray);
}

.sidebar ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  gap: var(--xl);
}

.sidebar ul li a {
  color: var(--white);
  text-decoration: none;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--l);

  transition: .3s ease-in-out;
}

.sidebar ul li a i {
  width: var(--xl);
  height: var(--xl);

  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--black-opacity);
  color: var(--white);
  border-radius: var(--xxs);
  transition: .3s ease-in-out;
}

.sidebar ul li a:hover,
.sidebar ul li a:hover i,
.sidebar ul li a.active,
.sidebar ul li a.active i {
  color: var(--pink);
}

.sidebar ul li a:hover i,
.sidebar ul li a.active i {
  padding: var(--xs);
  background: var(--purple-opacity);
  border-radius: var(--xxs);
}

@media only screen and (max-width: 1024px) {
  .sidebar {
    padding: var(--l) var(--xs);
    width: 100px;
    align-items: center;
  }

  .sidebar .menu {
    align-items: center;
  }

  .sidebar .h3 {
    font-size: 1em;
  }

  .sidebar ul {
    align-items: center;
  }

  .sidebar ul li a span {
    display: none;
  }
}

/* Navbar */
.navbar {
  width: 100%;
  height: 90px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--xl);

  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
}

.navbar .profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s);
}

.navbar .profile .avatar {
  height: var(--xxl);
  width: var(--xxl);
  border-radius: 50%;
  border: var(--xxs) solid var(--light-pink);
  object-fit: cover;
}

.dropdown {
  position: relative;
}

.dropbtn {
  padding: var(--xxs);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: .3s ease-in-out;
}

.dropbtn i {
  font-size: 1rem;
}

.dropbtn:hover {
  opacity: .65;
}

.menuBtn {
  padding: var(--xxs);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: .3s ease-in-out;
  display: none;
  z-index: 5;
}

.menuBtn:after {
  font: var(--fa-font-solid);
  font-size: 1.5rem;
  content: "\f0c9";
}

/* Estilo para o dropdown de opções */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: calc(11 * var(--m));
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: -.5rem;
  top: 3rem;
  border-radius: var(--s);
  padding: var(--s) var(--m);
}

/* Estilo para os links do dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--m);
  transition: .3s ease-in-out;
  font-weight: 600;
}

/* Estilo para os links do dropdown quando passa o mouse por cima */
.dropdown-content a:hover {
  opacity: .65;
}

.dropdown-content i {
  font-size: 1.25rem;
  color: black;
}

/* Estilo para mostrar o dropdown quando o botão é clicado */
.show {
  display: block;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white);
  position: absolute;
  top: -10px; /* Posiciona o triângulo acima do dropdown */
  right: 0;
  transform: translateX(-50%); /* Centraliza horizontalmente o triângulo em relação ao botão */
}

@media only screen and (max-width: 1280px) {
  main .content .form:not(.login) {
    flex: 1 1 10rem;
  }
  
  main .content .preview {
    flex: 2 1 47rem;
    position: relative;
    width: 100%;
    left: initial;
  }

  .navbar {
    position: relative;
    top: 0;
    left: 0;
    z-index: initial;
  }

  main .main {
    margin-top: 0;
  }
}


@media only screen and (max-width: 425px) {
  .sidebar {
    left: -100%;
  }

  .sidebar h3 {
    visibility: hidden;
  }

  .sidebar.show {
    z-index: 5;
    left: 0;
  }

  .menuBtn.white {
    color: var(--white) !important;
  }

  main.with-sidebar, .progress-bar-container {
    margin-left: 0;
  }

  main .main {
    min-height: initial;
  }

  main .main .preview {
    display: none;
  }

  .navbar {
    justify-content: space-between;
    align-items: center;
  }

  .navbar .profile span {
    display: none;
  }

  .menuBtn {
    display: block;
  }
  
  .menuBtn.white:after {
    font: var(--fa-font-solid);
    font-size: 1.5rem;
    content: "\f00d";
  }

  .sidebar {
    padding: var(--l) var(--xl);
    width: 250px;
    align-items: flex-start;
  }

  .sidebar .menu {
    align-items: flex-start;
  }

  .sidebar ul {
    align-items: flex-start;
  }

  
  .sidebar ul li a span {
    display: block;
  }

  .modal-header {
    align-items: center;
    gap: var(--l);
  }

  .modal-header i {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-header h1 {
    text-align: center;
  }

  .modal-dialog {
    align-items: center;
  }
}

.popup {
  position: fixed;
  bottom: 20px;
  right: -50px;
  background-color: #fff;
  border-radius: 10px;
  padding: var(--s) var(--l);
  z-index: 9999;
  opacity: 0;
  /*animation: fadein 0.5s, fadeout 0.5s 4.5s;*/
  transition: .5s ease-in-out;
}

.popup.active {
  right: 20px;
  opacity: 1;
}

.popup.success {
  border: 1px solid var(--green);
}

.popup.warning {
  border: 1px solid var(--orange);
}

.popup.error {
  border: 1px solid var(--red);
}

.popup-content {
  display: flex;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.text {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.close-btn {
  cursor: pointer;
}

.popup.success .text:before {
  font: var(--fa-font-solid);
  font-size: 1.75rem;
  content: "\f058";
  color: var(--green);
}

.popup.warning .text:before {
  font: var(--fa-font-solid);
  font-size: 1.75rem;
  content: "\f071";
  color: var(--orange);
}

.popup.error .text:before {
  font: var(--fa-font-solid);
  font-size: 1.75rem;
  content: "\f06a";
  color: var(--red);
}