* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #0f1115; color: #e6e6e6; margin: 0; }
.topbar { background: #171a21; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a2e37; }
.topbar h1 { font-size: 18px; margin: 0; color: #fff; }
.topbar a { color: #8ab4f8; text-decoration: none; font-size: 14px; }
.container { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
.stats-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card { background: #171a21; border: 1px solid #2a2e37; border-radius: 8px; padding: 14px 18px; min-width: 140px; }
.stat-card .num { font-size: 24px; font-weight: 700; color: #fff; }
.stat-card .label { font-size: 12px; color: #9aa0aa; text-transform: uppercase; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; background: #171a21; padding: 12px; border-radius: 8px; border: 1px solid #2a2e37; }
.filters select, .filters input { background: #0f1115; color: #e6e6e6; border: 1px solid #2a2e37; border-radius: 6px; padding: 7px 10px; font-size: 13px; }
.filters button { background: #3b6fe0; color: white; border: none; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #171a21; border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #2a2e37; font-size: 13px; }
th { background: #1d2129; color: #9aa0aa; text-transform: uppercase; font-size: 11px; }
tr:hover { background: #1a1e26; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-humano { background: #1e4a2e; color: #6fd894; }
.badge-ia { background: #3a3020; color: #d8b56f; }
.badge-newsletter { background: #2a2e37; color: #9aa0aa; }
.badge-spam { background: #4a1e1e; color: #d86f6f; }
.badge-sin_clasificar { background: #2a2e37; color: #9aa0aa; }
.imp-alta { color: #ff6b6b; font-weight: 700; }
.imp-media { color: #ffd166; }
.imp-baja { color: #9aa0aa; }
.phish { background: #4a1e1e !important; }
.subject-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagination { margin-top: 16px; display: flex; gap: 8px; }
.pagination a { color: #8ab4f8; text-decoration: none; padding: 6px 12px; border: 1px solid #2a2e37; border-radius: 6px; }
.login-box { max-width: 340px; margin: 100px auto; background: #171a21; padding: 30px; border-radius: 10px; border: 1px solid #2a2e37; }
.login-box input { width: 100%; padding: 10px; margin-bottom: 12px; background: #0f1115; border: 1px solid #2a2e37; color: #e6e6e6; border-radius: 6px; }
.login-box button { width: 100%; padding: 10px; background: #3b6fe0; color: white; border: none; border-radius: 6px; cursor: pointer; }
.error { color: #ff6b6b; font-size: 13px; margin-bottom: 10px; }
.actions a { color: #8ab4f8; margin-right: 8px; font-size: 12px; text-decoration: none; }
.nav-tabs { display:flex; gap: 4px; margin-bottom: 16px; }
.nav-tabs a { padding: 8px 16px; color: #9aa0aa; text-decoration: none; border-radius: 6px 6px 0 0; font-size: 13px; }
.nav-tabs a.active { background: #171a21; color: #fff; border: 1px solid #2a2e37; border-bottom: none; }
