/* ping-test/css/styles.css */
.ping-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--header-border);
}

.num-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ping-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 1rem;
}

.ping-input::placeholder {
    color: var(--input-text);
    opacity: 0.7;
}

.ping-input:focus {
    outline: none;
    border-color: #00dbde;
}

.add-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.add-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-container {
    margin-top: 2rem;
}

.result-item {
    /* padding: 1rem; */
    margin-bottom: 1rem;
    border-radius: 5px;
    background: var(--card-bg);
    border-left: 4px solid #00dbde;
    border: 1px solid var(--header-border);
}

.result-item.error {
    border-left-color: var(--column-remove-btn);
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.result-host {
    font-weight: bold;
    color: #00dbde;
}

.result-time {
    color: var(--text-color);
}

.result-details {
    font-size: 0.9rem;
    color: var(--text-color);
}

.stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 5px;
    text-align: center;
    border: 1px solid var(--header-border);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00dbde;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .num-form {
        flex-direction: column;
    }
    
    .ping-input, .add-button {
        width: 100%;
    }
}


        
        #itemInput {
            flex: 1;
            padding: 12px 15px;
            font-size: 16px;
            background-color: white;
        }
        
        #itemInput:focus {
            outline: none;
        }
        
        #addButton {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 0 25px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        #addButton:hover {
            background-color: #2980b9;
        }
        
        .items-container {
            /* background-color: white; */
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eef1f5;
            transition: background-color 0.2s;
        }
        
        .item:hover {
            background-color: var(--hover);
        }
        
        .item:last-child {
            border-bottom: none;
        }
        
        .item-name {
            flex: 1;
            font-size: 18px;
            color: var(--text-color);
            font-weight: 500;
        }
        
        .item-count {
            margin: 0 15px;
            font-size: 20px;
            font-weight: 600;
            color: var(--text-color);
            min-width: 40px;
            text-align: center;
        }
        
        .increment-btn {
            background-color: #2ecc71;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s, transform 0.2s;
        }
        
        .increment-btn:hover {
            background-color: #2ecc71;
            transform: scale(1.05);
        }
        
        .minus-btn {
            background-color: #1f75f5;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            margin-left: 15px;
            border-radius: 50%;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s, transform 0.2s;
        }
        
        .minus-btn:hover {
            background-color: #1f75f5;
            transform: scale(1.05);
        }
        
        .reset-zero-btn {
            background-color: #a9b04900; 
            /* background-color: #a9b049; */
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            margin-left: 15px;
            border-radius: 50%;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s, transform 0.2s;
        }
        
        /* .reset-zero-btn:hover {
            background-color: #a9b049;
            transform: scale(1.05);
        } */
        .delete-btn {
            background-color: #e74d3c00;
            color:  var(--text-color);
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            font-size: 14px;
            cursor: pointer;
            margin-left: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }
        
        .delete-btn:hover {
            background-color: #c0392b;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color:  var(--text-color);
        }
        
        .empty-state p {
            margin-bottom: 15px;
        }