﻿/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* Estrutura principal */
.app {
    display: flex;
    height: 100vh;
    background-color: #f5f6fa;
}

/* Ícone SVG - branco por padrão */
.nav-link .menu-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Torna o SVG branco */
    transition: filter 0.3s;
}

/* Ícone SVG - preto quando ativo */
.nav-link.active .menu-icon {
    filter: brightness(0); /* Torna o SVG preto */
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #1c1e2e;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.menu {
    list-style: none;
    flex-grow: 1;
}

    .menu li {
        margin: 0.8rem 0;
    }

    .menu a {
        color: #d1d1e0;
        text-decoration: none;
        font-size: 0.95rem;
        display: block;
        padding: 0.5rem 0.8rem;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
    }

        .menu a:hover {
            background-color: #2a2c3d;
            color: #fff;
        }

/* Conteúdo */
.content {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.content-header h1 {
     font-size: 1.5rem;
     color: #333;
}

.content-body {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #1c1e2e;
    color: white;
}

th, td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

tbody tr:hover {
    background-color: #f2f2f2;
}

.dt-length, .dt-search {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Estilo atualização automática e switch */

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-connected {
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.status-disconnected {
    background-color: #dc3545;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.update-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Personalização do switch para cor dark (mesma do botão) */
.form-check-input {
    background-color: #e9ecef;
    border-color: #ced4da;
}

    .form-check-input:checked {
        background-color: #212529;
        border-color: #212529;
    }

    .form-check-input:focus {
        border-color: #6c757d;
        box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.25);
    }

.cor-fundo {
    background-color: #F5F5F5;
}
/* Responsividade */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .menu {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .content {
        padding: 1rem;
    }
}
