@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

/* =========================
   Theme Variables
========================= */
:root {
    --bs-body-color: #1f2937;
    --text-secondary: #4b5563;

    --text-orange: #ea580c;
    --text-orange-hover: #c2410c;
    --text-orange-soft: #f97316;
    --text-orange-muted: #fb923c;

    --text-warning: #f59e0b;
    --text-danger: #dc2626;

    --bg-orange: #fff7ed;
    --bg-orange-soft: #ffedd5;

    --primary-color: #e47a30;
    /* --service-color: #713d94; */
}


/* =========================
   CSS Reset
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

input,
button,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}


/* =========================
   Login Page
========================= */
.login_wrapper {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: var(--primary-color);
}

.login-vector_wrapper {
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
}

.login-vector_wrapper img {
    width: min(100% - 5rem, 50ch);
}

.live-easy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 600;
    transform: translate(-11px, -50px);
}

.live-easy-line::before,
.live-easy-line::after {
    content: "";
    width: 150px;
    height: 2px;
    background-color: #ffffff;
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: center;
    animation: lineReveal 1.2s ease-out forwards;
}

.live-easy-line::after {
    animation-delay: 0.2s;
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
    }
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #8f8f8f30 inset !important;
    box-shadow: 0 0 0 1000px #8f8f8f30 inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:focus {
    background-color: inherit;
}

.login_container {
    background-color: #fff;
    display: grid;
    place-items: center;
    grid-template-rows: auto 80px;
    padding: 1rem 2.5rem;
}

.brand-logo {
    width: 200px;
    margin-bottom: 2rem;
}

.login_form {
    width: 100%;
    margin: 0 auto;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
    width: 100%;
}

.form_group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
}

.form_group input {
    width: 100%;
    height: 45px;
    border-radius: .5rem;
    border: none;
    padding: 0 18px;
    background: #8f8f8f30;
    font-size: .865rem;
    outline: none;
}

.form_group input::placeholder {
    color: #b9b9b9;
}

.password_group {
    position: relative;
}

.eye_icon {
    position: absolute;
    right: 15px;
    top: 50%;
    cursor: pointer;
    opacity: 0.6;
}

.forgot {
    font-size: .75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login_btn {
    width: 100%;
    height: 50px;
    border-radius: 30px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 600;
    cursor: pointer;
}

.powered_by {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.powered_by span {
    font-size: .785rem;
    font-weight: 600;
}

.powered_by img {
    height: 30px;
    object-fit: contain;
}


/* =========================
   Sidebar / Menu (shared pages)
========================= */
.sidebar {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    padding: 10px;
    border-bottom: 1px solid #c6c6c6;
}

.logo img {
    width: 55px;
    margin: 0 auto;
}

.menu {
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.menu li {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 8px 12px;
    flex-direction: column;
    justify-content: center;
    color: #8f8f8f;
}

.menu>li>span {
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
}

.menu>li>svg {
    width: 28px;
    height: 28px;
}

.menu>li.active,
.menu>li:hover {
    color: var(--primary-color);
    background: #fbe6d8;
}

.content {
    padding: 10px;
    background: #efefef;
}



/* =========================
   Landing Page
========================= */
.landing_wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    background-color: var(--primary-color);
}

.visitor_section,
.Service_section {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    background-color: var(--primary-color);
}

/* Thin line so the two sections still look separate */
/* .Service_section {
    border-left: 1px solid rgba(255, 255, 255, .35);
} */

/* --- Card (the clickable choice) --- */
.module_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(70%, 380px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.module_icon {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 2.8rem;
    transition: transform .25s ease, background .25s ease;
}

.module_card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.module_card p {
    font-size: .95rem;
    opacity: .9;
    margin: 0;
}

.module_card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.module_card:hover .module_icon {
    background: rgba(255, 255, 255, .28);
    transform: scale(1.06);
}

.module_card:active {
    transform: translateY(-2px);
}

.module_card:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* --- Iframe --- */
.module_frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}



/* =========================
   Brand: center badge + watermark
========================= */

/* Big faint logo behind both cards */
.brand_watermark {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: .08;
    pointer-events: none;
    -webkit-mask: url("../assets/brand/manegar-logo.svg") center / auto 85% no-repeat;
            mask: url("../assets/brand/manegar-logo.svg") center / auto 85% no-repeat;
}

/* Logo badge on the seam */
.brand_hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(76px, 9vw, 130px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .25),
                0 12px 32px rgba(0, 0, 0, .22);
    z-index: 5;
    pointer-events: none;
}

.brand_hub img {
    width: 52%;
    height: auto;
}

/* Hide both when a module is open */
.landing_wrapper.is-open .brand_hub,
.landing_wrapper.is-open .brand_watermark { display: none; }




/* =========================
   Top Bar (Back | Title | Logout)
========================= */
.top_actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* left | center | right */
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.top_actions>* {
    pointer-events: auto;
}

.back_btn {
    grid-column: 1;
    justify-self: start;
}



.logout {
    grid-column: 3;
    justify-self: end;
}

/* --- Buttons: home screen = white button with primary text --- */
.back_btn,
.logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #fff;
    transition: background .2s ease, color .2s ease,
        border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.back_btn:hover,
.logout:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.back_btn:active,
.logout:active {
    transform: scale(.96);
}

.back_btn:focus-visible,
.logout:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.logout svg {
    width: 18px;
    height: 18px;
}




/* =========================
   Opened State (one module full screen)
========================= */
.landing_wrapper.is-open {
    grid-template-columns: 1fr;
}

.landing_wrapper.is-open>section {
    display: none;
}

.landing_wrapper.open-visitor>.visitor_section,
.landing_wrapper.open-service>.Service_section {
    display: block;
    padding-top: 56px;
    /* space for the top bar */
    border-left: 0;
}

.landing_wrapper.is-open .module_card {
    display: none;
}

/* White bar */
.landing_wrapper.is-open .top_actions {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

/* Back = neutral */
.landing_wrapper.is-open .back_btn {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.landing_wrapper.is-open .back_btn:hover {
    background: #e5e7eb;
    box-shadow: none;
}

.landing_wrapper.is-open .back_btn i {
    transition: transform .2s ease;
}

.landing_wrapper.is-open .back_btn:hover i {
    transform: translateX(-3px);
}

.landing_wrapper.is-open .back_btn:focus-visible {
    outline: 3px solid #9ca3af;
    outline-offset: 2px;
}

/* Logout = primary color */
.landing_wrapper.is-open .logout {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.landing_wrapper.is-open .logout:hover {
    background: #c9651f;
    border-color: #c9651f;
    box-shadow: 0 6px 16px rgba(228, 122, 48, .35);
}

.landing_wrapper.is-open .logout:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}


/* =========================
   Landing Responsive
========================= */
@media (max-width: 768px) {
    .landing_wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .landing_wrapper.is-open {
        grid-template-rows: 1fr;
    }



    .module_card {
        padding: 1.5rem 1rem;
        gap: .75rem;
    }

    .module_icon {
        width: 76px;
        height: 76px;
        font-size: 2rem;
    }

    .module_card h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .top_actions {
        padding: 0 10px;
    }

    /* icon only */
    .logout .btn_label {
        display: none;
    }

    /* icon only */
    .logout {
        padding: 0;
        width: 38px;
        justify-content: center;
    }
}



/* =========================
   Animations
========================= */

/* --- Badge: pulsing ring --- */
.brand_hub::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    animation: ringPulse 2.4s ease-out 1.4s infinite;
}

@keyframes ringPulse {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* --- Watermark: slow breathing --- */
/* @keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

.brand_watermark { animation: breathe 8s ease-in-out infinite; } */

/* --- Icons: gentle float (uses `translate`, so hover `transform: scale` still works) --- */
@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

.module_icon { animation: floatY 3.2s ease-in-out infinite; }
.Service_section .module_icon { animation-delay: -1.6s; }   /* offset so they don't move together */

/* --- Opening a module --- */
@keyframes barDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.landing_wrapper.is-open .top_actions { animation: barDown .35s ease-out; }
.landing_wrapper.is-open > section    { animation: fadeIn .4s ease-out; }


/* --- Respect "reduce motion" setting --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================
   Global Loader
========================= */
.app-loader {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    backdrop-filter: blur(1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.loader-box {
    position: relative;
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 999px;
}

.loader-logo {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 90px;
    height: 90px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.ui-pnotify {
    display: block !important;
}

.iframe {
    border: 0;
    width: 100%;
    height: 100%;
}


.navbar-right {
  display: none !important;
}