/* assets/css/style-ping.css - Clean Dark Mode */

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #0ea5e9; /* Sky blue */
    --console-bg: #020617;
    --console-text: #22d3ee;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.ping-container {
    max-width: 700px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ping-header h1 { text-align: center; color: white; margin-bottom: 5px; }
.ping-header p { text-align: center; color: var(--text-muted); margin-bottom: 25px; }

/* Formularz */
.ping-search-box { margin-bottom: 30px; }
#pingForm { display: flex; justify-content: center; gap: 10px; }

.input-group {
    display: flex; flex-grow: 1; align-items: center;
    background: var(--console-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.prefix {
    background: #1e293b;
    padding: 12px 15px;
    font-weight: bold;
    color: #94a3b8;
    font-size: 14px;
}

input[type="text"] {
    background: transparent;
    border: none;
    padding: 12px;
    color: white;
    width: 100%;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover { background-color: #0284c7; }

/* Konsola / Terminal */
.ping-console {
    background-color: var(--console-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-family: 'Consolas', 'Monaco', monospace;
}

.console-header {
    background-color: #1e293b;
    padding: 10px 15px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background-color: #ef4444; }
.yellow { background-color: #eab308; }
.green { background-color: #22c55e; }

.console-body {
    padding: 20px;
    color: var(--console-text);
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    /* Usunięto text-shadow (neon) */
}

/* Linie w konsoli */
.console-line { margin-bottom: 8px; }
.console-line.start { color: #facc15; }
.console-line.error { color: #f87171; }
.console-line.success { color: #4ade80; }
.console-line.end { color: #60a5fa; margin-top: 15px; }

/* Statystyki */
.stats-box {
    background-color: #1e293b;
    display: flex; justify-content: space-around;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.stat-label { color: #94a3b8; font-size: 11px; text-transform: uppercase; }
.stat-value { color: white; font-size: 18px; font-weight: bold; }

@media (max-width: 600px) {
    #pingForm { flex-direction: column; }
    .input-group { width: 100%; }
}
