:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #f5f5f5;
    --text-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --dark-bg: #2d2d2d;
    --light-text: #f8f8f2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.2em;
}

.copy-icon:hover {
    color: var(--primary-color);
}

.control-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.example-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.command-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.command-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.command-btn.active {
    background: var(--primary-color);
    color: white;
}

.command-btn:hover {
    background: #ddd;
}

.command-btn.active:hover {
    background: var(--secondary-color);
}

.radio-label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.radio-label input {
    margin-right: 5px;
}

.run-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.run-button:hover {
    background: var(--secondary-color);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.command-display {
    font-family: monospace;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow-x: auto;
}

.output-container {
    position: relative;
}

.output {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: monospace;
    margin: 0;
    min-height: 100px;
    max-height: 500px;
    overflow-y: auto;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.error {
    color: var(--error-color);
    margin-top: 10px;
    padding: 10px;
    background: #fdecea;
    border-radius: 4px;
    display: none;
}

/* Styles spécifiques pour les résultats ping */
.ping-stats {
    color: var(--success-color);
    font-weight: bold;
}

.ping-loss {
    color: var(--error-color);
    font-weight: bold;
}

.ping-time {
    color: #4CAF50;
}

.ip-version {
    display: none;
}

.ip-version.visible {
    display: block;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .command-buttons {
        flex-direction: column;
    }
    
    .command-btn {
        width: 100%;
    }
}

#nmap-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ddd !important;
}

#nmap-btn:disabled .nmap-icon {
    color: #666;
}

#nmap-btn:disabled .lock-icon {
    display: inline-block;
}

#nmap-btn .lock-icon {
    display: none;
    margin-left: 5px;
}

.client-ip-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

#use-ip-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

#use-ip-btn:hover {
    background: var(--secondary-color);
}

#use-ip-btn:active {
    transform: translateY(1px);
}
