:root {
    --corPrincipal: #D560FF;
    --corHover: #C14DFF;
    --corTexto: #2B0977;
    --cor-dark-surface: #2a1532;
    --cor-light-accent: #e7a3ff;
    --register-verde: #288a00;
    --register-verde-hover: #206600;
    --parc-green: #D560FF;
    --parc-green-hover: #C14DFF;
    --cor-a006: rgba(213, 96, 255, 0.06);
    --cor-a008: rgba(213, 96, 255, 0.08);
    --cor-a010: rgba(213, 96, 255, 0.1);
    --cor-a012: rgba(213, 96, 255, 0.12);
    --cor-a014: rgba(213, 96, 255, 0.14);
    --cor-a015: rgba(213, 96, 255, 0.15);
    --cor-a018: rgba(213, 96, 255, 0.18);
    --cor-a020: rgba(213, 96, 255, 0.2);
    --cor-a022: rgba(213, 96, 255, 0.22);
    --cor-a025: rgba(213, 96, 255, 0.25);
    --cor-a028: rgba(213, 96, 255, 0.28);
    --cor-a030: rgba(213, 96, 255, 0.3);
    --cor-a035: rgba(213, 96, 255, 0.35);
    --cor-a040: rgba(213, 96, 255, 0.4);
    --cor-a045: rgba(213, 96, 255, 0.45);
    --cor-a050: rgba(213, 96, 255, 0.5);
    --cor-a055: rgba(213, 96, 255, 0.55);
    --cor-a095: rgba(213, 96, 255, 0.95);
    --cor-hover-a88: rgba(193, 77, 255, 0.88);
    --cor-hover-a92: rgba(193, 77, 255, 0.92);
    --cor-shadow: rgba(213, 96, 255, 0.35);
    --cor-glow: rgba(213, 96, 255, 0.5);
    --cor-grad-vip: linear-gradient(125deg, rgba(213, 96, 255, 0.95) 0%, rgba(193, 77, 255, 0.88) 45%, rgba(193, 77, 255, 0.72) 100%);
    --cor-grad-soft: linear-gradient(135deg, rgba(213, 96, 255, 0.18) 0%, rgba(42, 21, 50, 0.95) 100%);
    --cor-grad-bar: linear-gradient(180deg, rgba(213, 96, 255, 0.14) 0%, #1a1a1a 100%);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10004;
    pointer-events: none;
    visibility: hidden;
}

.sidebar-overlay.show {
    display: block;
    pointer-events: auto;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

#mySidebar.app-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(52vw, 180px) !important;
    max-width: 180px !important;
    height: 100% !important;
    height: 100dvh !important;
    background: #16042c !important;
    transform: translateX(-105%) !important;
    transition: transform 0.32s ease !important;
    z-index: 10006 !important;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    padding: 0;
    visibility: hidden !important;
    pointer-events: none !important;
}

#mySidebar.app-sidebar.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#sidebarOverlay.sidebar-overlay:not(.show) {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(14px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar-header-toggle {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--corPrincipal);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.sidebar-brand-logo {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.sidebar-grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 7px 4px;
    border-radius: 10px;
    background: #1a1a1a;
    border: 1px solid var(--cor-a022);
    text-decoration: none;
    color: var(--corPrincipal);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.sidebar-grid-item.active {
    background: linear-gradient(145deg, var(--corPrincipal) 0%, var(--corHover) 100%);
    border-color: var(--corPrincipal);
    color: #2B0977;
}

.sidebar-grid-icon {
    font-size: 17px;
    line-height: 1;
}

.sidebar-grid-label {
    line-height: 1.1;
    font-size: 10px;
}

.sidebar-grid-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f5c518;
    color: #111;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 5px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 2px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font-family: Arial, sans-serif;
    border-radius: 8px;
}

.sidebar-list-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--corPrincipal);
}

.sidebar-list-sair {
    color: #ff6b6b;
}

.sidebar-list-sair i {
    color: #ff6b6b;
}
