/* assets/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00aaff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00aaff;
}

.nav-links a.active {
    color: #00aaff;
    font-weight: bold;
}

main {
    padding: 3rem 0;
}

.card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

h1, h2, h3 {
    color: #00aaff;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #00aaff;
}

.btn {
    background: #00aaff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #0088cc;
}

.error {
    background: #440000;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #660000;
}

.under-construction {
    text-align: center;
    padding: 4rem 2rem;
    color: #777;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

.badge { padding:4px 10px; border-radius:20px; font-size:.8rem; font-weight:600; }
.critical-max { background:#800080; color:#fff; }
.critical-critic { background:#ff0000; color:#fff; }
.critical-high { background:#ff4400; color:#fff; }
.critical-med { background:#ff8800; color:#fff; }
.critical-low { background:#ffcc00; color:#000; }
.normal { background:#00aa00; color:#fff; }

/* === STATS TABLE === */
.stats-table th { background:#1a1a1a; color:#00aaff; padding:12px 10px; font-size:.9rem; }
.stats-table td { padding:10px; text-align:center; font-weight:500; }
.stats-table .total-row { background:#2a2a2a; font-weight:bold; }
.stats-table .total-row td { color:#00aaff; }


.btn-add-top {
    margin-left:10px;
    width:32px;height:32px;
    background:#00ff44;color:white;
    border:none;border-radius:50%;
    font-size:20px;font-weight:bold;
    cursor:pointer;
}
.btn-add-top:hover { background:#00cc33; }

.btn-delete {
    background:transparent;
    color:#fff;
    border:2px solid #ff4444;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}
.btn-delete:hover { background:#ff4444;color:#000; }





/* === BOUTONS BL / WL RAPIDES (style THOR 2025) === */
.btn-blwl {
    padding: 7px 12px;
    margin: 0 5px;
    border: 2px solid;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 44px;
    text-align: center;
}

/* Blacklist */
.btn-bl {
    background: transparent;
    color: #fff;
    border-color: #ff0044;
    box-shadow: 0 0 8px rgba(255, 0, 68, 0.4);
}
.btn-bl:hover {
    background: #ff0044;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.8);
    transform: scale(1.05);
}

/* Whitelist */
.btn-wl {
    background: transparent;
    color: #fff;
    border-color: #00ff44;
    box-shadow: 0 0 8px rgba(0, 255, 68, 0.4);
}
.btn-wl:hover {
    background: #00ff44;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 68, 0.8);
    transform: scale(1.05);
}

/* Désactivé */
.btn-blwl.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none !important;
}
.btn-blwl.disabled:hover {
    transform: none;
    background: transparent !important;
    color: #fff !important;
}



.btn-add-top {
    margin-left:10px;
    width:32px;height:32px;
    background:#00ff44;color:white;
    border:none;border-radius:50%;
    font-size:20px;font-weight:bold;
    cursor:pointer;
}
.btn-add-top:hover { background:#00cc33; }

.btn-delete {
    background:transparent;
    color:#fff;
    border:2px solid #ff4444;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}
.btn-delete:hover { background:#ff4444;color:#000; }