:root {
  --villa-primary: #662D91;
  --villa-purple: #572280;
  --villa-purple-dark: #390d5a;
  --villa-purple-light: #e5c8fc;
  --sidebar-width: 300px;
}
body{
  font-size: 14px;
}
/* ---- Reset ---- */
a {
  color: var(--villa-purple);
  text-decoration: none;
}

a:hover {
  color: var(--villa-purple-dark);
}

/* UTILITIES */
.bg-villa-primary {
  background-color: var(--villa-primary);
  color: #fff;
}

.bg-villa-purple {
  background-color: var(--villa-purple);
  color: #fff;
}

.bg-villa-dark {
  background-color: var(--villa-purple-dark);
}

.bg-villa-light {
  background-color: var(--villa-purple-light);
}

/* LOGIN PAGE */

.background-container {
  position: absolute;
  z-index: -1;
}

#background {
  width: 650px;
  height: 100vh;
  background-image: url("../imagens/loginpage-background.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  background-color: red;
  border-radius: 25px;
  transform: rotate(-10deg) scaleX(-1) translate(200px, -60px);
  z-index: 100;
}

#background::before {
  content: "";
  height: 100%;
  width: 100%;
  background-color: var(--villa-primary);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 25px;
  opacity: 0.5;
}

#greybox {
  width: 400px;
  height: 300px;
  background-color: rgb(206, 206, 206);
  position: absolute;
  top: 90px;
  left: 90px;
  border-radius: 25px;
  transform: rotate(-30deg);
}

@media only screen and (max-width: 760px) {
  .background-container {
    display: none;
  }
}

.login-form {
  border: 2px solid var(--villa-primary);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
}

.login-form label {
  color: rgb(126, 126, 126);
  font-weight: bold;
}

.login-form input {
  display: block;
  width: 100%;
  border: 2px solid var(--villa-primary);
  border-radius: 5px;
  padding: 7px;
}

.ui-autocomplete {
  background-color: var(--villa-purple-light);
}

.ui-autocomplete:hover {
  cursor: pointer;
}

.ui-autocomplete .ui-menu-item {
  padding: 5px;
  color: #fff;
}

.ui-autocomplete .ui-menu-item a {
  color: var(--villa-purple-dark);
  text-decoration: none;
}

.ui-helper-hidden-accessible {
  display: none;
}

#loginform .alert-danger {
  background-color: #fff;
  padding: 5px;
  border: 1px solid #a94442;
  border-radius: 5px;
}

.login-form .help-block {
  background-color: var(--villa-purple-light);
  font-size: 0.9em;
  border-radius: 5px;
  padding: 7px;
  margin-top: 6px;
  font-weight: bold;
  border: 1px solid #a94442;
  color: #ff0000;
}

.login-form label.help-block {
  margin: 5px 5px !important;
}

.login-form input::placeholder {
  color: rgb(194, 194, 194);
}

.login-form button,
.login-form input[type="submit"] {
  background-color: var(--villa-primary);
  outline: none;
  border: none;
  border-radius: 3px;
  padding: 6px 45px;
  color: #fff;
}

.login-form button:hover,
.login-form input[type="submit"]:hover {
  background-color: #813bb6;
}

.login-form a {
  text-decoration: none;
  color: var(--villa-primary);
}

.login-form a:hover {
  color: #944dca;
}

footer p {
  text-align: center;
}

/* PÁGINA ESQUECEU SENHA */
header.recuperar-acesso-header {
  padding: 0;
  margin-bottom: 30px;
}
.recuperar-acesso-header a {
  display: block;
}
.instrucoes-recuperar-acesso {
  border-radius: 20px;
}
.instrucoes-mensagens ul li {
  text-transform: lowercase;
}

.instrucoes-mensagens ul li::first-letter {
  text-transform: uppercase;
}

/* ----- Layout ----- */
.main-wrapper {
  display: flex;
  align-items: stretch;
}

#content {
  flex-grow: 1;
}

/* ----- sidebar ----- */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  min-height: 100vh;
  background-color: var(--villa-purple);
  transition: all .3s;
}

#sidebar.hidden {
  margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding-bottom: 15px;
}

.sidebar-logo img {
  width: 80%;
}

#sidebar-menu {
  padding: 20px;
}

#sidebar > ul > * {
  margin-bottom: 10px;
  position: relative;
}

#sidebar form {
  margin-top: 6px;
  margin-bottom: 20px;
}

#sidebar-menu-searchbox {
  margin-bottom: 20px;
  position: relative;
}

#sidebar-menu-searchbox input {
  display: block;
  width: 100%;
  padding: 7px 7px 7px 40px;
  border-radius: 6px;
  border: none;
  background-color: #461a69;
  color: #969696;
}

#sidebar-menu-searchbox input::placeholder {
  color: #969696;
}

#sidebar-menu-searchbox input:focus {
  border: none;
  outline: none;
}

#sidebar-menu-searchbox i {
  position: absolute;
  top: 8px;
  left: 9px;
  font-size: 1.2rem;
  color: #969696;
}

.toggle-dropdown-list {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  color: var(--villa-purple);
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: none;
  position: relative;
}

.toggle-dropdown-list:hover {
  background-color: var(--villa-purple-light);
  color: var(--villa-purple);
}

.toggle-dropdown-list > i {
  margin-right: 15px;
  font-size: 1.3em;
}

.toggle-dropdown-list > span:not([class="dropdown-icon"]) {
  flex-grow: 1;
}

.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: var(--villa-purple);
  border-radius: 50%;
  height: 15px;
  width: 15px;
  font-size: 0.6em;
}

.toggle-menu-expanded > .toggle-dropdown-list {
  box-shadow: 0px 7px 5px 0px rgba(0,0,0,0.22);
  background-color: var(--villa-purple-light);
}

ul.submenu {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  margin-top: -10px;
  padding-top: 22px;
}


/* ----- sidebar submenus ----- */
ul.submenu {
  background-color: #fff;
  border-radius: 5px;
  padding: 5px 20px;
  padding-top: 27px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--villa-purple-light);
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 6px;
  font-weight: bold;
  font-size: 0.8em;
  box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.21);
}

.dropdown-menu-item a {
  color: var(--villa-purple);
  text-decoration: none;
}

.dropdown-menu-item:hover, .dropdown-menu-item:hover a {
  color: #fff;
  background-color: var(--villa-purple);
  cursor: pointer;
}


/* ------ header ------ */
header {
  padding: 16px 30px;
  padding-bottom: 45px;
}

main {
  padding: 0px 30px;
}

header .header-nav {
  display: flex;
  gap:10px;
  color: var(--villa-purple);
}

header .user-info {
  display: flex;
  align-items: center;
  color: var(--villa-purple);
  position: relative;
}

header .user-info .profile-picture {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 12px;
}

header .user-info .profile-picture img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

header .user-info .user-info-text {
  margin-right: 20px;
}

header .user-info .user-info-text span {
  display: block;
}

header .user-info .dropdown-menu {
  background-color: var(--villa-purple);
  position: absolute !important;
  left: 0px !important;
  margin-top: 90px !important;
  top: 0px !important;
  transform: translate(0, 0) !important;
  padding: 20px 35px;
  min-width: 230px;
}

header .user-info .dropdown-menu::after {
  position: absolute;
  top: -98px;
  left: -28px;
  content: "";
  height: 100px;
  width: 100px;
  background-color: var(--villa-purple);
  clip-path: polygon(46% 81%, 30% 100%, 62% 100%);
}

header .user-info .dropdown-menu li {
  background-color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  margin-bottom: 10px;
  border-radius: 10px;
  color: var(--villa-purple);
  font-weight: bold;
  font-size: 0.8em;
}

header .user-info .dropdown-menu li:hover {
  background-color: var(--villa-purple-light);
  cursor: pointer;
}

header #comunicado p {
  display: inline-block;
  padding: 10px;
  border: 2px solid var(--villa-purple);
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--villa-purple);
  text-align: center;
  /* min-width: 100%; */
}

@media (max-width: 576px) {
  header #comunicado p {
    min-width: 100%;
  }
}


/* ----- Footer ----- */
footer .footer-logo {
  max-width: 250px;
  margin: auto;
}

@media (min-width: 992px) {
  footer .footer-logo {
    margin: 0;
  }
}

footer .footer-logo img {
  width: 100%;
}

footer p {
  margin-bottom: 0;
}

footer i {
  margin-right: 20px;
}

footer {
  color: var(--villa-purple);
}

footer {
  padding: 40px;
}


/* ----- ADS SEARCH ----- */
.villa-header {
  color: var(--villa-primary);
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
}

.ads-search {
  max-width: 950px;
  margin: auto;
}

.ads-search .top-bottom-borders {
  border-top: 1px solid var(--villa-primary);
  border-bottom: 1px solid var(--villa-primary);
}

.ads-search .container {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  gap: 100px;
  max-width: 620px;
  align-items: start;
}

.ads-search .container > * {
  flex: 1 1 0;
}

.ads-search .toggle-dropdown-list {
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0,0.21);
}

#ads-search-form {
  position: relative;
}

#ads-search-form input {
  border: none;
  border-radius: 5px;
  padding: 10px 30px 10px 10px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0,0.21);
  width: 100%;
  color: var(--villa-primary);
  font-weight: bold;
}

.categoria select, .status select {
  border: none;
  border-radius: 5px;
  padding: 10px 30px 10px 10px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 21%);
  width: 100%;
  color: var(--villa-primary);
  font-weight: bold;
}
.categoria select:hover {
  background-color: #e1c3f7;
  color: #461a69;
}

.categoria select:focus, .status select:focus {
  outline: 0;
  color: var(--villa-primary);
  -webkit-box-shadow: none;
          box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 21%);
}
.categoria option, .status option {
  background-color: #fff;
  color: #461a69;
  font-weight: bold;
}
#ads-search-form input:focus {
  outline: none;
  border: none;
}
#ads-search-form label, .status label {
  color: var(--villa-primary);
}

#ads-search-form input::placeholder {
  color: var(--villa-primary);
  font-weight: bold;
  font-size: 0.9em;
  opacity: 0.6;
}

#ads-search-form i {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

#formCategoria {
  position: relative;
}

#formCategoria input {
  border: none;
  border-radius: 5px;
  padding: 10px 30px 10px 10px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0,0.21);
  width: 100%;
  color: var(--villa-primary);
  font-weight: bold;
}

#formCategoria input:focus {
  outline: none;
  border: none;
}

#formCategoria input::placeholder {
  color: var(--villa-primary);
  font-weight: bold;
  font-size: 0.9em;
  opacity: 0.6;
}

#formCategoria i {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 100%;
  padding: .5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .25rem;
  border: none;
  box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.21);
}

/* ads cards */
.category-title {
  color: var(--villa-primary);
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.card {
  box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.21);
  position: relative;
  margin-bottom: 1.5rem;
}

.card .tag {
  background-color: #fff;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  color: var(--villa-primary);
  font-weight: bold;
  padding: 0px 12px;
  border: 3px solid var(--villa-primary);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card .card-link {
  font-weight: bold;
  align-self: flex-end;
}

.card .card-title {
  font-size: 1em;
  font-weight: bold;
  color: var(--villa-primary);
  min-height: 50px;
}

.card .card-title a span{
  max-width: 120px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .card-title i{
  margin: 0 0 8px 10px ;
}

.card .card-text {
  color: var(--villa-primary);
  margin: 0;
  min-height: 125px;
  display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.card .card-price {
  font-weight: bold;
  color: var(--villa-primary);
}

.card-link{
  margin-top: 5px;
}

.card img {
  width: 100%;
  height: 100%;
}

.card-img {
  height: 150px;
  border-bottom: 2px dashed var(--villa-primary);
}

.mais {
  font-size: 1rem;
}

.img-mini img{
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.img-large img{
  width: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.hide{
  display: none;
}

.detalhes {
  border: none;
  padding: 10px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 21%);
  color: var(--villa-primary);
  word-wrap: break-word;
}

.detalhes h4{
  color: var(--villa-primary);
  margin: 0;
}

.categ-dtl{
  border-bottom: 1px solid var(--villa-primary);
  margin-bottom: 15px;
}

.perguntas {
  border: none;
  padding: 10px;
  box-shadow: 0 0 4px rgb(0 0 0 / 21%);
  color: var(--villa-primary);
  margin-top: 1.5rem;
}

.perguntas h3{
  color: var(--villa-primary);
  font-size: 1.75rem;
}

.campo{
  border: 2px solid var(--villa-primary);
  margin: 1rem;
}

.campo .imagem{
  border: 1px solid var(--villa-primary);
  font-size: 1rem;
  padding: 0;
  height: 2.5rem;
  width: 2.5rem;
}

.campo .nome{
  margin: auto 0;
}

.campos{
  margin: 0.5rem 0 0 2rem;
}

.botao{
  background-color: var(--villa-primary);
  color: #fff;
  border: none;
  margin-right: 1.5rem;
}
.resposta textarea{
  max-width: 100%;
}

.resposta textarea:focus {
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.pergunta input{
  width: 100%;
  margin-bottom: 10px;
}
.pergunta textarea{
  width: 100%;
  height: 5rem;
}
.pergunta textarea:focus{
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.pergunta input:focus{
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.recusar, .excluir, .desativar, .recusado, .desativado{
  color: #ff0000;
}
.pendente{
  color: #d97b08;
}
.aprovar{
  color: #026602;
}
.recusar:hover, .excluir:hover, .desativar:hover{
  color: #b40202;
  text-decoration: none;
}
.aprovar:hover{
  color: #003f00;
  text-decoration: none;
}
