/* ==========================================================================
   DASHBOARD GLPI PRO - STYLE SHEET (CORRIGIDO)
   ========================================================================== */

:root {
    --bg-body: #0a0a0f;
    --bg-gradient: radial-gradient(circle at top left, #1a1a2e, #0f0f1a, #050505);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --info: #06b6d4;
    --info-glow: rgba(6, 182, 212, 0.3);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.3);
    --text-main: #ffffff;
    --text-sec: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.3);
    --sidebar-w: 288px;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --gold-glow: rgba(255, 215, 0, 0.2);
}

/* Novas variáveis para Gamificação */

.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateX(8px);
}

/* Estilo para os 3 primeiros lugares */
.leaderboard-item.rank-1 {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.leaderboard-item.rank-2 {
    border-color: var(--silver);
}

.leaderboard-item.rank-3 {
    border-color: var(--bronze);
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
    width: 40px;
    text-align: center;
}

.rank-1 .rank-number {
    color: var(--gold);
}

.rank-2 .rank-number {
    color: var(--silver);
}

.rank-3 .rank-number {
    color: var(--bronze);
}

.tech-avatar-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
}

.tech-avatar-main {
    width: 100%;
    height: 100%;
    background: var(--glass-bg-hover);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.medal-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.tech-details {
    flex: 1;
}

.tech-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tech-name-label {
    font-weight: 700;
    color: var(--text-main);
}

.tech-points-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Barra de progresso estilo Mac */
.progress-container-mac {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 1.5s cubic-bezier(0.1, 0, 0.1, 1);
}

body.light-mode {
    --bg-body: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --text-main: #0f172a;
    --text-sec: #64748b;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== TV MODE ==================== */
body.tv-mode {
    overflow: hidden;
}

body.tv-mode .sidebar,
body.tv-mode .page-header,
body.tv-mode .floating-menu-btn {
    display: none !important;
}

body.tv-mode .main-content {
    margin-left: 0 !important;
    padding: 20px !important;
}

.tv-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10000;
    display: none;
    animation: pulse-tv 2s infinite;
}

body.tv-mode .tv-indicator {
    display: block;
}

@keyframes pulse-tv {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-border-hover);
}

/* ==================== SIDEBAR (CORRIGIDO) ==================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-w);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    /* Ponto de origem padrão */
    transform: translateX(0);
}

.sidebar.collapsed {
    /* Move a sidebar totalmente para fora da tela */
    transform: translateX(-100%);
    width: 0;
    /* Zera a largura para cálculos visuais */
    padding: 0;
    opacity: 0;
    pointer-events: none;
    /* Impede cliques quando oculta */
    border: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
}

.sidebar-logo i {
    color: white;
    font-size: 1.2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-main), var(--text-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    /* Evita quebra de texto durante a animação */
}

.sidebar-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
}

.menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    /* Evita scroll horizontal na animação */
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.menu-link:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
    transform: translateX(4px);
}

.menu-link.active {
    background: var(--glass-bg-hover);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.menu-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.2s;
}

.user-profile:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border: 2px solid var(--glass-border);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
}

/* ==================== MAIN CONTENT (CORRIGIDO) ==================== */
.main-content {
    margin-left: var(--sidebar-w);
    /* Espaço original reservado */
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Animação suave para acompanhar a sidebar */
}

/* Quando expandido, remove a margem para ocupar 100% da tela */
.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

.floating-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.floating-menu-btn:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.05);
}

body.menu-closed .floating-menu-btn {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== HEADER ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.page-title-wrapper h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), var(--text-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.page-subtitle i {
    font-size: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.search-box input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 16px 12px 44px;
    width: 280px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
    backdrop-filter: blur(20px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-sec);
    backdrop-filter: blur(20px);
    position: relative;
}

.icon-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
    transform: translateY(-2px);
}

.icon-btn .badge-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 0 12px var(--danger-glow);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==================== GLASS CARDS ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top left, transparent 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

/* ==================== KPI CARDS ==================== */
.kpi-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card.glow-success::before {
    background: radial-gradient(circle at top left, var(--success-glow) 0%, transparent 70%);
}

.kpi-card.glow-primary::before {
    background: radial-gradient(circle at top left, var(--primary-glow) 0%, transparent 70%);
}

.kpi-card.glow-warning::before {
    background: radial-gradient(circle at top left, var(--warning-glow) 0%, transparent 70%);
}

.kpi-card.glow-danger::before {
    background: radial-gradient(circle at top left, var(--danger-glow) 0%, transparent 70%);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    position: relative;
}

.kpi-icon.success {
    background: var(--glass-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 20px var(--success-glow);
}

.kpi-icon.primary {
    background: var(--glass-bg);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px var(--primary-glow);
}

.kpi-icon.warning {
    background: var(--glass-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px var(--warning-glow);
}

.kpi-icon.danger {
    background: var(--glass-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px var(--danger-glow);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==================== DETAIL CARDS ==================== */
.detail-card {
    position: relative;
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.detail-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.detail-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.detail-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-sec);
    font-weight: 500;
    margin-top: 8px;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-kpi {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.grid-detail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* ==================== CHARTS ==================== */
.chart-card {
    padding: 32px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.chart-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-sec);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chart-container {
    height: 280px;
    position: relative;
}

/* ==================== TABLE ==================== */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.table-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.table-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table thead th {
    padding: 20px 32px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.custom-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.custom-table tbody tr:hover {
    background: var(--glass-bg-hover);
}

.custom-table tbody tr:last-child {
    border-bottom: none;
}

.custom-table tbody td {
    padding: 20px 32px;
    font-size: 0.9rem;
    color: var(--text-sec);
}

.table-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.table-status-icon.success {
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
    box-shadow: 0 0 12px var(--success-glow);
}

.table-status-icon.primary {
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.table-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-ticket-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.table-ticket-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.table-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-sec);
    display: inline-block;
}

.table-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.table-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.table-action:hover {
    background: var(--glass-bg);
    color: var(--text-main);
}

/* ==================== SLA COUNTDOWN ==================== */
.sla-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sla-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.sla-item:hover {
    background: var(--glass-bg-hover);
    transform: translateX(4px);
}

.sla-item.critical {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.sla-item.warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.sla-item.ok {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.sla-icon-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sla-icon-item.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.sla-icon-item.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.sla-icon-item.ok {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.sla-info {
    flex: 1;
}

.sla-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.sla-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sla-countdown {
    text-align: right;
}

.sla-time {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.sla-time.critical {
    color: var(--danger);
}

.sla-time.warning {
    color: var(--warning);
}

.sla-time.ok {
    color: var(--success);
}

.sla-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== NOTIFICATION PANEL ==================== */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 40px;
    width: 380px;
    max-height: calc(100vh - 120px);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.notification-panel.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.notification-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-clear:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item:hover {
    background: var(--glass-bg-hover);
    transform: translateX(-4px);
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
}

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.notification-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notification-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==================== EDIT MODE ==================== */
.edit-mode-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.edit-mode-indicator.show {
    display: flex;
}

.edit-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.edit-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--glass-border) 25%, var(--glass-bg-hover) 50%, var(--glass-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    color: transparent !important;
    user-select: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
    .grid-kpi {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-kpi {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-detail {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        border: none;
    }

    .main-content {
        margin-left: 0;
        padding: 24px;
    }

    .grid-kpi,
    .grid-detail {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    body.menu-closed .floating-menu-btn {
        opacity: 1;
        pointer-events: auto;
    }

    .page-title-wrapper h1 {
        font-size: 1.75rem;
    }

    .notification-panel {
        width: calc(100vw - 40px);
        right: 20px;
    }
}

/* ==================== PAGE SECTIONS ==================== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==================== ASSETS CARD PRO (ATUALIZADO) ==================== */
.assets-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.asset-card-pro {
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Remove padding padrão do glass-card */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.asset-card-pro:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* HEADER DO CARD */
.asset-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.asset-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--glass-bg-hover), transparent);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.asset-header-info {
    flex: 1;
    overflow: hidden;
}

.asset-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.asset-status-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    position: absolute;
    top: 20px;
    right: 20px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ESPECIFICAÇÕES */
.asset-specs {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-sec);
    font-size: 0.85rem;
}

.spec-icon {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-text.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-main);
}

/* FOOTER DO CARD */
.asset-footer {
    padding: 12px 20px;
    background: rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
}

.os-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.os-windows { background: rgba(0, 120, 215, 0.15); color: #0078d7; }
.os-linux { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
.os-mac { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.os-generic { background: rgba(128, 128, 128, 0.15); color: #a0a0a0; }

.btn-asset-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-asset-action:hover {
    color: var(--primary);
    transform: scale(1.1);
}
/* ==================== CYBERPUNK THEME & MODAL ==================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffee00;
    --cyber-bg: rgba(10, 10, 16, 0.95);
    --cyber-panel: rgba(20, 20, 30, 0.8);
}

/* --- GRID DE ATIVOS (Mini Cards) --- */
.asset-card-cyber {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%); /* Canto cortado */
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.asset-card-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--neon-blue);
    opacity: 0.5;
}

.asset-card-cyber:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    border-color: var(--neon-blue);
}

.cyber-card-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cyber-card-meta {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-blue);
    font-size: 0.8rem;
}

/* --- MODAL OVERLAY --- */
.cyber-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cyber-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- HUD PRINCIPAL --- */
.cyber-hud {
    width: 700px;
    max-width: 90%;
    background: var(--cyber-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), inset 0 0 20px rgba(0, 243, 255, 0.05);
    padding: 30px;
    position: relative;
    clip-path: polygon(
        0 0, 100% 0, 
        100% 90%, 95% 100%, 
        5% 100%, 0 90%
    );
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

.cyber-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: var(--neon-pink);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.cyber-close:hover { transform: rotate(90deg) scale(1.2); text-shadow: 0 0 10px var(--neon-pink); }

/* Header do Modal */
.cyber-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cyber-id-badge {
    background: var(--neon-yellow);
    color: #000;
    display: inline-block;
    padding: 2px 8px;
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cyber-glitch-text {
    font-size: 2rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px var(--neon-pink);
}

.cyber-sub {
    color: var(--neon-blue);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
}

/* Grid Interno */
.cyber-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .cyber-grid-layout { grid-template-columns: 1fr; }
}

/* Colunas e Caixas */
.cyber-box { margin-bottom: 20px; }
.cyber-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cyber-status-text {
    color: var(--success);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--success);
}

.cyber-os-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Barras de Progresso Sci-Fi */
.cyber-stat-row { margin-bottom: 15px; }
.stat-label { font-family: 'Share Tech Mono'; color: var(--text-sec); font-size: 0.85rem; display: flex; align-items: center; gap: 8px;}
.stat-value-text { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.mono { font-family: 'Share Tech Mono'; color: var(--neon-yellow); }

.cyber-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg); /* Inclina a barra */
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Footer Scanline */
.cyber-footer {
    margin-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-family: 'Share Tech Mono';
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}