@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root,
[data-bs-theme=light] {
    --lionsoft-primary: #029EBE;
    --lionsoft-primary-dark: #027a94;
    --lionsoft-primary-light: rgba(2, 158, 190, 0.12);
    --lionsoft-text: #333333;
    --lionsoft-bg: #f5f8fa;
    --lionsoft-border: #e5eaef;

    --bs-primary: #029EBE;
    --bs-primary-rgb: 2, 158, 190;
    --bs-link-color: #029EBE;
    --bs-link-hover-color: #027a94;
    --bs-body-color: #333333;
    --bs-body-color-rgb: 51, 51, 51;
    --bs-heading-color: #333333;
    --bs-gray: #333333;
    --bs-gray-500: #5a6a85;
    --bs-gray-600: #333333;
    --bs-font-sans-serif: "Inter", sans-serif;
    --bs-body-font-family: "Inter", sans-serif;
    --bs-border-radius: 8px;
    --bs-border-radius-lg: 12px;
    --bs-light-primary: rgba(2, 158, 190, 0.1);
}

body {
    font-family: "Inter", sans-serif;
    color: #333333;
    background-color: var(--lionsoft-bg);
}

h1, h2, h3, h4, h5, h6,
.card-title {
    color: #333333;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: #029EBE;
    --bs-btn-border-color: #029EBE;
    --bs-btn-hover-bg: #027a94;
    --bs-btn-hover-border-color: #027a94;
    --bs-btn-active-bg: #026a80;
    --bs-btn-active-border-color: #026a80;
    --bs-btn-disabled-bg: #029EBE;
    --bs-btn-disabled-border-color: #029EBE;
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-primary {
    --bs-btn-color: #029EBE;
    --bs-btn-border-color: #029EBE;
    --bs-btn-hover-bg: #029EBE;
    --bs-btn-hover-border-color: #029EBE;
    --bs-btn-active-bg: #027a94;
    --bs-btn-active-border-color: #027a94;
}

.btn-secondary {
    --bs-btn-bg: #333333;
    --bs-btn-border-color: #333333;
    --bs-btn-hover-bg: #1f1f1f;
    --bs-btn-hover-border-color: #1f1f1f;
}

.text-primary {
    color: #029EBE !important;
}

.bg-primary {
    background-color: #029EBE !important;
}

.border-primary {
    border-color: #029EBE !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #029EBE;
    box-shadow: 0 0 0 0.2rem rgba(2, 158, 190, 0.2);
}

.page-wrapper {
    background-color: var(--lionsoft-bg);
}

.left-sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--lionsoft-border);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

.brand-logo {
    border-bottom: 1px solid var(--lionsoft-border);
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.brand-logo .logo-img img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    color: #333333;
    font-weight: 500;
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover {
    background-color: var(--lionsoft-primary-light);
    color: #029EBE;
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover.has-arrow:after {
    border-color: #029EBE;
}

.sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.sidebar-nav ul .sidebar-item.selected > .sidebar-link.active,
.sidebar-nav ul .sidebar-item > .sidebar-link.active {
    background-color: #029EBE;
    color: #fff;
}

.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--lionsoft-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#main-wrapper[data-layout=vertical][data-header-position=fixed] .app-header {
    top: 0;
    right: 0;
}

@media (min-width: 1200px) {
    #main-wrapper[data-layout=vertical][data-header-position=fixed] .app-header {
        left: 270px;
        width: calc(100% - 270px);
    }
}

.app-header .navbar {
    background-color: #ffffff !important;
}

.card {
    border: 1px solid var(--lionsoft-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card.border-success {
    border-color: rgba(25, 135, 84, 0.35) !important;
}

.card.border-danger {
    border-color: rgba(220, 53, 69, 0.35) !important;
}

.table thead th {
    color: #333333;
    font-weight: 600;
    border-bottom-color: var(--lionsoft-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(2, 158, 190, 0.03);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #029EBE !important;
    border-color: #029EBE !important;
    color: #fff !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--lionsoft-border);
}

.offcanvas-bottom {
    border-top: 1px solid var(--lionsoft-border);
}

/* Login — paleta alinhada ao painel (var --lionsoft-*) */
.lionsoft-login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--lionsoft-bg);
    font-family: var(--bs-font-sans-serif);
}

.login-layout {
    display: flex;
    min-height: 100vh;
}

/* Painel da marca — mesmo tom da sidebar do sistema */
.login-brand-panel {
    position: relative;
    flex: 1.15;
    display: none;
    overflow: hidden;
    background: linear-gradient(180deg, #1a2329 0%, #222c33 100%);
    color: #ffffff;
    padding: 3.5rem;
}

.login-brand-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lionsoft-primary) 0%, var(--lionsoft-primary-dark) 100%);
    z-index: 3;
}

.login-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(2, 158, 190, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 158, 190, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 992px) {
    .login-brand-panel {
        display: flex;
        align-items: center;
    }
}

.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
    animation: loginSlideIn 0.6s ease;
}

@keyframes loginSlideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-brand-logo img {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.login-brand-tag {
    display: inline-block;
    margin: 1.5rem 0 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(2, 158, 190, 0.2);
    border: 1px solid rgba(2, 158, 190, 0.35);
    color: #7dd9ed;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-brand-title {
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.login-brand-text {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.25rem;
}

.login-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(2, 158, 190, 0.18);
    color: #5ecce3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.login-brand-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(2, 158, 190, 0.08);
    pointer-events: none;
    z-index: 0;
}

.login-brand-shape--1 {
    width: 380px;
    height: 380px;
    top: -100px;
    right: -80px;
}

.login-brand-shape--2 {
    width: 220px;
    height: 220px;
    bottom: -50px;
    left: -50px;
}

.login-brand-shape--3 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 15%;
    background: rgba(255, 255, 255, 0.04);
}

/* Painel do formulário — mesmo fundo do .ls-content */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(2, 158, 190, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(2, 158, 190, 0.04) 0%, transparent 45%),
        var(--lionsoft-bg);
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: loginFadeUp 0.5s ease 0.1s both;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-form-logo-mobile {
    max-height: 38px;
    width: auto;
    margin-bottom: 0.5rem;
}

.login-mobile-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lionsoft-primary);
    background: var(--lionsoft-primary-light);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin: 0;
}

.login-form-box {
    background: #ffffff;
    border: 1px solid var(--lionsoft-border);
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.login-form-intro {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-form-intro__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--lionsoft-primary-light);
    color: var(--lionsoft-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.login-form-intro h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--lionsoft-text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.login-form-intro p {
    font-size: 0.9rem;
    color: #6b7a8d;
    margin: 0;
}

.login-field {
    margin-bottom: 1.15rem;
}

.login-field .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lionsoft-text);
    margin-bottom: 0.4rem;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 0.9rem;
    color: #8a96a3;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.login-input-wrap:focus-within .login-input-icon {
    color: var(--lionsoft-primary);
}

.login-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.5rem;
    border-radius: 10px;
    border: 1px solid #dce4ea;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:hover {
    border-color: #c5d3dc;
}

.login-input::placeholder {
    color: #aab4be;
}

.login-input:focus {
    border-color: var(--lionsoft-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 158, 190, 0.12);
    outline: none;
}

.login-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.login-password-toggle {
    position: absolute;
    right: 0.65rem;
    background: none;
    border: none;
    color: #8a96a3;
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
}

.login-password-toggle:hover {
    color: var(--lionsoft-primary);
    background: var(--lionsoft-primary-light);
}

.login-submit {
    margin-top: 0.75rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(2, 158, 190, 0.25);
}

.login-submit__arrow {
    font-size: 0.85rem;
    transition: transform 0.15s;
}

.login-submit:hover .login-submit__arrow {
    transform: translateX(3px);
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(2, 158, 190, 0.38);
}

.login-submit:disabled {
    transform: none;
    box-shadow: none;
}

.login-form-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.78rem;
    color: #8a96a3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.login-form-footer a {
    color: var(--lionsoft-primary);
    text-decoration: none;
    font-weight: 600;
}

.login-form-footer a:hover {
    color: var(--lionsoft-primary-dark);
}

.login-form-footer__sep {
    opacity: 0.4;
}

.login-form-footer__secure {
    color: #8a96a3;
    font-size: 0.75rem;
}

.login-form-footer__secure i {
    margin-right: 0.2rem;
    color: var(--lionsoft-primary);
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .login-form-panel {
        background:
            linear-gradient(180deg, #1a2329 0%, #222c33 88px, transparent 88px),
            radial-gradient(ellipse at 0% 0%, rgba(2, 158, 190, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 100% 100%, rgba(2, 158, 190, 0.04) 0%, transparent 45%),
            var(--lionsoft-bg);
        padding-top: 2.5rem;
    }

    .login-form-header {
        margin-bottom: 1.5rem;
    }

    .login-form-logo-mobile {
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

    .login-mobile-tag {
        color: #7dd9ed;
        background: rgba(2, 158, 190, 0.2);
        border: 1px solid rgba(2, 158, 190, 0.35);
    }

    .login-form-box {
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .login-form-box {
        padding: 1.5rem 1.25rem;
    }

    .login-form-intro h2 {
        font-size: 1.35rem;
    }
}

.radial-gradient:before {
    display: none;
}

.swal2-styled.swal2-confirm {
    background-color: #029EBE !important;
}

.btn-primary.rounded-pill {
    border-radius: 50rem;
}

.app-header .nav-link.nav-icon-hover:hover {
    color: #029EBE;
}

a {
    color: #029EBE;
}

a:hover {
    color: #027a94;
}

.badge.bg-primary {
    background-color: #029EBE !important;
}

.progress-bar {
    background-color: #029EBE;
}

/* ============================================================
   Lionsoft Panel — layout moderno
   ============================================================ */

.lionsoft-panel {
    background-color: var(--lionsoft-bg);
}

.ls-content {
    padding: 1.5rem 1.75rem 2rem;
    min-height: calc(100vh - 70px);
}

#main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper > .ls-content {
    padding-top: calc(70px + 1.5rem);
}

@media (max-width: 767.98px) {
    .ls-content {
        padding: 1rem;
    }

    #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper > .ls-content {
        padding-top: calc(70px + 1rem);
    }
}

/* Sidebar */
.left-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
}

.ls-sidebar-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #029EBE 0%, #027a94 100%);
    z-index: 2;
}

.ls-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 4px;
    overflow: hidden;
}

.ls-sidebar.left-sidebar .scroll-sidebar {
    flex: 0 1 auto;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 12px;
    border-radius: 0;
}

.ls-sidebar .simplebar-track {
    display: none !important;
}

.brand-logo {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 0;
}

.ls-brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.ls-brand-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #029EBE;
    background: var(--lionsoft-primary-light);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

.ls-nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a96a3;
    padding: 0.75rem 1.5rem 0.35rem;
    margin: 0;
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    border-radius: 10px;
    margin: 2px 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.2s ease;
}

.ls-nav-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(2, 158, 190, 0.08);
    color: #029EBE;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover .ls-nav-icon,
.sidebar-nav ul .sidebar-item > .sidebar-link.active .ls-nav-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-nav ul .sidebar-item > .sidebar-link.active {
    box-shadow: 0 4px 14px rgba(2, 158, 190, 0.35);
}

.ls-subnav {
    padding-left: 0.5rem;
}

.ls-subnav .sidebar-link {
    font-size: 0.9rem;
    padding-left: 2.75rem !important;
}

.ls-subnav .sidebar-link.active {
    background-color: var(--lionsoft-primary-light) !important;
    color: #029EBE !important;
    box-shadow: none !important;
    font-weight: 600;
}

.ls-sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--lionsoft-border);
}

.ls-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #8a96a3;
    text-decoration: none;
    transition: color 0.2s;
}

.ls-sidebar-footer a:hover {
    color: #029EBE;
}

/* Header */
.app-header .navbar {
    min-height: 70px;
    padding: 0 1.25rem;
}

.ls-header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ls-header-product {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333333;
}

.ls-header-divider {
    width: 1px;
    height: 18px;
    background: var(--lionsoft-border);
}

.ls-header-by {
    font-size: 0.85rem;
    color: #8a96a3;
    font-weight: 500;
}

.ls-user-trigger {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem !important;
    border-radius: 50px;
    transition: background 0.2s;
}

.ls-user-trigger:hover {
    background: var(--lionsoft-primary-light);
}

.ls-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #029EBE, #027a94);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ls-user-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

.ls-user-info {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.ls-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333333;
}

.ls-user-email {
    font-size: 0.75rem;
    color: #8a96a3;
}

.ls-user-chevron {
    font-size: 0.7rem;
    color: #8a96a3;
}

.ls-user-dropdown {
    border: 1px solid var(--lionsoft-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 240px;
}

.ls-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
}

.ls-user-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: #333333;
}

.ls-user-dropdown-header small {
    display: block;
    font-size: 0.75rem;
    color: #8a96a3;
}

.ls-logout-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
}

.ls-logout-item:hover {
    background: var(--lionsoft-primary-light);
    color: #029EBE;
}

/* Page header — estrutura base (detalhes em v2 abaixo) */
.ls-page-subtitle {
    font-size: 0.9rem;
    color: #6b7a8d;
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

.ls-page-header__actions .btn {
    white-space: nowrap;
}

.ls-back-btn {
    border-radius: 8px;
}

/* Cards */
.ls-filter-card,
.ls-table-card,
.ls-info-card,
.ls-progress-card {
    border: 1px solid var(--lionsoft-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.ls-filter-card .card-body {
    padding: 1.25rem 1.5rem;
}

.ls-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.35rem;
}

.ls-stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lionsoft-border);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ls-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 158, 190, 0.1);
}

.ls-stat-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #029EBE, #027a94);
}

.ls-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lionsoft-primary-light);
    color: #029EBE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.ls-stat-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.ls-stat-card__label {
    font-size: 0.8rem;
    color: #8a96a3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.ls-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    letter-spacing: -0.02em;
}

.ls-stat-card--success {
    border-color: rgba(25, 135, 84, 0.25);
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.04) 0%, #fff 40%);
}

.ls-stat-card--danger {
    border-color: rgba(220, 53, 69, 0.25);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.04) 0%, #fff 40%);
}

.ls-stat-card--neutral {
    border-color: rgba(2, 158, 190, 0.25);
    background: linear-gradient(180deg, rgba(2, 158, 190, 0.04) 0%, #fff 40%);
}

.ls-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
}

.ls-badge--success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.ls-badge--danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

/* Tables */
.ls-table-wrap {
    border-radius: 10px;
    border: 1px solid var(--lionsoft-border);
    overflow: hidden;
}

.ls-table {
    margin-bottom: 0;
}

.ls-table thead th {
    background: #f8fafb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--lionsoft-border);
    white-space: nowrap;
}

.ls-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom-color: #f0f3f6;
}

.ls-table tbody tr:hover > * {
    background-color: rgba(2, 158, 190, 0.04);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.75rem 0.25rem;
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid var(--lionsoft-border);
    padding: 0.4rem 0.75rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #029EBE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 158, 190, 0.15);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px;
}

/* Progress */
.ls-progress {
    height: 24px;
    border-radius: 50px;
    background: #e9eef2;
    overflow: hidden;
}

.ls-progress .progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
}

.ls-filter-group .btn {
    border-radius: 8px;
}

.ls-filter-group .btn.active {
    background-color: #029EBE;
    border-color: #029EBE;
    color: #fff;
}

/* Offcanvas */
.ls-offcanvas {
    border-left: 1px solid var(--lionsoft-border);
}

.ls-offcanvas .offcanvas-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafb;
}

.ls-offcanvas .offcanvas-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333333;
}

.ls-offcanvas .offcanvas-body {
    padding: 1.5rem;
}

.ls-offcanvas-footer {
    padding: 1rem 1.5rem;
    text-align: right;
    background: #f8fafb;
}

.ls-offcanvas .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333333;
}

.ls-offcanvas .form-control,
.ls-offcanvas .form-select {
    border-radius: 10px;
    border-color: #dce4ea;
    padding: 0.6rem 0.85rem;
}

/* Forms global */
.form-control,
.form-select {
    border-radius: 10px;
    border-color: #dce4ea;
}

.form-control:focus,
.form-select:focus {
    border-color: #029EBE;
    box-shadow: 0 0 0 3px rgba(2, 158, 190, 0.12);
}

/* SweetAlert */
.swal2-popup {
    border-radius: 14px !important;
    font-family: "Inter", sans-serif !important;
}

/* ============================================================
   Lionsoft Panel v2 — refinamento visual
   ============================================================ */

.ls-page {
    animation: lsFadeIn 0.35s ease;
}

@keyframes lsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ls-content {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(2, 158, 190, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(2, 158, 190, 0.04) 0%, transparent 45%),
        var(--lionsoft-bg);
}

/* Sidebar escura Lionsoft */
.ls-sidebar.left-sidebar {
    background: linear-gradient(180deg, #1a2329 0%, #222c33 100%);
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    height: 100vh;
    overflow: hidden;
}

.ls-sidebar .brand-logo {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ls-sidebar .brand-logo .logo-img img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.ls-sidebar .ls-brand-badge {
    color: #7dd9ed;
    background: rgba(2, 158, 190, 0.2);
}

.ls-sidebar .ls-nav-label {
    color: rgba(255, 255, 255, 0.35);
}

.ls-sidebar .sidebar-nav ul .sidebar-item .sidebar-link {
    color: rgba(255, 255, 255, 0.78);
}

.ls-sidebar .sidebar-nav ul .sidebar-item .sidebar-link:hover {
    background: rgba(2, 158, 190, 0.15);
    color: #fff;
}

.ls-sidebar .ls-nav-icon {
    background: rgba(2, 158, 190, 0.18);
    color: #5ecce3;
}

.ls-sidebar .sidebar-nav ul .sidebar-item > .sidebar-link.active {
    background: linear-gradient(135deg, #029EBE, #027a94);
    color: #fff;
    box-shadow: 0 4px 16px rgba(2, 158, 190, 0.4);
}

.ls-sidebar .ls-subnav .sidebar-link {
    color: rgba(255, 255, 255, 0.65);
}

.ls-sidebar .ls-subnav .sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06) !important;
}

.ls-sidebar .ls-subnav .sidebar-link.active {
    background: rgba(2, 158, 190, 0.2) !important;
    color: #5ecce3 !important;
}

.ls-sidebar .ls-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    margin-top: auto;
    flex-shrink: 0;
}

.ls-sidebar .ls-sidebar-footer a {
    color: rgba(255, 255, 255, 0.45);
}

.ls-sidebar .ls-sidebar-footer a:hover {
    color: #5ecce3;
}

.ls-sidebar .close-btn {
    color: rgba(255, 255, 255, 0.6);
}

/* Page header v2 */
.ls-page-header {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 1rem;
}

.ls-page-header__accent {
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #029EBE, #027a94);
}

.ls-page-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ls-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.25rem;
    letter-spacing: -0.03em;
}

/* Botões primários */
.ls-btn-primary,
.btn-primary.ls-btn-primary {
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(2, 158, 190, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ls-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 158, 190, 0.35);
}

/* Info banner */
.ls-info-banner {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.ls-info-banner--teal {
    background: linear-gradient(135deg, rgba(2, 158, 190, 0.08), rgba(2, 158, 190, 0.03));
    border-color: rgba(2, 158, 190, 0.2);
}

.ls-info-banner--info {
    background: #f8fafb;
    border-color: var(--lionsoft-border);
}

.ls-info-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #029EBE;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ls-info-banner__title {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}

.ls-info-banner__text {
    color: #6b7a8d;
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ls-copy-field {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

.ls-copy-field input {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    background: #fff;
    border-radius: 8px;
}

.ls-copy-field .ls-copy-btn {
    border-radius: 8px;
    flex-shrink: 0;
}

/* Table card flush */
.ls-table-card {
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.ls-table-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ls-table-card .ls-table-wrap {
    border: none;
    border-radius: 0;
}

.ls-table-card .dataTables_wrapper {
    padding: 0.75rem 1rem 1rem;
}

/* Status pills */
.ls-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ls-status--success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.ls-status--danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.ls-status--warning {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

/* Action buttons */
.ls-action-group {
    display: inline-flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.ls-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--lionsoft-border);
    border-radius: 8px;
    background: #fff;
    color: #6b7a8d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    padding: 0;
}

.ls-action-btn:hover {
    border-color: #029EBE;
    color: #029EBE;
    background: rgba(2, 158, 190, 0.06);
    transform: translateY(-1px);
}

.ls-action-btn--edit:hover {
    border-color: #029EBE;
    color: #029EBE;
}

.ls-action-btn--delete:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}

.ls-action-btn--view:hover,
.ls-action-btn--download:hover {
    border-color: #029EBE;
    color: #029EBE;
}

/* Empty state */
.ls-empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #fff;
    border: 1px dashed var(--lionsoft-border);
    border-radius: 14px;
    color: #8a96a3;
}

.ls-empty-state i {
    font-size: 2.5rem;
    color: #029EBE;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.ls-empty-state h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ls-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Offcanvas aprimorado */
.ls-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, #f8fafb, #fff);
}

.ls-offcanvas-footer .btn-primary {
    min-width: 120px;
    border-radius: 10px;
    font-weight: 600;
}

#offcanvas-form .form-group {
    margin-bottom: 1.1rem;
}

#offcanvas-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

#zenvia-token-validation.alert {
    border-radius: 10px;
    font-size: 0.85rem;
}

/* DataTables processing */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
    border: 1px solid var(--lionsoft-border) !important;
    color: #029EBE !important;
    font-weight: 500 !important;
}

/* Header glass effect */
.app-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92) !important;
}

.ls-action-btn--copy:hover {
    border-color: #029EBE;
    color: #029EBE;
}

.ls-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: rgba(2, 158, 190, 0.1);
    color: #029EBE;
    font-weight: 700;
    font-size: 0.85rem;
}

.ls-token-mask {
    font-size: 0.8rem;
    color: #6b7a8d;
    background: #f4f7f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Responsivo */
@media (max-width: 767.98px) {
    .ls-page-title {
        font-size: 1.4rem;
    }

    .ls-page-header__actions {
        width: 100%;
    }

    .ls-page-header__actions .btn {
        width: 100%;
    }

    .ls-info-banner {
        flex-direction: column;
    }
}
