@import './fonts.scss';
@import './table.scss';



$theme-colors: (
  "primary": #E07A71,
  "navbar": hsla(0,0%,100%,.5)
);

$theme-color-primary:#E07A71;
$theme-color-secondary: #af5047;
$theme-color-success: #61b628;
$theme-color-body: #f1f1f1;
$theme-color-button-hover:#f08c83;
$theme-color-login: #d7c09291;
$theme-color-text: #3f3f3f;
$theme-color-text-navbar: #3f3f3f;
$theme-color-text-secondary: rgb(255, 255, 255);
$theme-color-text-success: rgb(255, 255, 255);
$theme-color-green: #278937 0% 0% no-repeat padding-box;
$theme-color-blue: $theme-color-primary 0% 0% no-repeat padding-box;
$theme-color-white: #FFFFFF 0% 0% no-repeat padding-box;
$theme-color-gray: #E1E1E1 0% 0% no-repeat padding-box;
$theme-color-gray-bg: #EDEDED 0% 0% no-repeat padding-box;

$text-color-light-gray: #a8afb8;
$box-shadow: 0px 0px 4px #0000004D;
$banner-box-shadow: 0px 0px 6px #00000029;
$border-color: 1px solid #979797;
$main-border-radius: 12px;
$middle-border-radius: 10px;
$min-border-radius: 5px;
$input-bg: #f8f9fa;
$border-color: #e1e4e8;
$shadow: 0 10px 30px rgba(0,0,0,0.15);

/* Estilização da barra de rolagem */

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

body.modal-open {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45);
}

//---------------------------------------

::v-deep .tabs-float {
  .nav-tabs {
    border-bottom: none !important;
    padding: 10px 5px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-item {
    margin-bottom: 0 !important;
  }

  .nav-link {
    border: none !important;
    background-color: #f4f6f8;
    color: #64748b;
    border-radius: 12px !important;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    &:hover {
      color: $theme-color-primary;
      background-color: rgba($theme-color-primary, 0.05); 
      transform: translateY(-2px);
    }

    &.active {
      background-color: #ffffff !important;
      color: $theme-color-primary !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
      transform: translateY(0);
    }
    
    &:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba($theme-color-primary, 0.2);
    }
  }
}

.input-label {
  font-size: 0.75rem !important;
  text-align: left;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 6px;
  display: block;
}

::v-deep .modern-input {
  height: 48px;
  background-color: $input-bg;
  border: 1px solid $border-color;
  border-radius: $main-border-radius;
  font-size: 0.95rem;
  transition: all 0.2s;

  &:focus {
    background-color: #fff;
    border-color: $theme-color-primary;
    box-shadow: 0 0 0 3px rgba($theme-color-primary, 0.1);
  }

  &.has-selection {
    font-weight: 600;
    color: $theme-color-primary;
    background-color: rgba($theme-color-primary, 0.05);
  }
}


.tags-inline-wrapper {
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
}

.borderless-input {
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  height: 100%;
  min-width: 130px;
  flex-shrink: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.tags-scroll-area {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  flex-grow: 1;
  gap: 6px;
  padding-left: 8px;
  height: 100%;

  scrollbar-width: none;
  -ms-overflow-style: none;
  &::-webkit-scrollbar {
    display: none;
  }
}

::v-deep .custom-tag {
  flex-shrink: 0;
  background-color: rgba($theme-color-primary, 0.1) !important;
  color: $theme-color-primary !important;
  border-radius: $main-border-radius;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3em 0.6em;
  display: flex;
  align-items: center !important;

  button.b-form-tag-remove {
    color: $theme-color-primary;
    opacity: 0.7;
    margin-left: 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
    border: none;
    background: transparent;
    
    &:hover {
      opacity: 1;
    }
  }
}

html{
  overflow-x: hidden;
  height: 100%;

  #app{
    color: $theme-color-text !important;
    background-color: $theme-color-body;
    font-family: $main_font;
    
    .btn-secondary{
      color: $theme-color-text-secondary;
    }
    
    .btn-success{
      color: $theme-color-text-success;
    }
    
    .navbar{
      .btn-secondary{
        color: $theme-color-text-navbar;
      }
    }
  }
}

body {
  min-height: 100%;
  background: $theme-color-gray-bg;
}

.v-enter-active,
.v-leave-active {
  transition: opacity 0.5s ease;
}

.fade-in { 
  animation: fadeIn 0.5s ease; 
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-out {
  animation: fadeOutAnimation 0.5s ease-out forwards;
  pointer-events: none; 
}
@keyframes fadeOutAnimation {
  from { 
    opacity: 1; 
    transform: translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: translateY(-10px); /* Sobe um pouquinho ao sumir */
  }
}



.v-enter-from,
.v-leave-to {
  opacity: 0;
}

.dropdown-menu{
  max-height: 300px;
  overflow: auto;
}

.radius-theme {
  border-radius: $main-border-radius !important;
}

.radius-theme-left{
  border-top-left-radius: $main-border-radius !important;
  border-bottom-left-radius: $main-border-radius !important;
}

.radius-theme-right{
  border-top-right-radius: $main-border-radius !important;
  border-bottom-right-radius: $main-border-radius !important;
}

.radius-theme-top{
  border-top-left-radius: $main-border-radius !important;
  border-top-right-radius: $main-border-radius !important;
}

.radius-theme-bottom{
  border-bottom-left-radius: $main-border-radius !important;
  border-bottom-right-radius: $main-border-radius !important;
}

.detail-card {
  border: none;
  box-shadow: 0 0.15rem 0.75rem rgba(158, 158, 158, 0.1);
  
  .card-header {
    background: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
  }
  
  .detail-item {
    border: none;
    padding: 0.7rem 0;
    background: white;
    
    .detail-label {
      font-weight: 500;
      color: #6c757d;
      margin-bottom: 0.25rem;
      display: flex;
      align-items: center;
    }
    
    .detail-value {
      color: #495057b9;
    }
  }
}

.text-white-color {
  color: $theme-color-text;
}

.banner-background {
  background: $theme-color-gray;
}

.bg-success-light {
  background-color: #d4edda,
} 

.bg-primary-light {
  background-color: rgba(224, 122, 113, 0.1);
}

.bg-danger-light {
  background-color: rgba(220, 53, 83, 0.1);
}

.bg-warning-light {
  background-color: rgba(253, 199, 36, 0.1);
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel,
.swal2-styled.swal2-confirm,
.btn-default {
  border-radius: $main-border-radius;
  background: $theme-color-blue;
}

.btn-green {
  border-radius: $main-border-radius;
  background: $theme-color-green;
}
.btn-primary{
  color: white !important;
  background-color: $theme-color-primary !important;
  border-color: $theme-color-primary  !important;
  &:hover{
    background-color: $theme-color-button-hover !important;
    border-color: $theme-color-button-hover  !important;
  }
}
.main-text-white {
  color: $theme-color-text;
  font-size: 1.125rem;
}

.min-text-white {
  color: $theme-color-text;
  font-size: 0.875rem;
}

.social-media {
  color: $theme-color-text;
  margin-left: 8px;
}

.nav-user-info {
  font-size: 16px;
  letter-spacing: 0.45px;
  line-height: 14px;
}

.nav-user-sub-info {
  font-size: 0.875rem;
  letter-spacing: 0;
}

// label, input{
//   font-family: 'Rubik Regular';

// }

label, input{
  font-family: $main_font;
}

input::placeholder{
  color: $text-color-light-gray;
}

.rounded-div {
  background-repeat: no-repeat;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: $theme-color-primary;
}

.form-control:focus{
  outline: none;
  box-shadow: none !important;
}

.borda-divisor-tabela{  
border-bottom: 3px solid !important;
border-top: 3px solid !important;
}

.modal-content{
  border: 1px solid rgba(0, 0, 0, 0) !important;    
}

.display-mobile{
  display: none;
}

.hover-info{
  cursor: pointer;
}

.hover-info:hover{
  -webkit-animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@media screen and (max-width: 770px) {
  .display-pc{
    display: none !important;
  }

  .display-mobile{
    display: block !important;
  }
}


//STYLE DOS POPUP'S
.modal-huge{
  max-width: none !important;
  justify-content: center;
  .modal-content{
    background-color:  transparent !important;
    text-align: center !important;
    border: 0px !important;
    width: auto;
    .modal-body{
      cursor: pointer;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 0px;
      
      .exit-popup{
        top: 3%;
        right: 4%;
        color: $theme-color-primary;
        cursor: pointer;
        opacity: 0.8;
        position: absolute;
        font-size: 40px;
      }

      .exit-popup:hover{
        -webkit-animation: scale-down-center-button 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
        animation: scale-down-center-button 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
      }

      .btn-popup{
        font-size: 20px;
        border: 0px;
        position: absolute;
        top: 435px;
        opacity: 0.9;
      }

      img{
        width: 500px;
        height: 500px;
      }

      @media screen and (max-width: 510px) {
        img{
          width: 300px;
          height: 300px;
        }

        .btn-popup{
          top: 245px;
          font-size: 15px;
        }
      }

      .spin{
        width: 500px;
        height: 500px;
      }
    }

    .modal-body:hover{
      -webkit-animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
      animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    }

    @-webkit-keyframes scale-down-center {
      0% {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
      100% {
        -webkit-transform: scale(0.99);
                transform: scale(0.99);
      }
    }
    @keyframes scale-down-center {
      0% {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
      100% {
        -webkit-transform: scale(0.99);
                transform: scale(0.99);
      }
    }

    @-webkit-keyframes scale-down-center-button {
      0% {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
      100% {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
      }
    }
    @keyframes scale-down-center-button {
      0% {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
      100% {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
      }
    }
    
  }
}


//ANIMAÇÕES DOS BOTÕES POPUP'S FEITOS NO ANIMISTA https://animista.net/

.jump{
  top: 450px;
  -webkit-animation: shake-vertical 4s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
  animation: shake-vertical 4s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite both;
}

@-webkit-keyframes shake-vertical {
  0%,
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  80% {
    -webkit-transform: translateY(6.4px);
            transform: translateY(6.4px);
  }
  90% {
    -webkit-transform: translateY(-6.4px);
            transform: translateY(-6.4px);
  }
}

@keyframes shake-vertical {
  0%,
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  80% {
    -webkit-transform: translateY(6.4px);
            transform: translateY(6.4px);
  }
  90% {
    -webkit-transform: translateY(-6.4px);
            transform: translateY(-6.4px);
  }
  
}

.vibrate{
	-webkit-animation: vibrate 0.3s linear infinite forwards;
  animation: vibrate 0.3s linear infinite forwards;
}

@-webkit-keyframes vibrate {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
            transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
            transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
            transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes vibrate {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
            transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
            transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
            transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}

.pulsate {
	-webkit-animation: pulsate 2s ease-in-out infinite both;
  animation: pulsate 2s ease-in-out infinite both;
}

@-webkit-keyframes pulsate {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes pulsate {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.97);
            transform: scale(0.97);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.slide-in-right {
	-webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}


@-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}

.slide-out-right {
	-webkit-animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes slide-out-right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
}
@keyframes slide-out-right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
}

.slide-out-left {
	-webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes slide-out-left {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
}

@keyframes slide-out-left {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
}

