/**
 *
 * @Copyright 2025 VOID SOFTWARE, S.A.
 *
 */

@import url("elements/button.css");
@import url("elements/input.css");
@import url("elements/footer.css");
@import url("elements/chat-input.css");
@import url("elements/loader.css");
@import url("elements/modal.css");
@import url("elements/topbar.css");
@import url("elements/seal.css");
@import url("animations.css");
@import url("fonts.css");

:root {
    --color-purple: #714ABF; 
    --color-blue: #179ECF;
    --color-gray: #e6e7e8;
    --color-pink: #CF3F6F;
    --color-orange: #FFA14D;
    --color-yellow: #ffe36e;

    --color-purple-dark: #704ABF;
    --color-purple-darker: #584584;
    --color-purple-darkest: #29007A;
    --color-purple-light: #b39de7;
    --color-purple-lighter: #d3c7f1;
    --color-purple-lightest: #ECE5FB;

    --color-neutral-0: #ffffff;
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f4f4f5;
    --color-neutral-200: #e4e4e7;
    --color-neutral-300: #d4d4d8;
    --color-neutral-400: #a1a1aa;
    --color-neutral-500: #71717a;
    --color-neutral-600: #52525b;
    --color-neutral-700: #3f3f46;
    --color-neutral-800: #27272a;
    --color-neutral-900: #18181b;
    --color-neutral-950: #09090b;
    --color-neutral-1000: #000000;

    --color-error-light: #fe3d3d;
    --color-error-main: #dc2626;
    --color-error-dark: #b91c1c;

    --color-warning-main: #F59E0B;

    /* Transparency N-1000 */
    --transparency-low: rgb(0, 0, 0, 0.08);
    --transparency-medium: rgb(0, 0, 0, 0.16);
    --transparency-high: rgb(0, 0, 0, 0.2);
    --transparency-very-high: rgb(0, 0, 0, 0.4);

    /* Transparency B-500 */
    --transparency-brand-low: rgb(5, 99, 240, 0.08);
    --transparency-brand-medium: rgb(5, 99, 240, 0.16);
    --transparency-brand-high: rgb(5, 99, 240, 0.24);

    /* Transparency Error-Main */
    --transparency-error-low: rgb(220, 38, 38, 0.08);
    --transparency-error-medium: rgb(220, 38, 38, 0.12);
    --transparency-error-high: rgb(220, 38, 38, 0.16);

    --topbar-height: 7.5rem;

    --font-primary: "Satoshi", sans-serif;
}

html {
    font-size: 62.5%;
}

html,
body {
    min-height: 100vh;
    overflow: visible;
    margin: 0;
    padding: 0;
    position: relative;
    font-weight: 450;
    color: var(--color-neutral-900);
    display: grid;
    grid-template-rows: auto 1fr auto;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
}

textarea {
    font-family: inherit;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    pointer-events: none;
}

main {
    min-height: 500px;
}

.text-centered {
    text-align: center;
}

.text-purple {
    color: var(--color-purple);
}

.text-pink {
    color: var(--color-pink);
}

.text-yellow {
    color: var(--color-yellow);
}

.d-inline {
    display: flex;
    flex-direction: row;
}

.d-inline.gap-2 {
    gap: 2rem;
}

.d-inline.align-center {
    align-items: center;
}

.d-none {
    display: none;
}

.opacity-0 {
    opacity: 0;
}

.text-neutral-500 {
    color: var(--color-neutral-500);
}

.general-error {
    color: var(--color-error-main);
    font-size: 1.2rem;
    line-height: 2.0rem;
    font-weight: 400;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.general-error.hidden {
    opacity: 0;
}

.beautify-model-text ul {
    list-style: none;
}

.beautify-model-text__level-1 {
    padding-left: 10px;
}

.beautify-model-text__level-2 {
    padding-left: 20px;
}

body .toastify {
    color: var(--color-neutral-0);
    font-size: 1.4rem;
    font-weight: 450;
    line-height: 2.0rem;
    border-radius: 1.2rem;
    padding: 1rem 2rem;
}

.toastify.toastify-success {
    background: linear-gradient(to right, #31772C, #1D471A);
}

.toastify.toastify-error {
    background: linear-gradient(to right, var(--color-error-light), var(--color-error-dark));
}

.page-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.page-header img {
    width: 100px;
}

.page-header h1 {
    font-size: 3.2rem;
    line-height: 4.2rem;
    font-weight: 800;
    color: var(--color-purple-dark);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.6rem;
    line-height: 3.2rem;
    font-weight: 400;
    color: var(--color-neutral-900);
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: #818181;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-purple);
    cursor: pointer;
    margin-top: -1px; /* Adjust for thumb height */
}

.custom-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-purple);
    cursor: pointer;
    border: none;
}

.easypay-checkout-wrapper:has(iframe) {
    display: inline-flex;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.easypay-checkout-wrapper {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.5);
}

.easypay-checkout-wrapper iframe {
    min-width: 410px;
    height: 600px;
    border-radius: 20px;
}

.purchase-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    width: fit-content;
    height: fit-content;
}

.purchase-status--PENDING_ORDER_COMPLETION,
.purchase-status--PENDING {
    background-color: rgba(217, 119, 6, 0.12);
    color: rgb(217, 119, 6);
}

.purchase-status--IN_PROGRESS {
    background-color: rgba(22, 163, 74, 0.12);
    color: rgb(22, 163, 74);
}

.purchase-status--FINISHED {
    background-color: rgba(125, 125, 125, 0.12);
    color: rgb(125, 125, 125);
}

.purchase-status--CANCELED {
    background-color: rgba(185, 28, 28, 0.12);
    color: rgb(185, 28, 28);
}

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.back-to-top-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100px);
}

/* Table Item Popover Menu */
.table-item-menu-container {
    position: relative;
}

.table-item-menu-container__menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    opacity: 1;
    pointer-events: auto;
}

.table-item-menu-container__menu--hidden {
    pointer-events: none;
    opacity: 0;
}

.table-item-menu-container__menu__item {
    display: block;
    width: 100%;
    padding: 0.8rem 1.6rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-neutral-900);
    font-size: 1.5rem;
    font-weight: 450;
}

.table-item-menu-container__menu__item:hover {
    background-color: var(--color-neutral-100);
}

.table-item-menu-container__menu--danger {
    color: var(--color-error-main);
}

/* ==========================================================================
   Property Status
   ========================================================================== */
.property-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: var(--color-purple-lightest);
    color: var(--color-purple);
}

.property-status svg {
    width: 1.6rem;
    height: 1.6rem;
}

.property-status--PUBLIC {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16A34A;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
    .app-screen {
        padding: 4rem 2rem;
    }
}