/*
Theme Name: MulaTask Hello Elementor Child
Theme URI: https://mulatask.com/
Description: MulaTask earning platform child theme, based on the LipaTask functionality.
Author: MulaTask
Template: hello-elementor
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mulatask
*/


/* MulaTask global canvas and protected-page layout */
/* MulaTask theme-aware page backgrounds */
:root {
    --mula-page-bg: #f7f4ff;
    --mula-page-text: #24234a;
}

body.mula-dark {
    --mula-page-bg: #120d1b;
    --mula-page-text: #f4efff;
}

/* Keep the document canvas transparent so the body theme colour also
   paints the full viewport area behind the fixed header. */
html {
    min-height: 100%;
    background: transparent !important;
}

body {
    min-height: 100%;
    background: var(--mula-page-bg) !important;
    color: var(--mula-page-text);
}

body.mula-dark,
body.mula-dark #page,
body.mula-dark #content,
body.mula-dark .site-main {
    background: #120d1b !important;
    color: #f4efff;
}
body {
    margin: 0;
    overflow-x: hidden;
}
body, button, input, select, textarea {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Do not let leftover Hello Elementor page chrome add titles or vertical gaps. */
body .site-header,
body .site-footer,
body .page-header,
body .entry-header,
body .entry-title {
    display: none !important;
}
/* MulaTask header is fixed independently of its short template wrapper,
   so it remains visible while dashboard and wallet content scrolls. */
.mula-shell {
    position: relative;
    z-index: 1200;
    height: 108px;
}
.mula-shell .mula-topbar {
    position: fixed !important;
    top: 10px !important;
    left: 3% !important;
    right: 3% !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 1300 !important;
}
@media (max-width: 600px) {
    .mula-shell { height: 96px; }
    .mula-shell .mula-topbar {
        top: 8px !important;
        left: 2.5% !important;
        right: 2.5% !important;
    }
}


/* -------------------------------------------------------------------------
   MulaTask platform design tokens.
   Keep Elementor/Hello Elementor default accent colours from leaking into
   future buttons, links, form controls and interactive components.
   ------------------------------------------------------------------------- */
:root {
    --mula-brand-primary: #6420df;
    --mula-brand-secondary: #8b23ee;
    --mula-brand-soft: #f5efff;
    --mula-brand-border: #e7def6;
    --mula-brand-focus: rgba(100, 32, 223, .28);

    /* Elementor global colour aliases */
    --e-global-color-primary: #6420df;
    --e-global-color-secondary: #24234a;
    --e-global-color-text: #24234a;
    --e-global-color-accent: #8b23ee;
}

body.mula-dark {
    --mula-brand-primary: #b98aff;
    --mula-brand-secondary: #9b5cf6;
    --mula-brand-soft: #2b1c3e;
    --mula-brand-border: #493260;
    --mula-brand-focus: rgba(185, 138, 255, .35);

    --e-global-color-primary: #b98aff;
    --e-global-color-secondary: #f0e8fa;
    --e-global-color-text: #f0e8fa;
    --e-global-color-accent: #9b5cf6;
}

/* Neutralize Hello Elementor / browser red tap and active feedback globally. */
html, body, button, a, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Consistent MulaTask keyboard focus treatment across current and future UI. */
body :focus-visible {
    outline: 3px solid var(--mula-brand-focus);
    outline-offset: 2px;
}

/* Common interactive controls use the MulaTask purple palette, not the
   parent theme's accent colour. Page-specific component styling remains intact. */
body button:not(.mula-logout),
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body .elementor-button,
body a.elementor-button {
    accent-color: var(--mula-brand-primary);
}

body button:not(.mula-logout):active,
body button:not(.mula-logout):focus,
body button:not(.mula-logout):focus-visible,
body button:not(.mula-logout):hover,
body input[type="button"]:active,
body input[type="button"]:focus,
body input[type="button"]:hover,
body input[type="submit"]:active,
body input[type="submit"]:focus,
body input[type="submit"]:hover,
body .elementor-button:active,
body .elementor-button:focus,
body .elementor-button:hover {
    border-color: var(--mula-brand-primary);
}

body a:not(.mula-nav-link):not(.mula-bottom-bar a):focus-visible {
    outline-color: var(--mula-brand-focus);
}

/* Ensure WordPress/Elementor links and selection accents remain on-brand. */
body a {
    text-decoration-color: currentColor;
}
::selection {
    background: #6420df;
    color: #fff;
}
