/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

/* CONTAINER */
.container {
    width: 90%;
    margin: 20px auto;
}

/* TITULOS */
h1, h2, h3 {
    margin-bottom: 15px;
}

/* TOPBAR */
.topbar {
    background: #020617;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.menu a:hover {
    color: #38bdf8;
}

/* USER AREA */
.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user {
    color: #38bdf8;
    font-weight: bold;
}

.logout {
    color: #f87171;
    text-decoration: none;
}

/* CARDS */
.card {
    background: #1e293b;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* INPUTS */
input, select {
    padding: 8px;
    border-radius: 8px;
    border: none;
    margin: 5px;
}

/* BOTÕES */
button {
    background: #38bdf8;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

button:hover {
    background: #0ea5e9;
}

/* BOTÃO DANGER (Baseado no seu padrão) */
.btn-danger {
    background: #ff4d4d;
    border: none;
    padding: 10px 15px;
    border-radius: 8px; /* Mantendo os 8px que você definiu */
    cursor: pointer;
    color: #fff !important;      /* Força a cor branca */
    font-weight: bold;
    text-decoration: none;       /* REMOVE o sublinhado de link */
    display: inline-block;       /* PERMITE que o padding funcione corretamente */
    font-family: sans-serif;     /* Garante a mesma fonte */
    line-height: normal;         /* Alinha o texto ao centro */
}

.btn-danger:hover {
    background: #cc0000;
    color: #fff !important;
}

/* TABELA */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #334155;
}

th {
    text-align: left;
}

/* LINKS */
a {
    color: #f87171;
    text-decoration: none;
}

/* PAGINAÇÃO */
.pagination {
    margin-top: 15px;
}

.pagination a {
    margin: 5px;
    padding: 8px 12px;
    background: #334155;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
}

.pagination a.active {
    background: #38bdf8;
}

/* BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.user-badge {
    background: #22c55e;
}

.system-badge {
    background: #64748b;
}

.ip-badge {
    background: #0ea5e9;
}

/* DASHBOARD GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-link {
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.card-link:hover {
    transform: translateY(-5px);
    background: #334155;
}

/* LOGIN */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.erro {
    color: #f87171;
    text-align: center;
    margin-bottom: 10px;
}