        /* --- Reset e Variáveis --- */
        :root {
            --primary: #ff6b4a;
            --secondary: #0088cc;
            --bg-dark: #1a1a1e;
            --card-bg: #25252b;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        body {
            background-color: var(--bg-dark);
            color: white;
            font-family: 'Segoe UI', Tahoma, sans-serif;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
            /* Evita scroll por causa do efeito de luz */
            position: relative;
        }

        /* --- Efeito de Luz no Background --- */
        body::before {
            content: "";
            position: absolute;
            top: var(--y, 50%);
            left: var(--x, 50%);
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 107, 74, 0.08) 0%, rgba(26, 26, 30, 0) 70%);
            transform: translate(-50%, -50%);
            pointer-events: none;
            /* Não atrapalha os cliques */
            z-index: 0;
            transition: top 0.1s ease-out, left 0.1s ease-out;
        }

        .container {
            max-width: 900px;
            width: 100%;
            position: relative;
            z-index: 1;
            animation: fadeIn 0.8s ease-out;
        }

        /* --- Navegação Atualizada --- */
        nav {
            text-align: right;
            margin-bottom: 30px;
            /* Aumentei um pouco o espaço */
            position: relative;
            z-index: 10;
        }

        .nav-link {
            margin-left: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            text-decoration: none;
            /* Remove o sublinhado azul padrão */
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #888;
            /* Cor cinza discreta */
            display: inline-block;
        }

        /* Efeito ao passar o mouse */
        .nav-link:hover {
            color: var(--primary);
            /* Fica Laranja */
            transform: translateY(-3px);
            /* Sobe levemente */
            text-shadow: 0 0 10px rgba(255, 107, 74, 0.5);
            /* Brilho neon sutil */
        }

        /* Estilo para identificar em qual página o usuário está (opcional) */
        .nav-link.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
            padding-bottom: 4px;
        }

        /* --- Título --- */
        h1 {
            color: var(--primary);
            text-transform: uppercase;
            font-size: 2.5rem;
            letter-spacing: 3px;
            text-align: center;
            text-shadow: 0 0 20px rgba(255, 107, 74, 0.2);
        }

        /* --- Card --- */
        .card-container {
            background-color: var(--card-bg);
            border: 1px solid #3d3d45;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            /* Efeito de vidro sutil */
            transition: border-color 0.4s;
        }

        .card-container:hover {
            border-color: rgba(255, 107, 74, 0.4);
        }

        /* --- Botão Reiniciar --- */
        .reset-bar {
            width: 100%;
            background: linear-gradient(90deg, #5c3c43, #7a4d56);
            color: white;
            padding: 12px;
            text-transform: uppercase;
            font-weight: bold;
            border: none;
            border-radius: 6px;
            margin-bottom: 30px;
            cursor: pointer;
            transition: 0.3s;
        }

        .reset-bar:hover {
            filter: brightness(1.2);
            letter-spacing: 1px;
            box-shadow: 0 0 15px rgba(122, 77, 86, 0.4);
        }

        /* --- Formulário --- */
        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-group {
            flex: 1;
            text-align: left;
        }

        .form-group label {
            display: block;
            color: var(--primary);
            font-weight: bold;
            margin-bottom: 8px;
            text-transform: uppercase;
            font-size: 0.75rem;
        }

        select {
            width: 100%;
            padding: 14px;
            background-color: rgba(26, 26, 30, 0.8);
            border: 2px solid #3d3d45;
            border-radius: 8px;
            color: white;
            outline: none;
            transition: 0.3s;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b4a' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 15px;
        }

        select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(255, 107, 74, 0.1);
        }

        /* --- Botão Associar --- */
        .btn-associar {
            width: 100%;
            background: linear-gradient(45deg, var(--secondary), #00aaff);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 8px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
        }

        .btn-associar:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
        }

        @media (max-width: 600px) {
            .form-row {
                flex-direction: column;
            }
        }

        /* --- Estilos da Tela de Grupos (Prefixados para não conflitar) --- */

        .input-custom {
            width: 95%;
            padding: 12px;
            background-color: rgba(26, 26, 30, 0.8);
            border: 2px solid #3d3d45;
            border-radius: 8px;
            color: white;
            outline: none;
            transition: 0.3s;
        }

        .input-custom:focus {
            border-color: #ff6b4a;
        }

        .btn-criar {
            background-color: #0088cc;
            color: white;
            border: none;
            padding: 0 90px;
            border-radius: 8px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
            height: 45px;
            align-self: flex-end;
            /* Alinha com o input */
        }

        .btn-criar:hover {
            background-color: #00aaff;
            transform: scale(1.05);
        }

        .group-divider {
            border: 0;
            border-top: 1px solid #3d3d45;
            margin: 30px 0;
        }

        .group-list-container {
            width: 100%;
            overflow-x: auto;
        }

        .group-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        .group-table th {
            color: #ff6b4a;
            text-transform: uppercase;
            font-size: 0.8rem;
            padding: 12px;
            border-bottom: 2px solid #3d3d45;
        }

        .group-table td {
            padding: 15px 12px;
            border-bottom: 1px solid #2d2d35;
            font-size: 0.95rem;
        }

        .group-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        /* Badges de Dispositivos */
        .device-badge {
            background-color: #3d3d45;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.75rem;
            margin-right: 5px;
            color: #ccc;
        }

        /* Botões de Ação */
        .group-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: center;
        }

        .btn-action {
            width: 38px;
            /* Largura fixa para ficar simétrico */
            height: 38px;
            /* Altura fixa */
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            /* Ou 50% para ficar redondo */
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            /* Aumenta um pouco o ícone */
            background-color: transparent;
        }

        .btn-action.edit {
            background-color: transparent;
            border: 1px solid #0088cc;
            color: #0088cc;
        }

        .btn-action.edit:hover {
            background-color: #0088cc;
            color: white;
        }

        .btn-action.delete {
            background-color: transparent;
            border: 1px solid #ff4a4a;
            color: #ff4a4a;
        }

        .btn-action.delete:hover {
            background-color: #ff4a4a;
            color: white;
        }

        /* --- Customização do Modal para o Tema Dark --- */

.custom-modal-dark {
    background-color: var(--card-bg); /* Usa a cor do seu card */
    border: 1px solid #3d3d45;
    border-radius: 12px;
    color: white;
}

.modal-header, .modal-footer {
    border: none; /* Remove as linhas padrão do bootstrap */
    padding: 20px 30px;
}

.modal-title {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Botões de Ação Circulares (Check e X) */
.btn-modal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-modal.confirm {
    border-color: #2ecc71;
    color: #2ecc71;
}

.btn-modal.confirm:hover {
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.btn-modal.cancel {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-modal.cancel:hover {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* Garante que o input dentro do modal siga seu estilo */
.modal-body .input-custom {
    width: 100% !important;
}
        

/* Estilo específico para a confirmação de exclusão no modal */
.btn-modal.confirm-delete {
    border-color: #ff4a4a;
    color: #ff4a4a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-modal.confirm-delete:hover {
    background-color: #ff4a4a;
    color: white;
    box-shadow: 0 0 15px rgba(255, 74, 74, 0.4);
}

/* Ajuste de margem para o texto do modal */
.modal-body p {
    margin-bottom: 10px;
    line-height: 1.5;
}

    /* Cria a área de scroll */
    .group-list-container {
        max-height: 400px; /* Ajuste essa altura conforme achar melhor */
        overflow-y: auto;  /* Ativa o scroll vertical automático */
        border-radius: 8px; /* Mantém as bordas arredondadas (opcional) */
    }

    /* Trava o cabeçalho no topo enquanto rola a lista */
    .group-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #1e2025; /* Use a cor exata de fundo que você está usando nas tabelas */
    }

    /* Personalização opcional da barra de rolagem para combinar com o tema dark */
    .group-list-container::-webkit-scrollbar {
        width: 8px;
    }
    .group-list-container::-webkit-scrollbar-track {
        background: #1e2025;
    }
    .group-list-container::-webkit-scrollbar-thumb {
        background: #0088ff; /* Cor azul do seu botão */
        border-radius: 4px;
    }
