/* Styles spécifiques pour les outils réseau */

.container {
    height: auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
}

.form-container {
    max-width: 800px;
}

h2 {
    color: #5a6268;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tool-section {
    margin-top: 3rem;
    margin-bottom: 0.8rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    text-align: center;
    margin: 0.5rem 0 0.3rem 0;
    font-weight: bold;
    color: #333;
    width: 100%;
}

input[type="text"] {
    width: 80%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 0.1rem solid #ccc;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
}

input[type="text"]:focus {
    outline: none;
    border-color: #7194a6;
    box-shadow: 0 0 0 0.2rem rgba(113, 148, 166, 0.25);
}

.btn {
    background-color: #7194a6;
    color: white;
    cursor: pointer;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    opacity: 0.85;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 80%;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #5a7a8a;
    opacity: 1;
}

.results {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    border: 0.1rem solid rgba(113, 148, 166, 0.3);
    display: none;
    width: 80%;
}

.results.show {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: bold;
    color: #555;
}

.result-value {
    color: #7194a6;
    font-family: monospace;
    font-weight: bold;
}

.error-message {
    color: #dc3545;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: rgba(248, 215, 218, 0.8);
    border-radius: 0.5rem;
    display: none;
    text-align: center;
}

.error-message.show {
    display: block;
}

.ip-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.ip-list-item {
    padding: 0.3rem 0;
}

.copy-btn {
    background-color: #28a745;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background-color: #218838;
}

.options {
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
}

.options label {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-weight: normal;
}

.options input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Responsive */

/* Tablettes (768px à 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    h2 {
        font-size: 1.2rem;
    }

    .tool-section {
        padding: 1rem;
    }
}

/* Smartphones (<=767px) */
@media (max-width: 767px) {
    .form-container {
        padding: 5%;
    }

    h2 {
        font-size: 1.1rem;
    }

    .tool-section {
        padding: 1rem;
    }

    .result-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .result-label {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 0.95rem;
    }

    .options label {
        display: flex;
        margin-bottom: 0.5rem;
    }
}
