body {
    background: #f7fafc;
    color: #222;
    font-family: 'Segoe UI', 'Arial Rounded MT Bold', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Segoe UI', 'Arial Rounded MT Bold', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.4em;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin: 2em auto;
    padding: 2em 2.5em;
    max-width: 700px;
    border: 1px solid #e6e6e6;
}

button, .btn {
    background: linear-gradient(90deg, #8fd694 0%, #4dc0b5 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.8em 2.2em;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(77,192,181,0.07);
    margin: 1em 0;
    transition: background 0.2s, transform 0.2s;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg, #4dc0b5 0%, #8fd694 100%);
    transform: translateY(-2px) scale(1.03);
}

ul {
    list-style: none;
    padding: 0;
}
li {
    background: #f4f9fd;
    margin-bottom: 1.2em;
    border-radius: 14px;
    padding: 1.2em 1.5em;
    box-shadow: 0 1px 5px rgba(77,192,181,0.06);
    border: 1px solid #e3f5f1;
    font-size: 1.08em;
    position: relative;
}

.malicious-url {
    color: #f44;
    font-weight: bold;
    font-family: 'Consolas', 'Menlo', monospace;
    background: #fff3f3;
    border-radius: 6px;
    padding: 0.1em 0.4em;
}

.status-pending { color: #ffb300; font-weight: bold; }
.status-blocked { color: #4dc0b5; font-weight: bold; }
.status-accessible { color: #f44; font-weight: bold; }
.status-timeout { color: #888; font-weight: bold; }

.country-info {
    font-weight: bold;
    color: #4dc0b5;
}

a {
    color: #4dc0b5;
    text-decoration: underline dotted;
    transition: color 0.15s;
}
a:hover {
    color: #2a9083;
}

::-webkit-scrollbar {
    width: 9px;
    background: #f7fafc;
}
::-webkit-scrollbar-thumb {
    background: #e3f5f1;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .card {
        padding: 1em 0.4em;
    }
    li {
        font-size: 0.98em;
        padding: 0.8em 0.7em;
    }
    button, .btn {
        padding: 0.7em 1.2em;
        font-size: 1em;
    }
.container {
    background-color: #1E1E1E; /* Fond de conteneur légèrement plus clair */
    max-width: 900px;
    margin: 20px auto;
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2); /* Ombre portée verte subtile */
    border: 1px solid #004D00; /* Bordure verte foncée */
}

h1 {
    color: #00FF00; /* Vert vif pour le titre principal */
    text-align: center;
    border-bottom: 2px solid #00AA00; /* Ligne de séparation verte */
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2 {
    color: #33FF33; /* Vert un peu moins vif pour les sous-titres */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #005500;
    padding-bottom: 8px;
}

.explanations {
    margin-bottom: 30px;
    font-size: 1.05em;
}

.explanations p {
    margin-bottom: 15px;
}

.explanations ul {
    list-style-type: none; /* Supprime les puces par défaut */
    padding-left: 0;
}

.explanations li {
    background-color: #252525; /* Fond légèrement différent pour les items de liste */
    margin-bottom: 10px;
    padding: 10px 15px;
    border-left: 4px solid #00FF00; /* Accent vert à gauche */
    border-radius: 4px;
}

.explanations strong {
    color: #55FF55; /* Vert pour le texte en gras */
}

.explanations em {
    color: #CCCCCC; /* Gris plus clair pour le texte en italique */
    font-style: normal; /* Peut être ajusté si vous préférez l'italique standard */
}

a {
    color: #66FF66; /* Vert clair pour les liens */
    text-decoration: none;
}

a:hover, a:focus {
    color: #99FF99; /* Vert plus lumineux au survol */
    text-decoration: underline;
}

button#startTest {
    background-color: #00A000; /* Vert foncé pour le bouton */
    color: #FFFFFF; /* Texte blanc */
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 30px auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button#startTest:hover, button#startTest:focus {
    background-color: #00C000; /* Vert plus clair au survol */
    transform: translateY(-2px); /* Léger effet de soulèvement */
}

#top-message-area,
#result {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #005000; /* Bordure verte foncée */
    border-radius: 5px;
    background-color: #1A1A1A; /* Fond sombre pour les messages/résultats */
}

#top-message-area p, #top-message-area div {
    color: #00FF00; /* Messages importants en vert */
    font-weight: bold;
}

.payload-details {
    border: 1px solid #006600; /* Bordure verte pour les détails de payload */
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #222222; /* Fond un peu plus clair pour les détails */
}

.payload-details h3 {
    color: #44FF44; /* Vert pour les titres de section URL */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.payload-details ul {
    list-style-type: none;
    padding-left: 0;
}

.payload-details li {
    margin-bottom: 8px;
    padding-left: 10px; /* Petit retrait pour les items */
}

.payload-details strong {
    color: #77FF77; /* Vert pour les labels en gras dans les détails */
}

/* Style pour les sous-listes (ex: détails VirusTotal) */
.payload-details ul ul {
    margin-top: 5px;
    padding-left: 20px; /* Indentation pour les sous-listes */
}

.payload-details ul ul li {
    font-size: 0.95em;
}

.score-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a30;
    border: 1px solid #444;
    border-radius: 5px;
}

.score-result h2 {
    color: #ffb800;
}

/* Nouveaux styles pour la barre de score */
.score-bar-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #2c2c2c; /* Fond légèrement différent pour le conteneur de la barre */
    border-radius: 4px;
}

.score-bar-label {
    font-size: 0.95em;
    color: #000000;
    margin-bottom: 8px;
    text-align: center;
}

.score-bar {
    display: flex; /* Utilise flexbox pour aligner les segments de la barre */
    height: 25px; /* Hauteur de la barre */
    border-radius: 4px;
    overflow: hidden; /* Pour que les coins arrondis s'appliquent aux segments internes */
    border: 1px solid #444;
}

.score-bar-danger {
    background-color: #FF4136; /* Rouge pour la partie "danger" */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    transition: width 0.5s ease-in-out; /* Animation douce pour la largeur */
}

.score-bar-safe {
    background-color: #2ECC40; /* Vert pour la partie "sûre" */
    color: white;
    display: flex;

/* Pour afficher le pourcentage à l'intérieur des barres si elles sont assez larges */
.score-bar-danger::after {
    content: attr(title); /* Utilise l'attribut title pour le texte, mais peut être caché si trop petit */
}

.score-bar-safe::after {
    content: attr(title);
}