body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f1f3f4;
    color: #202124;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}
.container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.302), 0 2px 6px 2px rgba(60,64,67,0.149);
    padding: 24px;
    max-width: 600px;
    width: 100%;
}
header h1 {
    font-size: 22px;
    color: #3c4043;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 400;
}
.info-section {
    margin-bottom: 24px;
}
.info-section h2 {
    font-size: 16px;
    color: #1a73e8; /* Google Blue */
    border-bottom: 1px solid #dadce0;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 500;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changé de flex-start pour un meilleur alignement vertical */
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}
.info-section .info-item:not(:last-child) {
    border-bottom: 1px solid #e8eaed;
}
.info-item .label {
    color: #5f6368;
    font-weight: 500;
    margin-right: 16px;
    flex-shrink: 0;
}
.info-item .value {
    color: #202124;
    text-align: right; /* S'assure que le texte de l'IP est aligné à droite dans son conteneur */
    word-break: break-all;
    margin-right: 8px; /* Ajoute un petit espace entre l'IP et le bouton de copie */
}
.info-item .value img {
    margin-left: 4px;
    vertical-align: text-bottom;
}

.value-action-group {
    display: flex; /* Aligne l'IP et le bouton sur la même ligne */
    align-items: center; /* Centre verticalement l'IP et le bouton */
}

.value .loader {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-left: 5px;
    vertical-align: text-bottom;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    vertical-align: middle;
    color: inherit; /* Inherit color from parent for better theme compatibility */
}
.copy-btn svg {
    pointer-events: none; /* Assure que le clic est sur le bouton */
    display: block; /* Prevents extra space below inline SVG */
}
.copy-btn:hover {
    opacity: 0.7;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dadce0;
    font-size: 12px;
    color: #5f6368;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #202124; /* Dark background */
        color: #e8eaed; /* Light text */
    }
    .container {
        background-color: #303134; /* Slightly lighter dark for container */
        box-shadow: 0 1px 2px 0 rgba(0,0,0,0.302), 0 2px 6px 2px rgba(0,0,0,0.149); /* Adjusted shadow for dark */
    }
    header h1 {
        color: #e8eaed; /* Light text for header */
    }
    .info-section h2 {
        color: #8ab4f8; /* Lighter blue for dark mode */
        border-bottom: 1px solid #5f6368; /* Darker border */
    }
    .info-section .info-item:not(:last-child) {
        border-bottom: 1px solid #5f6368; /* Darker border for items */
    }
    .info-item .label {
        color: #bdc1c6; /* Lighter grey for labels */
    }
    .info-item .value {
        color: #e8eaed; /* Light text for values */
        /* margin-right: 8px; est déjà défini plus haut et s'applique aussi ici */
    }
    .value .loader {
        border: 2px solid currentColor; /* Loader will inherit the light text color */
        border-right-color: transparent;
    }
    footer {
        border-top: 1px solid #5f6368; /* Darker border for footer */
        color: #bdc1c6; /* Lighter grey for footer text */
    }
}