/* Advanced scan options */
.advanced-options {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.advanced-options h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Auth message */
.auth-message {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.auth-message p {
    margin: 0;
    font-size: 0.95rem;
}

.auth-message a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-message a:hover {
    text-decoration: underline;
}

/* Scan results styling */
.scan-results {
    /* Changed from display: none to display: block */
    display: block;
    margin-top: 0;
}

.scan-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scan-results-header h3 {
    margin: 0;
}

.scan-results-header .scan-timestamp {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.scan-results-summary {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scan-results-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.scan-results-summary .summary-item:last-child {
    margin-bottom: 0;
}

.scan-results-summary .summary-label {
    font-weight: 500;
}

.scan-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.scan-results-table th,
.scan-results-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.scan-results-table th {
    background-color: var(--gray-lightest);
    font-weight: 600;
    color: var(--gray-dark);
}

.scan-results-table tr:last-child td {
    border-bottom: none;
}

.scan-results-table .port-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scan-results-table .port-status.open {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.scan-results-table .port-status.closed {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.scan-results-table .port-status.filtered {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.scan-results-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.scan-results-actions button {
    padding: 0.5rem 1rem;
}

.scan-loading {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.scan-loading.active {
    display: block;
}

.scan-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

.scan-loading p {
    margin-top: 1rem;
    color: var(--gray-medium);
}

.scan-error {
    display: none;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}

.scan-error.active {
    display: block;
}

.scan-error h4 {
    margin-top: 0;
    color: #ef4444;
}

.scan-error p {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scan-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scan-results-header .scan-timestamp {
        margin-top: 0.5rem;
    }
    
    .scan-results-actions {
        flex-direction: column;
    }
    
    .scan-results-table {
        font-size: 0.9rem;
    }
    
    .scan-results-table th,
    .scan-results-table td {
        padding: 0.5rem;
    }
}
