    /* === VIEW DE LISTA (Reformulado) === */
/* === VIEW DE LISTA === */
    .list-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        padding: 12px 18px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative; /* Necessário para o z-index funcionar */
    }
    .list-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .info {
        display: flex;
        flex-wrap: wrap; 
        gap: 12px 18px; 
        flex: 1;
        align-items: center;
    }

    .block {
        display: flex;
        flex-direction: column;
    }
    
    .label {
        font-size: 10px; 
        text-transform: uppercase;
        color: #64748b;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .value {
        font-size: 14px; 
        color: #1e293b;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

    /* ✅ MUDANÇA: Controle de largura das colunas */
    .block.uh     { flex: 0 1 40px; }
    .block.nome   { flex: 1 1 200px; min-width: 150px; }
    .block.login  { flex: 1 1 110px; } /* Ajustado */
    .block.senha  { flex: 1 1 110px; } /* Ajustado */
    .block.data   { flex: 1 1 140px; }
    .block.status { flex: 0 1 70px; }
    .block.origem { flex: 1 1 100px; } /* Ajustado */
    .actions      { flex: 0 0 auto; padding-left: 10px; }


    .status-badge {
        padding: 2px 8px;
        border-radius: 12px; 
        font-weight: 600;
        font-size: 11px; 
        text-transform: uppercase;
    }

    .status-up {
        background: rgba(34, 197, 94, 0.2);
        color: #166534;
    }

    .status-down {
        background: rgba(100, 116, 139, 0.2);
        color: #334155;
    }


    /* === VIEW DE CARDS === */
    .cards-container {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .usuario-card {
        flex: 1 1 280px; 
        min-width: 270px;
        max-width: 300px;
    }

    .card-frosted {
        position: relative;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 14px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        padding: 16px;
        height: 220px;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card-frosted:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }

    .faixa-status {
        position: absolute;
        left: 0;
        top: 0;
        width: 5px;
        height: 100%;
        border-radius: 14px 0 0 14px;
    }

    .faixa-online {
        background: #16a34a;
    }

    .faixa-offline {
        background: #94a3b8; 
    }

    .conteudo-card {
        margin-left: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .topo-card {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wifi-online {
        color: #22c55e;
        font-size: 20px;
    }

    .wifi-offline {
        color: #94a3b8;
        font-size: 20px;
    }

    .info-uh h4 { margin: 0; font-size: 13px; color: #64748b; }
    .info-uh h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1e293b; }

    .dados-card p {
        margin: 3px 0;
        font-size: 13px;
        color: #334155;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .btn-olho {
        border: none; background: none; color: #475569;
        opacity: 0.7; cursor: pointer; padding: 0;
    }
    .btn-olho:hover { opacity: 1; }
    .senha-mask { line-height: 1.5; } 

    .datas-card small { font-size: 12px; color: #475569; }

    .acoes-card {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .btn-acao {
        border: none; border-radius: 8px; padding: 6px 10px;
        font-size: 14px; color: #fff; cursor: pointer;
        transition: 0.2s; text-decoration: none !important;
    }

    .bg-blue { background-color: #2563eb; }
    .bg-yellow { background-color: #facc15; color: #111; }
    .bg-red { background-color: #dc2626; }
    .btn-acao:hover { transform: scale(1.1); opacity: 0.9; }


    /* === TOOLBAR === */
    .toolbar-glass {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(12px);
        border-radius: 16px;
        padding: 12px 18px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        margin-bottom: 24px;
    }

    .left-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-glass {
        border: none; outline: none; border-radius: 10px;
        padding: 8px 14px; font-size: 14px; font-weight: 500;
        color: #fff; display: flex; align-items: center;
        gap: 6px; cursor: pointer; text-decoration: none;
        transition: 0.2s ease;
    }

    .btn-glass:hover { transform: scale(1.04); opacity: 0.9; }
    .btn-green { background: #16a34a; }
    .btn-blue { background: #2563eb; }
    .btn-gray { background: #6b7280; }
    .btn-orange { background: #f97316; } 

    .search-box input {
        padding: 8px 12px; border-radius: 10px;
        border: 1px solid #cbd5e1; outline: none;
        transition: all 0.2s; width: 240px;
    }
    .search-box input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }
    
    .empty-message {
        text-align: center;
        padding: 50px;
        color: #64748b;
    }
    .empty-message i { font-size: 4rem; }
    .empty-message p { font-size: 1.2rem; font-weight: 500; }

    @media(max-width:700px) {
        .toolbar-glass { justify-content: center; }
        .left-actions { justify-content: center; }
        .search-box { width: 100%; }
        .search-box input { width: 100%; }
        .btn-glass span { display: none; } 
        
        .list-item { align-items: flex-start; flex-direction: column; }
        .info { flex-direction: column; gap: 8px; align-items: flex-start; }
        .actions { padding-left: 0; }
        .block.uh, .block.nome, .block.login, .block.senha, 
        .block.data, .block.status, .block.origem {
            flex-basis: auto;
            min-width: 0;
        }
    }

 /* ===== MENU DROPDOWN (Ações) ===== */
    .menu-container { position: relative; }
    .menu-btn {
        background: none; border: none; cursor: pointer;
        padding: 6px 8px; border-radius: 6px;
        font-size: 18px; color: #1e293b;
    }
    .menu-btn:hover { background: rgba(0, 0, 0, 0.05); }

    .menu-dropdown {
        display: none; position: absolute; right: 0;
        top: 26px; background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        z-index: 99; /* Alto z-index para o menu */
        min-width: 120px;
    }
    
    /* ✅ MUDANÇA: Eleva o list-item PAI quando o menu está ativo */
    .list-item.item-menu-active {
        z-index: 100;
    }

    .menu-container.active .menu-dropdown { 
        display: block; 
    }

    .menu-dropdown a,
    .menu-dropdown button {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 12px; border: none; background: none;
        font-size: 14px; color: #1e293b; width: 100%;
        text-decoration: none; text-align: left; cursor: pointer;
    }
    .menu-dropdown a:hover,
    .menu-dropdown button:hover {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }