/* ===== BACKGROUND GERAL ===== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d0d0d url('../assets/bg.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
}

/* ===== CONTAINERS ===== */
.panel-container, .setup-container, .login-container {
    max-width: 960px;
    margin: 40px auto;
    background: rgba(20,20,20,0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
    transition: transform 0.3s;
}

/* ===== TITULOS ===== */
h1, h2, h3 {
    margin: 15px 0;
    color: #00f5ff;
    text-shadow: 0 0 8px rgba(0,255,255,0.6);
}

/* ===== FORMULARIOS ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input, form select, form button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box; /* evita estourar container */
}

/* Inputs */
form input, form select {
    border: 1px solid #00f5ff;
    background: #111;
    color: #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus, form select:focus {
    outline: none;
    border-color: #9d00ff;
    box-shadow: 0 0 10px #9d00ff;
}

/* Botão */
form button {
    border: none;
    background: linear-gradient(90deg, #00f5ff, #9d00ff);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px #00f5ff;
}

/* ===== BOTOES GERAIS ===== */
a.btn, button.btn {
    padding: 10px 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff00ff, #00f5ff);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
a.btn:hover, button.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px #ff00ff;
}

/* ===== TABELAS ===== */
.table-wrap { overflow-x:auto; margin-top: 10px; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #111;
    box-shadow: 0 0 10px rgba(0,255,255,0.1);
}
table th, table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}
table th {
    background: linear-gradient(90deg, #00f5ff, #9d00ff);
    color: #fff;
}
table tr:nth-child(even) {
    background: #1a1a1a;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #9d00ff;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px #ff00ff;
}

/* ===== MENSAGENS ===== */
.flash-ok {
    background: rgba(0,255,0,0.15);
    color: #00ff88;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 0 8px #00ff88;
}
.flash-err {
    background: rgba(255,0,0,0.15);
    color: #ff5555;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 0 8px #ff5555;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    width: 90%;
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    transition: transform 0.3s;
}
.login-container:hover {
    transform: scale(1.02);
}
.login-container input[type=text],
.login-container input[type=password] {
    background: #111;
    border: 1px solid #00f5ff;
    color: #e0e0e0;
}
.login-container button {
    background: linear-gradient(90deg, #00f5ff, #9d00ff);
}

/* ===== TOPBAR ===== */
.topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.topbar img { height: 60px; }
.topbar h2 {
    margin: 0;
    color: #00f5ff;
    text-shadow: 0 0 8px rgba(0,255,255,0.6);
}

/* ===== DETALHES OCULTOS ===== */
.details {
    display: none;
    background: #1e1e1e;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    margin-top: 6px;
    text-align: left;
}

/* ===== AJUSTES RESPONSIVOS ===== */
@media (max-width: 768px) {
    .panel-container, .setup-container, .login-container {
        margin: 20px auto;
        padding: 15px;
        border-radius: 10px;
    }

    h1, h2, h3 {
        font-size: 1.4em;
    }

    form input, form select, form button {
        font-size: 13px;
        padding: 8px;
    }

    .topbar img { 
        height: 48px; 
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 30px auto;
        padding: 15px;
    }

    h1, h2, h3 {
        font-size: 1.2em;
    }

    form button {
        font-size: 14px;
        padding: 10px;
    }

    .topbar {
        gap: 8px;
    }
}