﻿/*  Author: Jonathan Marques
    
    Section 0 - Default colors
    Section 1 - Normalization
    Section 2 - Buttons
    Section 3 - Static components
    Section 4 - Dynamic components (JS needed)
*/

/*  SECTION 0
    Default colors  
*/

:root {
    /*Layout colors (override according to page layout)*/
    --primary-color: #00a8cf;
    --primary-color-light: #b8f2ff;
    --primary-color-dark: #0082a0;
    --background-color: #f0f0f0;
    /*Buttons color (override just if necessary)*/
    --primary-btn-text-color: white;
    --primary-btn-text-color-hover: white;
    --secondary-btn-text-color: var(--primary-color-dark);
    --secondary-btn-text-color-hover: white;
    --tertiary-btn-text-color: var(--primary-color-dark);
    --tertiary-btn-text-color-hover: white;
    /*Common colors (override just if necessary)*/
    --red: #ff3737;
    --red-light: #f8c8c8;
    --green: #33a94f;
    --green-light: #b8efbb;
    --grey: #d5d5d5;
    --grey-light: #e9e9e9;
    --grey-dark: #9d9d9d;
    --blue-dark: #091145;
}

/*  SECTION 1
    Normalization
*/

/* Font importing is mandatory to use Font Awesome icons*/
.hs-style-module .fa-solid {
    font-family: "Font Awesome 6 Free";
}

/* Define font family to all HS components here*/
.hs-style-module * {
    font-family: Arial;
    font-size: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hs-style-module h1,
.hs-style-module h2 {
    font-size: 22px !important;
}

.hs-style-module p {
    font-size: 16px;
}

.hs-style-module a {
    font-size: 16px;
    color: var(--primary-color) !important;
}

.hs-style-module input:focus-visible {
    outline: none !important;
}

@media (max-width: 576px) {
    .hs-style-module h1,
    .hs-style-module h2 {
        font-size: 18px !important;
    }
}

/*  SECTION 2
    Buttons
*/

/* Primary button */

.hs-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    gap: 6px;
    color: var(--primary-btn-text-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.4s ease;
}

    .hs-btn:hover {
        color: var(--primary-btn-text-color-hover);
        background-color: var(--primary-color-dark);
        border-color: var(--primary-color-dark);
    }

/* Secondary button */

.hs-btn.outline {
    color: var(--secondary-btn-text-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

    .hs-btn.outline:hover {
        color: var(--secondary-btn-text-color-hover);
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color);
    }

/* Tertiary button*/

.hs-btn.empty{
    color: var(--tertiary-btn-text-color);
    background-color: transparent
}

    .hs-btn.empty:hover {
        color: var(--tertiary-btn-text-color-hover);
        background-color: var(--primary-color)
    }


/* Additional Button Styles*/

.hs-btn.rounded{
    border-radius: 100px;
}

.hs-btn.circle{
    padding: 10px;
    border-radius: 100%;
}

/* Disabled Button*/

.hs-btn:disabled, .hs-btn:disabled:hover {
    background-color: var(--grey-light) !important;
    border-color: var(--grey-dark) !important;
    color: var(--grey-dark) !important;
    cursor: not-allowed;
}

/*  SECTION 3
    Static components
*/

/* Error messages */

.loading-error {
    display: flex;
    width: 100%;
    gap: 14px;
    padding: 18px 40px;
    justify-content: center;
    align-items: center;
    font-family: Arial;
    border-radius: 50px;
    background-color: white;
    box-shadow: 0 2px 4px gainsboro;
}

/* Card*/

.hs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    gap: 10px;
    background-color: white;
    box-shadow: 0px 2px 4px 2px #ebebeb;
}

.hs-img-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0px 2px 4px 2px #ebebeb;
}

.hs-img-card img{
    aspect-ratio: 16/9
}

.hs-img-card-body{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 14px;
}

/* Switch*/

.hs-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

    .hs-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.hs-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .hs-switch-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.hs-switch input:checked + .hs-switch-slider {
    background-color: var(--primary-color);
}

    .hs-switch input:checked + .hs-switch-slider:before {
        transform: translateX(16px);
    }

/* Select*/

.hs-select-labeled-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 220px;
}

.hs-select-label {
    position: absolute;
    padding: 0 4px;
    font-size: 14px;
    color: gray;
    background-color: var(--background-color);
    left: 0.4rem;
    top: -0.7rem;
}

.hs-select.labeled {
    padding: 10px;
    height: 50px;
}

.hs-select {
    border-color: #d5d5d5;
    border-radius: 8px;
    padding: 6px;
    color: black;
    background: transparent;
}

    .hs-select:focus-visible {
        outline: var(--primary-color);
        border-color: var(--primary-color);
    }

.hs-select option:hover{
    background: var(--primary-color-light) !important
}

/* Badges */

.hs-badge {
    font-size: 14px;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 20px;
}

.hs-badge.sucess {
    color: white;
    background-color: var(--green) !important;
}

    .hs-badge.sucess-light {
        background-color: var(--green-light) !important;
    }

.hs-badge.important {
    color: white;
    background-color: var(--red) !important;
}

    .hs-badge.important-light {
        background-color: var(--red-light) !important;
    }

/* Placeholder/Skeleton */

.hs-placeholder-shimmer {
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0 !important;
    border-radius: 4px;
    color: transparent;
}

    .hs-placeholder-shimmer::after {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        height: 100%;
        width: 150%;
        z-index: 600;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent );
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Spinner*/ 

.hs-spinner {
    min-width: 20px;
    width: 20px;
    min-height: 20px;
    height: 20px;
    border: 2px solid gainsboro;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*  SECTION 4
    Dynamic components (JS logic needed)
*/

.hs-disabled{
    display: none !important;
}

/* Hides Vue components before loading Vue*/
[v-cloak] {
    display: none !important;
}

/* Input */

.input-error{
    border-color: var(--red) !important;
}

.hs-dynamic-input {
    position: relative;
    display: flex;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    height: 60px;
    border: 1px solid gainsboro;
}

.hs-dynamic-input-label {
    pointer-events: none;
    position: absolute;
    font-size: 16px;
    color: gray;
    left: 10px;
    top: 50%;
    transform: translate(0%, -50%);
    transition: 0.2s ease-out;
}

    .hs-dynamic-input-label.active-label {
        font-size: 12px;
        color: var(--primary-color);
        transform: translate(0%, -150%);
    }

.hs-dynamic-input-text {
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    padding-top: 0.6rem !important;
    padding-right: 40px !important;
    padding-left: 10px !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    background-color: transparent !important;
}

.hs-dynamic-input-icon {
    background-color: white;
    padding: 5px;
    right: 5px;
    font-size: 20px;
    color: gray;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0%, -50%);
}

/* Popover */

.hs-custom-popover {
    position: absolute;
    z-index: 30;
    max-height: 380px;
    max-width: 90vw;
    padding: 16px;
    border-radius: 4px;
    background-color: white;
    overflow-y: auto;
    box-shadow: 0 3px 10px #dfdfdf !important;
    visibility: hidden;
    opacity: 0;
    transition: visibility 1s, opacity 0.4s ease;
}

    .hs-custom-popover.active {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.2s ease;
    }

.hs-custom-popover-overlay {
    position: fixed;
    z-index: 20;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.hs-custom-popover::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.hs-custom-popover::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.hs-custom-popover::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 3px solid #f0f0f0;
}

    .hs-custom-popover::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

/* Carousel */

.hs-carousel {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.hs-carousel-item {
    background-color: black;
    display: none;
    width: 100%;
    height: 100%;
}

.hs-carousel-item.active {
    display: flex;
}

    .hs-carousel-item img {
        object-fit: cover;
        object-position: 50% 50%;
    }

.hs-carousel-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hs-carousel-img{
    width: 100%;
    height: 100%;
}

.hs-carousel-control-prev,
.hs-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-size: 20px;
    border-radius: 100%;
    color: white;
    background-color: #00000077;
}

.hs-carousel-control-prev {
    left: 0.6rem;
}

.hs-carousel-control-next {
    right: 0.6rem;
}


/* Accordion */

.hs-accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid gainsboro;
}

.hs-accordion-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: 0.4s ease;
}

    .hs-accordion-header:hover {
        background-color: gainsboro;
    }

.hs-accordion-header span{
    font-size: 20px;
    font-weight: bold;
}

    .hs-accordion-header i {
        display: flex;
        align-items: center;
        transition: 0.5s ease;
    }

    .hs-accordion-header i.active {
        transform: rotate(180deg)
    }

.hs-accordion-header button{
    border: none;
    background-color: transparent;
}


.hs-accordion-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 10px;
    gap: 0.5rem;
    max-height: 0;
    transition: max-height 0.2s ease;
}

    .hs-accordion-body.active {
        max-height: 250px;
        margin: 10px 0;
        transition: max-height 0.8s ease;
    }

    .hs-accordion-body::-webkit-scrollbar {
        width: 8px;
    }

    .hs-accordion-body::-webkit-scrollbar-track {
        background: #d3d3d3;
        border-radius: 10px;
    }

    .hs-accordion-body::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }

    .hs-accordion-body::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

/* Toast */

.hs-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--red);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.slide-enter-from,
.slide-leave-to {
    transform: translateX(120%);
    opacity: 0;
}

.slide-enter-to,
.slide-leave-from {
    transform: translateX(0);
    opacity: 1;
}

.slide-enter-active,
.slide-leave-active {
    transition: all 0.3s ease;
}
