
/* ========================================
   TECNOTRONIC - ESTILOS GLOBAIS
   ======================================== */


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-shadow: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    /* Background específico do corpo */
    background-image: url("/includes/imagens/fundo_corpo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Overlay de névoa/nuvem sobre o fundo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(15, 23, 42, 0.7) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(15, 23, 42, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   ESTRUTURA E LAYOUT PRINCIPAL
   ======================================== */
#conteudo-principal {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 10px;
    position: relative;
    z-index: 5;
    min-height: 85vh;
}

/* ========================================
   PAINEL PRINCIPAL (Glassmorphism)
   ======================================== */
.glass-panel {
    
  

    position: relative; /* Define o posicionamento relativo para o elemento */
    z-index: 10; /* Garante que este elemento fique acima de outros com menor índice */
    
    background: rgba(255, 255, 255, 0.80); /* Fundo branco com 50% opacidade (20% transparente) */
    backdrop-filter: blur(5px); /* Aplica um desfoque no fundo atrás do elemento */
    -webkit-backdrop-filter: blur(15px); /* Compatibilidade com navegadores que usam prefixo WebKit */

    border: 1px solid rgba(255, 255, 255, 0.7); /* Borda branca com 50% de opacidade */
    border-radius: 16px; /* Arredonda os cantos do elemento */
    
    padding: 10px; /* Espaçamento interno em todos os lados */
    width: 100%; /* Largura do elemento em relação ao contêiner pai */
    max-width: 2000px; /* Largura máxima do elemento */
    
    color: #334155; /* Define a cor do texto dentro do elemento */
    margin-bottom: 10px; /* Espaçamento abaixo do elemento */
    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), /* Sombra suave abaixo do elemento */
                0 40px 80px rgba(0, 0, 0, 0.5); /* Sombra mais intensa para efeito de profundidade */
    
    animation: fadeInUp 2s ease-out; /* Animação de entrada para o elemento */
}

/* ========================================
   TIPOGRAFIA
   ======================================== */
.glass-panel h2 {
    text-align: center;
    font-size: 2.2rem;
    margin: 0 0 0px 0;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #1e293b;
}

.glass-panel p {
    text-align: left;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #334155;
}

.glass-panel label {
    display: block;
    margin: 0px 0 0px 0;
    color: #1e293b;
    font-weight: 600;
}

strong {
    color: #334155;
}

/* ========================================
   CABEÇALHO (HEADER)
   ======================================== */
header {
    background-color: #2C3E50;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    width: 40px;
    height: auto;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
}

/* Menu Desktop */
.menu-desktop {
    display: flex;
    gap: 5px;
}

.menu-desktop a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-desktop a:hover {
    color: #e38600; /*   #00d4ff  */
}

/* ========================================
   MENU MOBILE
   ======================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
}

.menu-mobile {
    display: none;
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 20px;
    z-index: 100;
    border-radius: 0 0 0 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.menu-mobile.active {
    display: flex;
}

.menu-mobile a {
    color: white;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s ease;
}

.menu-mobile a:hover {
    color: #e38600;
}

.menu-mobile a:last-child {
    border-bottom: none;
}

/* ========================================
   TABELAS
   ======================================== */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.tec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tec-table th {
    text-align: left;
    padding: 15px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.tec-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-add {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.btn-logs {
    background: #3b82f6;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.btn-delete {
    background: #e11d48;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.btn-add:hover,
.btn-logs:hover,
.btn-delete:hover {
    filter: brightness(1.1);
}

/* ========================================
   BADGES DE NÍVEL
   ======================================== */
.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.nivel-admin {
    background: #fee2e2;
    color: #b91c1c;
}

.nivel-moderador {
    background: #fef3c7;
    color: #b45309;
}

.nivel-usuario {
    background: #e0f2fe;
    color: #0369a1;
}

/* ========================================
   INPUTS E FORMULÁRIOS
   ======================================== */
.input-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    padding: 12px 15px;
    border-radius: 8px;
    color: #1e293b;
    outline: none;
    transition: border 0.3s ease;
}

.input-search:focus {
    border-color: #3b82f6;
}

#form-add {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

/* ========================================
   RODAPÉ (FOOTER)
   ======================================== */
footer {
    background-color: #2C3E50;
    color: #ffffff;
    padding: 25px 0;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

footer .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* ========================================
   NAVEGAÇÃO COM BOTÕES
   ======================================== */
.nav-test-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.btn-nav {
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-nav:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .glass-panel {
        padding: 5px 5px;
        width: 100%;
    }

    .glass-panel h2 {
        font-size: 1.6rem;
    }

    .glass-panel p {
        font-size: 1rem;
    }

    #conteudo-principal {
        padding: 20px 10px;
    }

    .nav-test-buttons {
        justify-content: center;
    }

    .btn-nav {
        font-size: 10px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .glass-panel h2 {
        font-size: 1.4rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}