/* Shared rebrand theme aligned to the Stitch references. */
:root {
    --brand: #8b5cf6;
    --brand-dark: #7c3aed;
    --brand-soft: rgba(139, 92, 246, 0.12);
    --brand-ring: rgba(139, 92, 246, 0.18);
    --navy: #101a44;
    --navy-deep: #0a1233;
    --page-bg: #f5f6fb;
    --surface: #ffffff;
    --surface-soft: #f7f8fc;
    --border: #dde3ef;
    --text-primary: #1b2340;
    --text-secondary: #66708c;
    --text-muted: #8d96af;
    --sidebar-text: rgba(255, 255, 255, 0.78);
    --shadow-soft: 0 12px 28px rgba(17, 31, 74, 0.08);
    --shadow-card: 0 18px 40px rgba(17, 31, 74, 0.13);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.walo-login,
body.walo-dashboard {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(240, 243, 251, 0.96)) fixed;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body.walo-login::before,
body.walo-login::after,
body.walo-dashboard::before,
body.walo-dashboard::after {
    display: none;
}

.walo-page {
    position: relative;
    z-index: 1;
}

.walo-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    flex-shrink: 0;
}

.walo-brand-mark img {
    display: block;
    width: auto;
    height: 2rem;
}

.walo-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 26, 68, 0.12);
    box-shadow: 0 8px 18px rgba(16, 26, 68, 0.06);
}

.walo-language-switcher button {
    min-width: 2.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.walo-language-switcher button.is-active,
.walo-language-switcher button:hover {
    background: var(--navy);
    color: #ffffff;
}

.walo-input-label {
    color: var(--text-primary);
    font-size: 0.96rem;
    font-weight: 600;
}

.walo-primary-button {
    background: linear-gradient(180deg, #1d222c 0%, #11151b 100%);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(17, 21, 27, 0.16);
}

.walo-primary-button:hover {
    background: linear-gradient(180deg, #2a313d 0%, #171b22 100%);
}

.walo-secondary-button {
    background: #f6f7fa;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.walo-dashboard input,
.walo-dashboard select,
.walo-dashboard textarea,
.walo-login input,
.walo-login select {
    border-radius: 0.9rem !important;
    border: 1px solid var(--border) !important;
    background: linear-gradient(180deg, #fbfbfd 0%, #f2f4f8 100%) !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.walo-dashboard input:focus,
.walo-dashboard select:focus,
.walo-dashboard textarea:focus,
.walo-login input:focus,
.walo-login select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px var(--brand-ring) !important;
    outline: none;
}

.walo-auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(540px, 0.98fr);
    background: #f8f5ef;
}

.walo-auth-story,
.walo-auth-card {
    overflow: hidden;
}

.walo-auth-story {
    position: relative;
    padding: 2rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(5, 10, 24, 0.32), rgba(9, 13, 35, 0.72)),
        url('./stitch/fundo.webp') left center / cover no-repeat;
    color: #ffffff;
}

.walo-auth-story > * {
    position: relative;
    z-index: 1;
}

.walo-auth-kicker {
    display: inline-flex;
    align-items: center;
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.walo-auth-title,
.walo-dashboard main .page-section header h1,
.walo-dashboard main .page-section header h2 {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.04em;
}

.walo-auth-title {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(3rem, 4.3vw, 4.8rem);
    line-height: 0.96;
    font-weight: 800;
    color: #ffffff;
}

.walo-auth-subtitle {
    max-width: 34rem;
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    font-size: 1.15rem;
    text-wrap: balance;
    word-wrap: break-word;
    word-break: break-word;
}

.walo-auth-points {
    display: grid;
    gap: 1.35rem;
    margin-top: 2.5rem;
}

.walo-auth-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.45;
}

.walo-auth-point span {
    width: 2.85rem;
    height: 2.85rem;
    flex-shrink: 0;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--brand);
}

.walo-auth-point span svg {
    width: 1.45rem;
    height: 1.45rem;
}

.walo-auth-card {
    position: relative;
    min-height: 100vh;
    padding: 2rem 2.5rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 1), rgba(255, 248, 238, 0.78) 26%, transparent 56%),
        radial-gradient(circle at 65% 22%, rgba(242, 245, 252, 0.8), transparent 46%),
        #faf7f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.walo-login [data-language-switcher] {
    position: fixed;
    top: 1.6rem;
    right: 1.8rem;
    z-index: 20;
}

.walo-panel-card {
    width: min(100%, 25rem);
    padding: 2.2rem 2rem 1.8rem;
    border-radius: 1.7rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(223, 227, 239, 0.9);
    box-shadow: var(--shadow-card);
}

.walo-login .walo-brand-mark img {
    height: 2.35rem;
}

.walo-dashboard .glass-sidebar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%) !important;
    border-right: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--sidebar-text);
}

.walo-dashboard #sidebar {
    width: 15.3rem !important;
    padding: 1.45rem 1.15rem 1.5rem !important;
    border-radius: 0;
    margin-right: 0;
    box-shadow: none !important;
}

.walo-dashboard #sidebar > div > .flex.items-center.gap-3.mb-8 > div:nth-of-type(1),
#sidebar-toggle,
.walo-shell-card > .flex.items-center.gap-3.min-w-0 > .w-8 {
    display: none !important;
}

#mobile-menu-btn {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(221, 227, 239, 0.92);
    box-shadow: var(--shadow-soft) !important;
}

.walo-dashboard #sidebar h2 {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

.walo-dashboard #sidebar .text-xs {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em;
    font-weight: 500;
    text-transform: none;
}

.walo-dashboard .nav-item {
    position: relative;
    border-radius: 0.85rem;
    color: var(--sidebar-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 2.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.walo-dashboard .nav-item::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 0.62rem;
    bottom: 0.62rem;
    width: 0.23rem;
    border-radius: 999px;
    background: transparent;
}

.walo-dashboard .nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.walo-dashboard .nav-item.bg-primary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--brand) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.walo-dashboard .nav-item.bg-primary::before {
    background: var(--brand);
}

.walo-dashboard .nav-icon,
.walo-dashboard .nav-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.walo-dashboard #sidebar .border-t {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.walo-dashboard #sidebar p#user-name {
    color: rgba(255, 255, 255, 0.94) !important;
}

.walo-dashboard #sidebar p#user-role {
    color: rgba(255, 255, 255, 0.58) !important;
}

.walo-dashboard #sidebar button[onclick*="logout"] {
    justify-content: flex-start !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
    padding-inline: 0.2rem !important;
}

.walo-dashboard #sidebar button[onclick*="logout"]:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.walo-dashboard main {
    background: linear-gradient(180deg, #fafbfe 0%, #f2f5fb 100%);
    margin-top: 0 !important;
    padding: 0 1.85rem 2rem !important;
}

.walo-dashboard-header {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: 0 -1.85rem 1.8rem;
    padding: 0 1.85rem;
    background: rgba(250, 251, 254, 0.94);
    backdrop-filter: blur(12px);
}

.walo-shell-card {
    padding: 1.05rem 0 1.15rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(27, 35, 64, 0.12);
    box-shadow: none;
}

.walo-dashboard .walo-dashboard-header + .page-section {
    padding-top: 0.15rem;
}

.walo-shell-title {
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--text-primary);
}

.walo-shell-copy,
#section-home > header {
    display: none !important;
}

.walo-dashboard .glass {
    background: var(--surface) !important;
    border: 1px solid rgba(221, 227, 239, 0.92) !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.walo-dashboard .text-primary {
    color: var(--brand) !important;
}

.walo-dashboard .border-primary {
    border-color: var(--brand) !important;
}

.walo-dashboard .bg-gray-50,
.walo-dashboard .bg-gray-50\/50 {
    background-color: var(--surface-soft) !important;
}

.walo-dashboard .bg-white,
.walo-dashboard .bg-white\/90 {
    background-color: var(--surface) !important;
}

.walo-dashboard .border-gray-200,
.walo-dashboard .border-gray-100 {
    border-color: rgba(221, 227, 239, 0.92) !important;
}

.walo-dashboard table thead {
    background: #f8f9fc !important;
}

.walo-dashboard #section-home > div:first-of-type .glass {
    border-radius: 1.45rem !important;
    padding: 1.35rem 1.3rem !important;
    min-height: 7.2rem;
}

.walo-dashboard #section-home > div:first-of-type .glass p {
    font-size: 0.84rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.85rem !important;
}

.walo-dashboard #section-home > div:first-of-type .glass h3 {
    color: var(--brand) !important;
    font-size: 2.9rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.05em !important;
}

.walo-dashboard #section-home .grid:nth-of-type(2) .glass,
.walo-dashboard #section-home .grid:nth-of-type(3) .glass,
.walo-dashboard #team-summary-section {
    border-radius: 1.8rem !important;
}

.walo-dashboard canvas {
    max-width: 100%;
}

.walo-dashboard .glass.p-6.rounded-\[0\.75rem\].shadow-sm {
    padding: 1.45rem !important;
}

.walo-dashboard .text-gray-800,
.walo-dashboard .text-gray-900 {
    color: var(--text-primary) !important;
}

.walo-dashboard .text-gray-500,
.walo-dashboard .text-gray-600,
.walo-dashboard .text-gray-400 {
    color: var(--text-secondary) !important;
}

.walo-dashboard footer {
    background: var(--surface) !important;
    border-top: 1px solid rgba(221, 227, 239, 0.92) !important;
}

@media (max-width: 1120px) {
    .walo-auth-layout {
        grid-template-columns: 1fr;
    }

    .walo-auth-story {
        min-height: 44vh;
        padding: 1.8rem 1.8rem 2rem;
    }

    .walo-auth-card {
        min-height: auto;
        padding: 1.6rem 1.2rem 2rem;
    }

    .walo-login [data-language-switcher] {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 1023px) {
    .walo-dashboard main {
        padding: 4.5rem 1rem 1.5rem !important;
    }

    .walo-dashboard-header {
        margin: -4.5rem -1rem 1.3rem;
        padding: 0 1rem;
    }

    .walo-shell-card {
        padding-top: 4.35rem;
    }
}

@media (max-width: 640px) {
    .walo-auth-title {
        max-width: 12ch;
        font-size: 2.55rem;
    }

    .walo-auth-subtitle {
        font-size: 1rem;
    }

    .walo-panel-card {
        padding: 1.7rem 1.2rem 1.35rem;
        border-radius: 1.3rem;
    }

    .walo-shell-title {
        font-size: 1.6rem;
    }

    .walo-dashboard #section-home > div:first-of-type .glass h3 {
        font-size: 2.25rem !important;
    }
}
