/* Plats Telecom 2026 - Dark/Neutro & Emerald (Compacto) */

:root {
    /* Tema Dark + Verde Técnico (Hacker/System Green) */
    --bg-body: #0a0a0a;       /* Preto absoluto para contraste */
    --bg-sidebar: #171717;    /* Cinza chumbo muito escuro */
    --bg-card: #171717;       /* Igual a sidebar */
    
    --primary: #059669;       /* Verde Emerald Escuro (Principal) */
    --primary-light: #10b981; /* Verde Emerald Claro (Hover/Destaques) */
    
    /* Variável mantida para compatibilidade com seus Scripts JS */
    --accent-green: #10b981;  
    
    --text-main: #e5e5e5;     /* Branco não estourado */
    --text-muted: #737373;    /* Cinza escuro para textos secundários */
    --border-color: #262626;  /* Bordas quase invisíveis */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    font-size: 14px; /* Fonte base compacta */
    overflow: hidden;
}

/* Sidebar Compacta */
.sidebar {
    width: 240px; /* Reduzido de 260px */
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 1.3rem !important;
    margin-bottom: 25px !important;
    letter-spacing: 2px;
    color: var(--primary-light) !important;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.menu-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    display: block;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.menu-item.active {
    background-color: rgba(5, 150, 105, 0.1); /* Fundo verde muito sutil */
    color: var(--primary-light);
    border-left: 2px solid var(--primary);
}

/* Conteúdo Principal */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

h1 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Cards Minimalistas */
.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 20px;
    border: 1px solid var(--border-color);
    /* box-shadow removido para ficar flat/limpo */
}

.card small {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.card h2 {
    font-size: 1.3rem; /* Números menores e elegantes */
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--text-main);
}

/* Formulários e Inputs */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

input[type="text"], 
input[type="password"], 
input[type="number"], 
select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--bg-body); /* Fundo mais escuro que o card */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    font-size: 0.9rem;
    margin-bottom: 0; /* Controlado pelo label acima */
}

input:focus, select:focus {
    border-color: var(--primary-light);
}

/* Botões */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    opacity: 0.9;
    transform: none; /* Removemos o pulo do botão antigo */
}

/* Tabelas Limpas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    text-align: left;
    padding: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

td {
    padding: 12px 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255,255,255,0.01);
}

/* Utilitários */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body); 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444; 
}

/* Responsividade */
@media (max-width: 900px) {
    body { flex-direction: column; overflow: auto; }
    .sidebar { width: 100%; padding: 15px; }
    .content { padding: 15px; }
    div[style*="grid-template-columns"] { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    table { display: block; overflow-x: auto; }
}