/* Port Scanner Styles */

/* Port Status Badges */
.port-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-filtered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

[data-bs-theme="dark"] .status-open {
    background: #1e4620;
    color: #75d97c;
    border-color: #2d6930;
}

[data-bs-theme="dark"] .status-closed {
    background: #4a1c1f;
    color: #f8b4b9;
    border-color: #6e2a2f;
}

[data-bs-theme="dark"] .status-filtered {
    background: #4a3e1c;
    color: #ffda6a;
    border-color: #6e5d2a;
}

[data-bs-theme="dark"] .status-error {
    background: #721c24;
    color: #f8b4b9;
    border-color: #8b2b33;
}

/* Scan Statistics */
.scan-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scan-stats .badge {
    font-size: 13px;
    padding: 6px 12px;
    font-weight: 600;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

[data-bs-theme="dark"] .progress {
    background-color: #343a40;
}

.progress-bar {
    font-weight: 600;
    font-size: 13px;
    transition: width 0.3s ease;
}

/* Port Results Display */
.port-results-display {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

[data-bs-theme="dark"] .port-results-display {
    background: #212529;
    border-color: #495057;
}

/* Table Hover Effect */
.port-results-table tbody tr {
    transition: background-color 0.2s ease;
}

.port-results-table tbody tr:hover {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .port-results-table tbody tr:hover {
    background-color: #2b3035;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-selector-modern {
        grid-template-columns: 1fr;
    }

    .port-results-table {
        font-size: 13px;
    }

    .port-results-table th,
    .port-results-table td {
        padding: 8px;
    }

    .scan-stats {
        justify-content: center;
    }
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
}

/* Stop Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

#stopBtn {
    animation: pulse 2s infinite;
}
